Identify the use of all JAXB created List's and determine if their users handle empty/default properly

Description

When specifying default for lists, JAXB isn't really setting the default. We should ensure that the handling of all JAXB defined List's are doing the appropriate thing when the returned List is empty.

Why? attributes that are a list, when default specified, the default doesn't get specified properly. There's code to handle not getting the proper default.

What's happening? Rate limiting default of all isn't getting the default, making the default none on no methods. But - this could be happening in other places. Default values in schema, when it takes a list of items, the default isn't being set in JAXB.
This was self-found and self-diagnosed. Vejendar had wadl problems which Bill normalized and found this issue. For Vejendar, we fixed his WADL and explicitly set defaults.

Then What?
2 ways of validating: First way is to have validator -validate. Second way, which is our approach, is give me this message and get result as a doc, it's the default value of all values of schema filled in, then pass it to jaxb. This second way will always fill in the lists. (pass that dom) over to JAXB is taken out of the equation and the big isn't hit.

We think this is a few lines of code in the config service. We will also have dead code to clean up... we estimated this at a 5 because of these reasons.

Acceptance Criteria:

  • Default values for lists are set properly

  • Dead code/cleanup is done

Environment

None
100% Done
Loading...

Activity

Show:
Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Capitalizable

True

Story Points

Time remaining

0h

Sprint

Fix versions

Priority

Created February 12, 2016 at 12:47 AM
Updated September 26, 2017 at 1:23 PM
Resolved August 21, 2017 at 1:42 PM