镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

true/false fields inaccurate for 'getCanSeeManagedUsers()' and 'getIsSyncEnabled()' #386

Open

Description

@paapfly

When using the Box Java SDK, the 'getCanSeeManagedUsers()' and 'getIsSyncEnabled()' methods on the BoxUser.Info object always return 'false'. These two flags are set to 'true' on users in our org but always return false. We need the Java SDK updated to reflect the actual state of the flags on the user.

Activity

  1. gcurtis commented on Feb 6, 2017

    @gcurtis
    Contributor

    Hi @paapfly, can you confirm that you're passing in these fields in through the fields parameters? They're not returned by the API by default.

  2. mattwiller commented on Dec 24, 2017

    @mattwiller

    There's definitely a workaround available here (making sure to pass these fields to getInfo(), but this really seems like a case of bad defaults. The fact that this field defaults to false when the field was not requested introduces uncertainty when the BoxUser.Info object is used: was the field actually false or just not requested by whoever generated the object?

    We should look into how to address this sort of confusion around optional fields in the future, e.g. by using Boolean or Optional in some way.

  3. added
    breakingAdded to issued that will introduce breaking changes to SDK
    on Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingAdded to issued that will introduce breaking changes to SDKenhancementAdded to issues that describes enhancements

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions