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

Control character in cookie value, consider BASE64 encoding your value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.7.1
    • Fix Version/s: OpenMRS 1.9.0
    • Component/s: None

      Description

      (Submitted through the automated error report system)

      I would assume the locale was something strange, but I don't know what it was.

      Version: 1.7.1 Build 17223

      Summary:
      java.lang.IllegalArgumentException: Control character in cookie value, consider BASE64 encoding your value

      Description:
      Stack trace:

      org.apache.tomcat.util.http.ServerCookie.maybeQuote2(ServerCookie.java:396)
      org.apache.tomcat.util.http.ServerCookie.maybeQuote2(ServerCookie.java:389)
      org.apache.tomcat.util.http.ServerCookie.appendCookieValue(ServerCookie.java:293)
      org.apache.catalina.connector.Response.generateCookieString(Response.java:1063)
      org.apache.catalina.connector.Response.addCookieInternal(Response.java:1035)
      org.apache.catalina.connector.Response.addCookieInternal(Response.java:1020)
      org.apache.catalina.connector.Response.addCookie(Response.java:968)
      org.apache.catalina.connector.ResponseFacade.addCookie(ResponseFacade.java:343)
      	at [ignored] ...
      org.openmrs.web.OpenmrsCookieLocaleResolver.setLocale(OpenmrsCookieLocaleResolver.java:57)
      	at [ignored] ...
      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      ....(snipped)....
      

        Gliffy Diagrams

          Attachments

          1. 1_before_click_on_save_setting_with_incorrect_locale.png
            148 kB
            Taras Chorny
          2. 2_after_click_on_save_setting_with_incorrect_locale.png
            146 kB
            Taras Chorny
          3. 3_before_click_on_save_setting_with_incorrect_locale_that_can_be_cleaned_up.png
            144 kB
            Taras Chorny
          4. 4_after_click_on_save_setting_with_incorrect_locale_that_can_be_cleaned_up.png
            146 kB
            Taras Chorny
          5. 5_before_save_proficient_locales_with_CTLs.png
            111 kB
            Taras Chorny
          6. 6_after_save_proficient_locales_with_CTLs.png
            106 kB
            Taras Chorny
          7. simple_test_for_patch_in_eclipse.png
            114 kB
            Taras Chorny
          8. TRUNK-2011.patch
            8 kB
            Taras Chorny
          9. TRUNK-2011-NEW.patch
            9 kB
            Taras Chorny

            Activity

              People

              Assignee:
              cta Taras Chorny
              Reporter:
              bwolfe Ben Wolfe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: