commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37886] New: - setUrl and getUrl for FileConfiguration are incorrect
Date Tue, 13 Dec 2005 11:55:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37886>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37886

           Summary: setUrl and getUrl for FileConfiguration are incorrect
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configuration
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: e.lacazedieu@lectra.com


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.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message