Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2368

Not able to upload/download files with spaces and & in name.

    XMLWordPrintable

Details

    • Release Notes
    • CR1
    • ?
    • Workaround Exists
    • Hide
      • Login into business-central console of RHPAM 7.4.1 release.
      • Create guided rule template with name 'Demo & RuleTemplate'.
      • Save templace and try to download it.
      • Download will fail with exception
      Show
      Login into business-central console of RHPAM 7.4.1 release. Create guided rule template with name 'Demo & RuleTemplate'. Save templace and try to download it. Download will fail with exception
    • 3
    • 2019 Week 38-40 (from Sep 16), 2019 Week 41-43 (from Okt 7), 2019 Week 44-46 (from Okt 28)

    Description

      Not able to download rule template with spaces and & in name. Download fails with exception

      ERROR [org.uberfire.server.FileDownloadServlet] (default task-10) Failed to download a file.: org.uberfire.java.nio.file.NoSuchFileException
      	at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.readAttributes(JGitFileSystemProvider.java:2076)
      	at org.uberfire.java.nio.file.Files.readAttributes(Files.java:638)
      	at org.uberfire.java.nio.file.Files.size(Files.java:825)
      	at org.uberfire.java.nio.file.Files.readAllBytes(Files.java:1186)
      	at org.uberfire.io.impl.AbstractIOService.readAllBytes(AbstractIOService.java:450)
      	at org.uberfire.server.FileDownloadServlet.doGet(FileDownloadServlet.java:61)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:686)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
      	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
      	at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:173)
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      	at org.uberfire.ext.security.server.SecureHeadersFilter.doFilter(SecureHeadersFilter.java:110)
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      	at org.uberfire.ext.security.server.SecurityIntegrationFilter.doFilter(SecurityIntegrationFilter.java:70)
      	at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      	at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      	at io.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:55)
      

      Complete stack trace attached.

      To download file, we have to replace & with %26, like as:

      http://localhost:8080/business-central/org.kie.bc.KIEWebapp/defaulteditor/download?path=default://rr@MySpace/BpmnDMN/src/main/resources/Demo%20%26%20RuleTemplate.template
      

      Attachments

        Issue Links

          Activity

            People

              trikkola Toni Rikkola
              rhn-support-abhumbe Abhijit Humbe
              Savitha T Jose Savitha T Jose
              Savitha T Jose Savitha T Jose
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: