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

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to