Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.11
-
None
-
Normal
-
Patch available
Description
on PUT, server returns the status 200 "OK", when the proper response seems to 204 "No Content"
int the put method in webdav.js::: this:
try {
var status = repository.save(src,dest);
sendStatus(status);
}
can be changed to this:
try {
var status = repository.save(src,dest);
if(status == 200 ) status = 204;
sendStatus(status);
}
This fixed the issue in my application. However this seems a little hackish and I haven't tested it well.
The org.apache.cocoon.components.repository.SourceRepository object might be changed instead.
int the put method in webdav.js::: this:
try {
var status = repository.save(src,dest);
sendStatus(status);
}
can be changed to this:
try {
var status = repository.save(src,dest);
if(status == 200 ) status = 204;
sendStatus(status);
}
This fixed the issue in my application. However this seems a little hackish and I haven't tested it well.
The org.apache.cocoon.components.repository.SourceRepository object might be changed instead.