You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by bu...@apache.org on 2005/05/18 11:03:41 UTC
DO NOT REPLY [Bug 34950] New: -
Copy method does not clean query parameters
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=34950>.
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=34950
Summary: Copy method does not clean query parameters
Product: Slide
Version: 2.1
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: WebDAV Server
AssignedTo: slide-dev@jakarta.apache.org
ReportedBy: philosophyofmind@yahoo.com.mx
Consider the following piece of code:
String uploadDir = "/home/mavila/temp";
String uploadFile = "globalSettings.xml";
webdavModule.put(uploadDir,uploadFile,"files/globalSettings.xml?param1=value1¶m2=value2");
String mycopyFile = "files/globalSettingsCOPY.xml";
webdavModule.copy("files/globalSettings.xml?param1=value1¶m2=value2",mycopyFile);
Everything works fine for the put method, all after the "?" is ignored and is
just stored the file, in this case "globalSettings.xml".
Now, we try to use the copy method with the same parameters, in this case the
server believes that the file is the complete string with the parameters, as far
as I can see this is not consistent.
I have debugged the code, seems that in class
org.apache.slide.webdav.method.CopyMethod this is is called
..
macro.copy(slideToken, sourceUri, destinationUri, macroParameters, this, this,
null, this);
...
I don't know very much the architecture of the server, I have not had time to
see a class diagram but before calling the method copy a clean up of the
sourceUri and destinationUri should be done.
--
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: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org