Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-105

[configuration] setUrl and getUrl for FileConfiguration are incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Operating System: other
      Platform: Other

    • 37886

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            e.lacazedieu@lectra.com Etienne Lacazedieu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: