Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-265

Complex obs images of type other than jpg aren't displayed right in the edit obs page

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.9.0
    • Component/s: None
    • Labels:
    • Complexity:
      Low

      Description

      There's a bad line of code in ComplexObsServlet that causes all complex obs to be treated as JPG images, regardless of their actual file extension.

      This

      String[] parts = cd.getTitle().split(".");
      

      Should turn into this

      String[] parts = cd.getTitle().split("\\.");
      

        Attachments

        1. ComplexObsServlet.patch.txt
          0.8 kB
        2. screenshot-1.jpg
          screenshot-1.jpg
          122 kB

          Activity

            People

            • Assignee:
              arahulkmit Rahul Akula
              Reporter:
              darius Darius Jazayeri
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: