Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-3514

Browser enrollment link is generated with incorrect encoding

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.1.1
    • Fix Version/s: EJBCA 6.1.2
    • Component/s: Public Web UI
    • Labels:
      None
    • Environment:
      A2
      UTF-8
    • Issue discovered during:
      Integration

      Description

      ECA-3449 modified how the link is rendered from using
      ${finder.subjectDNEncoded}
      to
      <c:url var="header_redirect_url" value="../publicweb/webdist/certdist">
      ...
      <c:param name="subject" value="${finder.subjectDN}"/>

      This link variable is composed before the header.jsp is included, since the meta-redirect is rendered in the header.

      This also means that the response encoding defined in header.jsp is not applied until after "c:url" and the link variable is encoded with some default.

      If
      response.setContentType("text/html; charset="+org.ejbca.config.WebConfiguration.getWebContentEncoding());
      is included in result_download.jsp, the rendered link is
      https://ip/ejbca/publicweb/webdist/certdist?cmd=lastcert&installtobrowser=netscape&subject=CN%3dMan%c3%bcelLabs%c3%b6%2cO%3dMan%c3%bcelLabs%c3%b6%2cC%3dDE&format=&hidemenu=true
      which works.

      Otherwise (currently) the link is rendered as
      https://ip/ejbca/publicweb/webdist/certdist?cmd=lastcert&installtobrowser=netscape&subject=CN=M%C3%A4nagement%20CA,O=Man%C3%BCelLabs%C3%B6,C=DE&format=&hidemenu=true
      which gives a HTTP 404.

      IssuerDN: CN=Mänagement CA,O=ManüelLabsö,C=DE
      See also http://www.utf8-chartable.de/

        Attachments

          Activity

            People

            • Assignee:
              johan Johan Eklund
              Reporter:
              johan Johan Eklund
              Verified by:
              Tomas Gustavsson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: