You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have also tested here using "Box Java SDK" SDK version: 4.1.1 (latest).
As a result, after updating, I was able to confirm that can_view_path was ON and working.
However, when I retrieve the relevant collaboration information from the code and check the can_view_path setting value, it is "false".
Source code assembled from ■Doc
// Specify Box folder
BoxFolder folder = new BoxFolder(api, "211249917343");
// Update the collaborator for the specified folder.
BoxCollaboration collaboration = new BoxCollaboration(api, "45102650930");
BoxCollaboration.Info info = collaboration.new Info();
info.setStatus(BoxCollaboration.Status.ACCEPTED);
info.setRole(Role.EDITOR); info.
info.setCanViewPath(true); ← CanViewPath is set to "true", so the target collaborator is assumed to be updated.
collaboration.updateInfo(info);
// Check the CanViewPath of the folder.
for(Info info : folder.getCollaborations()) {
boolean canViewPath = info.getCanViewPath();
System.out.println(canViewPath); ← Assumed to change to "true" with the above update, but it remains "false".
}
The can_view_path setting being false was reported as a "bug" in the past and was fixed, but it is possible that the bug has reappeared in some version. #569
The text was updated successfully, but these errors were encountered:
ghost
added
the
bug
Added to issues that describes SDK bug
label
Jun 20, 2023
We have also tested here using "Box Java SDK" SDK version: 4.1.1 (latest).
As a result, after updating, I was able to confirm that can_view_path was ON and working.
However, when I retrieve the relevant collaboration information from the code and check the can_view_path setting value, it is "false".
Source code assembled from ■Doc
// Specify Box folder
BoxFolder folder = new BoxFolder(api, "211249917343");
// Update the collaborator for the specified folder.
BoxCollaboration collaboration = new BoxCollaboration(api, "45102650930");
BoxCollaboration.Info info = collaboration.new Info();
info.setStatus(BoxCollaboration.Status.ACCEPTED);
info.setRole(Role.EDITOR); info.
info.setCanViewPath(true); ← CanViewPath is set to "true", so the target collaborator is assumed to be updated.
collaboration.updateInfo(info);
// Check the CanViewPath of the folder.
for(Info info : folder.getCollaborations()) {
boolean canViewPath = info.getCanViewPath();
System.out.println(canViewPath); ← Assumed to change to "true" with the above update, but it remains "false".
}
The can_view_path setting being false was reported as a "bug" in the past and was fixed, but it is possible that the bug has reappeared in some version.
#569
The text was updated successfully, but these errors were encountered: