Cocoon
  1. Cocoon
  2. COCOON-2041

WebDAV Returns improper status on PUT

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.11
    • Fix Version/s: 2.1.12, 2.2.1
    • Component/s: Blocks: WebDAV
    • Labels:
      None
    • Urgency:
      Normal
    • Other Info:
      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.

        Activity

        Edward Riede created issue -
        Jasha Joachimsthal made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 2.1.12-dev (Current SVN) [ 12312903 ]
        Fix Version/s 2.2-dev (Current SVN) [ 12313093 ]
        Resolution Fixed [ 1 ]
        Jasha Joachimsthal made changes -
        Assignee Jasha Joachimsthal [ jashajoachimsthal ]

          People

          • Assignee:
            Jasha Joachimsthal
            Reporter:
            Edward Riede
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development