← Back to team overview

dhis2-devs team mailing list archive

[Bug 1319120] [NEW] api dataValueSet error NullPointerException

 

Public bug reported:

The api resource dataValueSet returns an error when the parameter
dataElementIdScheme=code is passed and a data element doesn't have a
code.

To replicate this behavior in http://apps.dhis2.org/demo delete the code
from the data element "OPV0 doses given" of the data set "Child Health"
(BfMAe6Itzgt) and open the api resource with the following link:

http://apps.dhis2.org/demo/api/dataSets/BfMAe6Itzgt/dataValueSet?dataElementIdScheme=code

Tested in DHIS v2.15 build 15033

** Affects: dhis2
     Importance: Undecided
         Status: New


** Tags: api datavalueset

** Description changed:

  The api resource dataValueSet returns an error when the parameter
- dataElementIdScheme=code is passed and a data doesn't have a code.
+ dataElementIdScheme=code is passed and a data element doesn't have a
+ code.
  
  To replicate this behavior in http://apps.dhis2.org/demo delete the code
  from the data element "OPV0 doses given" of the data set "Child Health"
  (BfMAe6Itzgt) and open the api resource with the following link:
  
  http://apps.dhis2.org/demo/api/dataSets/BfMAe6Itzgt/dataValueSet?dataElementIdScheme=code
  
  Tested in DHIS v2.15 build 15033

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1319120

Title:
   api dataValueSet error NullPointerException

Status in DHIS 2:
  New

Bug description:
  The api resource dataValueSet returns an error when the parameter
  dataElementIdScheme=code is passed and a data element doesn't have a
  code.

  To replicate this behavior in http://apps.dhis2.org/demo delete the
  code from the data element "OPV0 doses given" of the data set "Child
  Health" (BfMAe6Itzgt) and open the api resource with the following
  link:

  http://apps.dhis2.org/demo/api/dataSets/BfMAe6Itzgt/dataValueSet?dataElementIdScheme=code

  Tested in DHIS v2.15 build 15033

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1319120/+subscriptions


Follow ups

References