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

Control character in cookie value, consider BASE64 encoding your value

    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
    • Complexity:
      Low

      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

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  cta Taras Chorny
                  Reporter:
                  bwolfe Ben Wolfe
                  Watchers:
                  Ben Wolfe, Daniel Kayiwa, Taras Chorny, Wyclif Luyima
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: