Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-105

[configuration] setUrl and getUrl for FileConfiguration are incorrect

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      We use XMLConfiguration to store our application user preferences.
      the preferences are persisted in a FileManager, which delivers the files using
      the HTTP protocol.
      As each user has its own preferences, the URL we use to get the preferences is :

      http://server/ContentAcces?id=<the_id>&session=<session_id>

      As the code of setUrl in AbstractFileConfiguration is :

      public void setURL(URL url)

      { setBasePath(ConfigurationUtils.getBasePath(url)); setFileName(ConfigurationUtils.getFileName(url)); }

      the request parameters of the URL are not stored in the URL, and when getUrl is
      called, null is returned, because the composed URL (http://server/ContentAcces)
      cannot be opened.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Etienne Lacazedieu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development