Skip to content

Getting canViewPath parameter for collabs always returns false #1177

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugAdded to issues that describes SDK bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions