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

Retrieving created Web Hooks (v2) missing information

Open adaziu2021 opened this issue 4 years ago • 0 comments

  • [yes ] I have checked that the SDK documentation doesn't solve my issue.
  • [yes ] I have checked that the API documentation doesn't solve my issue.
  • [ yes] I have searched the Box Developer Forums and my issue isn't already reported (or if it has been reported, I have attached a link to it, for reference).
  • [yes ] I have searched Issues in this repo and my issue isn't already reported.

Description of the Issue

Using the latest version of the Java SDK, "2.53.0", I am trying to retrieve the information about web hooks set up by an app user.

The web hook id and target id are retuned by the API successfully, however the "address" field is not - it is always null. The triggers (if requested) are also always null.

This happens whether the normal call to retrieve web hooks is made, or a call specifying the fields to be returned.

Steps to Reproduce

  1. Get an API connection as an app user
  2. Call BoxWebHook.all(connection) or BoxWebHook.all(connection, "target","address","triggers")
  3. Iterate through the returned Iterable<BoxWebHook.Info> and examine any of the BoxWebHook.Info objects
  4. Fields in the object are null except for ID and target.

Expected Behavior

Requested fields should be populated and not 'null'

Error Message, Including Stack Trace

N/A, fields are just null

Screenshots

N/A

Versions Used

Java SDK: 2.53.0 Java: 8 "1.8.0_241"

adaziu2021 avatar Feb 18 '21 11:02 adaziu2021