Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-859

resteasy-jaxrs - TJWSServletServerTest.testFile() may fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 3.0.2.Final
    • 2.3.5.Final
    • jaxrs
    • None

    Description

      In resteasy-jaxrs the test org.jboss.resteasy.plugins.server.tjws.TJWSServletServerTest.testFile() might fail. The problem is root.getFile() method that returns full path to resources that are tested. However if path contains invalid characters, spaces for instance, these are url encoded (space = %20) which later in asserts results in file-not-found response.

      RESOLVED IN UPLOADED PATCH
      Solution is to use java.net.URI class to wrap root.getFile() method result.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            agalad Andrej Galád (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: