Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50364

Attachment URI incorrect when file name contains a space

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.111

      The URL from the test results page escapes spaces in attachments as + 

      http://<server>:(8080/job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt

      This results in a 404 not found error: 

      HTTP ERROR 404
      Problem accessing /job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt. Reason:
      Not Found 
      Powered by Jetty:// 9.4.z-SNAPSHOT
      

       

      When changing the escape from + to %20 - the attachment can be found.
       

      There seems to be have been some discussion on the Jetty side in issue 435017.

          [JENKINS-50364] Attachment URI incorrect when file name contains a space

          Stefan Drissen created issue -
          Stefan Drissen made changes -
          Description Original: When an attachment contains a space, the URL from the job page escapes spaces as + :

          ```http://&lt;server&gt;:(8080/job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt```

          This results in a 404 not found error.
          h2. HTTP ERROR 404

          Problem accessing /job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt. Reason:

          Not Found

           
          ----
          [Powered by Jetty:// 9.4.z-SNAPSHOT|http://eclipse.org/jetty]

           

          When changing the escape from + to%20 - the attachment can be found.

           

          There seems to be some discussion on the Jetty side ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=435017)
          New: When an attachment contains a space, the URL from the job page escapes spaces as + :

          ```
          http://&lt;server&gt;:(8080/job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt
          ```

          This results in a 404 not found error.

          ```
          HTTP ERROR 404

          Problem accessing /job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt. Reason:

          Not Found 
          ----
          [Powered by Jetty:// 9.4.z-SNAPSHOT|http://eclipse.org/jetty]
          ``` 

          When changing the escape from + to%20 - the attachment can be found.
           

          There seems to be some discussion on the Jetty side ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=435017)
          Stefan Drissen made changes -
          Description Original: When an attachment contains a space, the URL from the job page escapes spaces as + :

          ```
          http://&lt;server&gt;:(8080/job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt
          ```

          This results in a 404 not found error.

          ```
          HTTP ERROR 404

          Problem accessing /job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt. Reason:

          Not Found 
          ----
          [Powered by Jetty:// 9.4.z-SNAPSHOT|http://eclipse.org/jetty]
          ``` 

          When changing the escape from + to%20 - the attachment can be found.
           

          There seems to be some discussion on the Jetty side ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=435017)
          New: When an attachment contains a space, the URL from the job page escapes spaces as + :

           
          {noformat}
          http://&lt;server&gt;:(8080/job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt{noformat}
          This results in a 404 not found error.

           
          {noformat}
          HTTP ERROR 404
          Problem accessing /job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt. Reason:
          Not Found 
          Powered by Jetty:// 9.4.z-SNAPSHOT
          {noformat}
           

          When changing the escape from + to%20 - the attachment can be found.
            

          There seems to be some discussion on the Jetty side ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=435017)
          Stefan Drissen made changes -
          Description Original: When an attachment contains a space, the URL from the job page escapes spaces as + :

           
          {noformat}
          http://&lt;server&gt;:(8080/job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt{noformat}
          This results in a 404 not found error.

           
          {noformat}
          HTTP ERROR 404
          Problem accessing /job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt. Reason:
          Not Found 
          Powered by Jetty:// 9.4.z-SNAPSHOT
          {noformat}
           

          When changing the escape from + to%20 - the attachment can be found.
            

          There seems to be some discussion on the Jetty side ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=435017)
          New: The URL from the test results page escapes spaces in attachments as + 
          {noformat}
          http://&lt;server&gt;:(8080/job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt{noformat}
          This results in a 404 not found error: 
          {noformat}
          HTTP ERROR 404
          Problem accessing /job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt. Reason:
          Not Found 
          Powered by Jetty:// 9.4.z-SNAPSHOT
          {noformat}
           

          When changing the escape from + to %20 - the attachment can be found.
            

          There seems to be some discussion on the Jetty side ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=435017)
          Stefan Drissen made changes -
          Description Original: The URL from the test results page escapes spaces in attachments as + 
          {noformat}
          http://&lt;server&gt;:(8080/job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt{noformat}
          This results in a 404 not found error: 
          {noformat}
          HTTP ERROR 404
          Problem accessing /job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt. Reason:
          Not Found 
          Powered by Jetty:// 9.4.z-SNAPSHOT
          {noformat}
           

          When changing the escape from + to %20 - the attachment can be found.
            

          There seems to be some discussion on the Jetty side ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=435017)
          New: The URL from the test results page escapes spaces in attachments as + 
          {noformat}
          http://&lt;server&gt;:(8080/job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt{noformat}
          This results in a 404 not found error: 
          {noformat}
          HTTP ERROR 404
          Problem accessing /job/7.25/job/work/job/report_11.6-sql2014/165/testReport/(root)/stusgrp/screenreportempty621001/attachments/621001.li.menu+authorization.compare.txt. Reason:
          Not Found 
          Powered by Jetty:// 9.4.z-SNAPSHOT
          {noformat}
           

          When changing the escape from + to %20 - the attachment can be found.
            

          There seems to be have been some discussion on the Jetty side in issue [435017|https://bugs.eclipse.org/bugs/show_bug.cgi?id=435017].

            huybrechts huybrechts
            smd Stefan Drissen
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: