Bug 36354 - Version control method for workspaces incorrectly produces one-version-controlled-resource-per-history-per-workspace error message.
Summary: Version control method for workspaces incorrectly produces one-version-contro...
Status: NEW
Alias: None
Product: Slide
Classification: Unclassified
Component: Versioning (show other bugs)
Version: 2.1
Hardware: PC Windows 2000
: P2 major (vote)
Target Milestone: ---
Assignee: Slide Developer List
URL:
Keywords: RFC
Depends on:
Blocks:
 
Reported: 2005-08-25 12:38 UTC by Anthony Marendy
Modified: 2005-08-25 04:38 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Marendy 2005-08-25 12:38:38 UTC
The server seems to have a bug in the code which checks to see if a version 
already exists in a workspace.  In the following example, I add the 
href /slide/history/4/1.0 after the href
/slide/history/40/1.0.

(Note history/4 vs history/40)

Here is a copy of a WebDav client session where I create a brand new
workspace, and then add the two hrefs.

[LOCALHOST:/slide/workspace/] C:\ $ mkws test
Making '/slide/workspace/test' workspace: succeeded.
[LOCALHOST:/slide/workspace/] C:\ $ cd test
[LOCALHOST:/slide/workspace/test/] C:\ $ versioncontrol
/slide/history/40/1.0 href_40
creating versioncontroled Resource '/slide/history/40/1.0' based on
'/slide/workspace/test/href_40' : succeeded.
[LOCALHOST:/slide/workspace/test/] C:\ $ set debug on
[LOCALHOST:/slide/workspace/test/] C:\ $ The debug flag is on.
[LOCALHOST:/slide/workspace/test/] C:\ $ versioncontrol /slide/history/4/1.0
href_4
creating versioncontroled Resource '/slide/history/4/1.0' based on
'/slide/workspace/test/href_4' :
>>>>>>>  to  server  ---------------------------------------------------
VERSION-CONTROL /slide/workspace/test/href_4 HTTP/1.1
Authorization: Basic cm9vdDpyb290
Content-Type: text/xml; charset=utf-8
User-Agent: Jakarta Commons-HttpClient/2.0final
Host: localhost:8081
Cookie: $Version=0; JSESSIONID=52CE7E03E879703D9644AD51C8599034;
$Path=/slide
Content-Length: 153
Depth: 0

<D:version-control xmlns:D="DAV:">
   <D:version>
      <D:href>
            /slide/history/4/1.0
      </D:href>
   </D:version>
</D:version-control>
------------------------------------------------------------------------

<<<<<<< from server  ---------------------------------------------------
HTTP/1.1 409 Conflict
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 10:00:00 EST
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 18 Aug 2005 21:28:57 GMT
Server: Apache-Coyote/1.1

<D:error xmlns:D="DAV:">
   <D:one-version-controlled-resource-per-history-per-workspace>
   </D:one-version-controlled-resource-per-history-per-workspace>
</D:error>
------------------------------------------------------------------------
failed.
Conflict (409)
[LOCALHOST:/slide/workspace/test/] C:\ $



The operation works just fine if I add href /slide/history/4/1.0 before 
href /slide/history/40/1.0.


Regards,
Anthony.