Page tree

설명

Explorer에서 한글 이름의 프로젝트로 이동 후, Report 메뉴에서 특정 리포트 클릭 시, URL이 인코딩되지 않아 리포트 설정 화면이 나타나지 않고 404 에러가 발생함

환경

  • Jira 7.x, 8.x
  • Internet Explorer 11

재현방법

1. 한글 이름의 프로젝트로 이동
2. 좌측 Reports 메뉴 클릭
3. All reports에서 특정 Report 선택
4. 400 에러가 뜸

기대결과

리포트 설정 혹은 리포트가 나타난다.

실제결과

다음과 같은 400 에러 페이지가 나타남

HTTP Status 400 – Bad Request
Type Exception Report
Message Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
Exception
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

해결방법

다음 애드온 수정

  • C:\atlassian\Jira\atlassian-jira\WEB-INF\atlassian-bundled-plugins\jira-projects-plugin-5.1.10.jar


다음 파일의 코드 수정

  • page\project\report\templates.soy

    <a href="#" onclick="location.href=encodeURI('{contextPath()}{$url}');" class="reports__list__report{if $thumbnailClass} {$thumbnailClass}{/if}" data-report-key="{$key}">{$label}</a>
  • No labels