Thank you very much, Daniel. But could you give me a little more explanation 
about the
"main" branch and the "backup" branch?
 
I'm using webdavclient in most places. But there are one or two places where I 
need to
create folder inside of the other webdav method, for example, I need to create 
a folder in
ACLMethod so that when a folder is assigned to some user, accordingly, a system 
folder is created at the same time (to server our requirement). This is why we 
use the slide api directly in this place.
 
I need to know a little more of the slide's logic in handling the versioning 
and branch, then
I can make a decision of what to do in my application.
 
Thanks.
 
regards,
 
Jun

Daniel Florey <[EMAIL PROTECTED]> wrote:
Do not use the Slide API directly, but use the webdavclient-library instead.
You'll run into trouble if you want to use versioning. This is handled in
the WebDAV-layer...
Cheers,
Daniel

> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Im Auftrag von Gao Jun
> Gesendet: Montag, 6. Dezember 2004 08:44
> An: [EMAIL PROTECTED]
> Betreff: version_history table's branch_id column
> 
> Hi,
> 
> I've some problem in using slide. When I use propfind on a folder I
> created, I was told that folder doesn't exist. The backend log reads
> "02 Dec 2004 02:27:02 5793672 DEBUG [tcpConnection-80-154] httpclient.wire
> - << "HTTP/1.1 500 Internal Server Error: No revision descriptor found on
> object MY_FOLDER_NAME[\r][\n]""
> 
> I created that folder with my own code listed below:
> 
> //create the new folder
> SubjectNode collection = new SubjectNode();
> structure.create(slideToken, collection,
> folderName);//slide's original implement
> 
> NodeRevisionDescriptor revisionDescriptor = new
> NodeRevisionDescriptor(0);
> // Resource type
> revisionDescriptor.setResourceType("");
> 
> // Creation date
> revisionDescriptor.setCreationDate(new Date());
> 
> // Last modification date
> revisionDescriptor.setLastModified(new Date());
> 
> // Content length name
> revisionDescriptor.setContentLength(0);
> 
> // Source
> revisionDescriptor.setSource("");
> 
> // Owner
> String creator =
> ((SubjectNode)security.getPrincipal(slideToken)).getPath().lastSegment();
> revisionDescriptor.setCreationUser(creator);
> revisionDescriptor.setOwner(creator);
> 
> // Added for DeltaV --start--
> if( Configuration.useVersionControl() )
> {
> VersioningHelper vHelp =
> VersioningHelper.getVersioningHelper(
> slideToken, token, req, resp, getConfig() );
> 
> // Workspace
> vHelp.setWorkspaceProperty( userLinkPath,
> revisionDescriptor );
> }
> // Added for DeltaV --end--
> 
> if (isMsProprietarySupport()) {
> 
> NodeProperty property = null;
> 
> // Is hidden
> property = new NodeProperty("ishidden", "0",
> "MICROSOFT");
> revisionDescriptor.setProperty(property);
> 
> // Is collection
> property = new NodeProperty("iscollection", "1",
> "MICROSOFT");
> revisionDescriptor.setProperty(property);
> 
> // Is read only
> property = new NodeProperty("isreadonly", "0",
> "MICROSOFT");
> revisionDescriptor.setProperty(property);
> 
> // Last accessed
> property = new NodeProperty("lastaccessed",
> (new
> Date()).toString(), "MICROSOFT");
> revisionDescriptor.setProperty(property);
> }
> content.create(slideToken, folderName,
> revisionDescriptor, null);
> ...
> 
> I found the new folder name has been created in URI table. The odd thing I
> found is
> in the table version_history, the row for this new folder's URI has a
> branch_id which
> is a "backup" instead of "main" according to table branch.
> 
> I have no idea of what this "backup" and "main" mean. Could anybody help
> explain
> and could you see what's the cause of my problem? Thanks a lot.
> 
> regards,
> 
> Jun
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to