Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-81

QueryString is lost after resolveFile("http://...?queryString").

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None

    Description

      QueryString is lost after resolveFile("http://...?queryString"). As the result, parameters after '?' are not passed to web server. The following patch fixes the problem (but not in a proper way I think):

      Index: src/java/org/apache/commons/vfs/provider/AbstractOriginatingFileProvider.java
      ===================================================================
      — src/java/org/apache/commons/vfs/provider/AbstractOriginatingFileProvider.java (revision 446600)
      +++ src/java/org/apache/commons/vfs/provider/AbstractOriginatingFileProvider.java (working copy)
      @@ -78,7 +78,7 @@
      }

      // Locate the file

      • return fs.resolveFile(name.getPath());
        + return fs.resolveFile(name instanceof URLFileName ? ((URLFileName)name).getPathQuery() : name.getPath());
        }

      /**

      Attachments

        Activity

          People

            Unassigned Unassigned
            ndv Dmitry Negoda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: