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 2004/06/22 15:47:56 UTC
DO NOT REPLY [Bug 29737] New: -
href url not compared to not escaped url in WebdavResource.java
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=29737>.
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=29737
href url not compared to not escaped url in WebdavResource.java
Summary: href url not compared to not escaped url in
WebdavResource.java
Product: Slide
Version: 2.0
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: WebDAV client
AssignedTo: slide-dev@jakarta.apache.org
ReportedBy: attila.bognar@netalfa.com
In this method the url of href is not compared to the not escaped path of the
httpURL. microsoft webserver returns the url in not escaped form, so itself is
not determined correctley (remains false if the resource is the good one).
protected void setWebdavProperties(Enumeration responses)
throws HttpException, IOException {
...
String httpURLPath = httpURL.getEscapedPath();
int compared = httpURLPath.compareTo(href);
// Compare with the href path and requested-path itself.
if (compared == 0 || (compared == -1 && href.endsWith("/")) ||
(compared == 1 && httpURLPath.endsWith("/"))) {
// Set the status code for this resource.
if (response.getStatusCode() > 0)
setStatusCode(response.getStatusCode());
setExistence(true);
itself = true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org