box-java-sdk icon indicating copy to clipboard operation
box-java-sdk copied to clipboard

Missing specific attribute in collaboration move action

Open tsaishu opened this issue 6 years ago • 2 comments

  • 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

  1. UserA creates the folder and creates subfolder as well.
  2. UserA collaborates subfolder to UserB. UserB has been collaborated with "Co-owner".
  3. UserA moves the subfolder to UserB.

Error Message, Including Stack Trace

400 cannot_make_collaborated_subfolder_private

tsaishu avatar Jun 13 '19 04:06 tsaishu

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.

rlatntjr avatar Jun 17 '19 15:06 rlatntjr

@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!)

mattwiller avatar Jun 19 '19 19:06 mattwiller

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.

stale[bot] avatar Dec 19 '22 19:12 stale[bot]

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.

stale[bot] avatar Dec 26 '22 21:12 stale[bot]

I have same problem. @mattwiller or Box team, can you please indicate if there is API available or workaround?

jae-hyup avatar Feb 20 '24 02:02 jae-hyup