Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-934

Asset upload / download to not work inside projects which name contains spaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • General workbench
    • None
    • 2017 Week 49-50, 2017 Week 51-52, 2018 Week 01-02, 2018 Week 03-04
    • NEW
    • NEW

      If project contains spaces in its name, asset upload and download fails.

      1. Create project that has spaces in its name , e.g "my project"
      2. Try uploading an asset (any png, gif, pdf, anything) into that project, you will get error like this

      [org.uberfire.server.BaseUploadServlet] (default task-44) Failed to upload a file.: java.net.URISyntaxException: Illegal character in path at index 25: default://master@myrepo/my project/src/main/resources/com/myteam/abcde/image.png

      same for download as well. Fix is to replace the spaces in the asset location with %20, for example .replaceAll("
      s", "%20")

              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: