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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: