Missing specific attribute in collaboration move action
- I have checked that the SDK documentation and API documentation doesn't solve my issue
Description of the Issue
If UserA has a sub folder and moves it to UserB, this action is capable on Box/UI. However using java SDK, this does not seems to be capable and throws below message. As a solution, probably "Owned_by" parameter for the folder should be explicitly specified on API.
=== 400 cannot_make_collaborated_subfolder_private ===
We would like to know below. Thanks. 1.The cause of the issue 2.The workaround /Solution
Versions Used
Java SDK: 2.34.0
Steps to Reproduce
- UserA creates the folder and creates subfolder as well.
- UserA collaborates subfolder to UserB. UserB has been collaborated with "Co-owner".
- UserA moves the subfolder to UserB.
Error Message, Including Stack Trace
400 cannot_make_collaborated_subfolder_private
Hi @mattwiller , just checking in on this one. Does your closure indicate that we can't expect to see owned_by exposed in BoxFolder.move()? The cannot_make_collaborated_subfolder_private error from our docs indicates that the fix is to specify a new owned_by.id value as we make the move call, but BoxFolder.move() does not expose owned_by.
@jasonkimchi @tsaishu I wasn't aware that the owner parameter could be passed when moving a folder; this isn't really documented anywhere outside of the one reference in the Error Codes docs. Our team will discuss the best way to add this parameter to this SDK (as well as the other SDKs!)
This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.
This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box Java SDK and feel free to open another PR/issue at any time.
I have same problem. @mattwiller or Box team, can you please indicate if there is API available or workaround?