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

Remove code pre ServletContext.getContextPath

    Details

    • Type: Task
    • Status: Code Review (Initial)
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: Platform 3.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Complexity:
      Low

      Description

      Listener.getContextPath() contains

      what is noted in the code as a "hacky way" to get the context path which was necessary before Servlet API 2.5 (implemented in tomcat 6) to which is still fallen back if ServletContext.getContextPath() does not exist.

      We should remove this old code at some point. Tomcat 6 is already EOL. 7/8 are out and 9 is about to.

      https://tomcat.apache.org/whichversion.html

        Attachments

          Activity

            People

            • Assignee:
              heliostrike Sai Sandeep Mutyala
              Reporter:
              teleivo Ivo Ulrich
              Designated Committer:
              Sai Sandeep Mutyala
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h