Hello All,

I have a question on the correct way of using WebdavResource.labelMethod for
removing a label.

boolean success = webdavResource.labelMethod(**path**, "label",
WebdavResource.LABEL_REMOVE)

In the above method "labelMethod" should **path** be the version path or the
resource path? In other words should **path** be something like
"/slide/history/1/1.0" or can it be "/slide/files/testingRemoveLabel.file".

I tried using resource path (i.e. "/slide/files/testingRemoveLabel.file"),
but it threw a 409 error. My resource has 2 versions: 1.0 and 1.1 of which
version 1.0 has been labeled. Ideally I expected the labelMethod to remove
the label from any version which has that label, given the resource path.
Could someone please point what am I doing wrong?

When I try removing label using the version path, of the specific version
which has that label, then it works fine. But this unnecessarily requires me
to first find which version has a given label. Am I missing something? 

Thanks,
Ritu
 




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

Reply via email to