Uploaded image for project: 'Reporting Module'
  1. Reporting Module
  2. REPORT-732

[reportingrest] should return 404 if user tries to evaluate a missing definition (not 500)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Reporting 0.9.5
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      E.g. if you try to evaluate a reportdefinition that doesn't exist, you get an exception like this:

      java.lang.NullPointerException
      at org.openmrs.module.reportingrest.web.resource.EvaluatedResource.getEvaluationContextWithParameters(EvaluatedResource.java:89)
      at org.openmrs.module.reportingrest.web.resource.EvaluatedReportDefinitionResource.retrieve(EvaluatedReportDefinitionResource.java:65)
      at org.openmrs.module.webservices.rest.web.v1_0.controller.MainResourceController.retrieve(MainResourceController.java:70)
      ...
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              alexgg Alexei Grigoriev
              Reporter:
              darius Darius Jazayeri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h