hi remy,
The table definition for the property table in the database defines both
the property name and the value column types to be a blob.But column type
blob is not searchable which means that the column cannot be included in the
where clause of the SQL statement.What was the need to make both property
and the value to be a blob.Can this be changed to varchar ?
thanks,
rajkumar
-----Original Message-----
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 04, 2001 11:01 AM
To: [EMAIL PROTECTED]
Subject: Re: multiple PUT operations
> hi remy,
> Following is the piece of code
> from the class org.apache.slide.webdav.method.PropFindMethod
>
> revisionDescriptor = content.retrieve(slideToken,
>
revisionDescriptors);
> isCollection = isCollection(revisionDescriptor);
> String path = object.getUri();
> String absoluteUri = URLDecode(req.getRequestURI());
> String relativePath = requestUri;
>
> String toAppend = "";
> if (relativePath.length() <= path.length()) {
> toAppend = path.substring(relativePath.length());
> if ((!absoluteUri.endsWith("/")) &&
> (!toAppend.startsWith("/"))) {
> toAppend = "/" + toAppend;
> }
> if (toAppend.equals("/")) {
> toAppend = "";
> }
> }
>
> What is the need for the if condition "relativePath.length() <=
> path.length()" .
> Under what circumstances does the relative path's length lesser than the
> path's length.
> Can you please give me an example of when this condition would become
true.
The path generation code is bit messy, but appears to be working ok. It
could use some cleanup, though :)
Here, I think it's to avoid some case involving trailing '/' ...
Remy