cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasha Joachimsthal (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COCOON-2041) WebDAV Returns improper status on PUT
Date Sat, 10 Apr 2010 16:27:42 GMT

     [ https://issues.apache.org/jira/browse/COCOON-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jasha Joachimsthal closed COCOON-2041.
--------------------------------------

    Fix Version/s: 2.1.12-dev (Current SVN)
                   2.2-dev (Current SVN)
       Resolution: Fixed

SourceRepositoryImpl now returns a 204 instead of 200 after a PUT on an existing resource.
Thanks for spotting the bug.

> WebDAV Returns improper status on PUT
> -------------------------------------
>
>                 Key: COCOON-2041
>                 URL: https://issues.apache.org/jira/browse/COCOON-2041
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: WebDAV
>    Affects Versions: 2.1.11
>            Reporter: Edward Riede
>             Fix For: 2.1.12-dev (Current SVN), 2.2-dev (Current SVN)
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message