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("<collection/>"); > > // 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]
