There was a problem loading the comments.

API endpoint /core/createfolder

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Original Question

or Issue:

API call http://IP/core/createfolder?path=/teamfolder/folder&subpath=toplevel/Project/new is verifying locks everywhere under directory toplevel.

Environment:

  • Product - On-premise
  • Version - All
  • Platform - All
  • Application - API
Steps to Reproduce:

 

Lock a file under path /teamfolder/folder/toplevel/poc/design.pdf

Try to create a new folder via API: http://IP/core/createfolder?path=/teamfolder/folder&subpath=toplevel/Project/new

 

Error or Log Message: Modification check for /teamfolder/folder/toplevel user teamfolder.
Folder creation is not allowed because path is locked by username.

Defect or

Enhancement Number:

 
Cause: Using the endpoint /core/createfolder with the parameters subpath will cause a check for any lock on top level folder specified in subpath and all it's sub folders/files.

Resolution or

Workaround:

Please note you can achieve that API call using the parameter name instead of subpath like below:

http://IP/core/createfolder?path=/teamfolder/folder/toplevel/Project&name=new

 

This way the endpoint will only verify the existence of that folder:

Modification check for /teamfolder/folder/toplevel/Project/new user teamfolder
Adding folder /teamfolder/folder/toplevel/Project/new

Notes:   

Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal
© FileCloud