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 di...@the-ecorp.com on 2001/05/10 11:23:26 UTC
Server problem: put method doesn't update content type
I'm using slide client/server latest cvs version and have a problem.
When putting a file on the server the content-type of that file isn't
overwritten by the new one.
In src\webdav\server\org\apache\slide\webdav\method\PutMethod.java there is
a test that you only
update the content type when there is no lock or something ?
// Normally assume the 'getcontentlanguage' and
// 'getcontenttype' are set, however, before we clear the
// 'resourcetype' need to check for the case when a
// 'lock-null' is created just before the initial PUT. In
// that case need to add the missing properties.
property = revisionDescriptor.getProperty("resourcetype");
if (((String) property.getValue()).equals("<lock-null/>")) {
In my case property.getValue() gives an empty string!
Can somebody take a look at this ?
tnx
Dirk
Re: Server problem: put method doesn't update content type
Posted by Remy Maucherat <re...@apache.org>.
> I'm using slide client/server latest cvs version and have a problem.
>
> When putting a file on the server the content-type of that file isn't
> overwritten by the new one.
> In src\webdav\server\org\apache\slide\webdav\method\PutMethod.java there
is
> a test that you only
> update the content type when there is no lock or something ?
>
> // Normally assume the 'getcontentlanguage' and
> // 'getcontenttype' are set, however, before we clear the
> // 'resourcetype' need to check for the case when a
> // 'lock-null' is created just before the initial PUT. In
> // that case need to add the missing properties.
> property = revisionDescriptor.getProperty("resourcetype");
> if (((String) property.getValue()).equals("<lock-null/>"))
{
>
> In my case property.getValue() gives an empty string!
>
> Can somebody take a look at this ?
The point was that the revisions of the same object would have the same
content type. Do you think that isn't the case ?
Remy