[CONTROLLER-923] ?prettyPrint=true is ignored Created: 06/Oct/14 Updated: 14/Nov/17 Resolved: 16/Jun/15 |
|
| Status: | Verified |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Vratko Polak | Assignee: | Jan Hajnar |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| External issue ID: | 2153 |
| Description |
|
The fix to |
| Comments |
| Comment by Jozef Gloncak [ 14/Oct/14 ] |
|
currently working on pretty print for xml output |
| Comment by Jozef Gloncak [ 16/Oct/14 ] |
|
should be used some other (simpler writer) |
| Comment by Jozef Gloncak [ 17/Oct/14 ] |
|
https://git.opendaylight.org/gerrit/#/c/11938/4 - changes in sal-rest-connector [DRAFT] XML indentation isn't done in yang-data-impl but directly in sal-rest-connector in class NormalizedNodeXmlBodyWriter in method writeTo(). If indentation is required then prepared entityStream (parameter of writeTo() method) is red and transformed to new input stream which is then transformed via Transformer class to indented output. |
| Comment by Jozef Gloncak [ 17/Oct/14 ] |
|
In NormalizedNodeXmlBodyWriter class method writeTo() was changed. |
| Comment by Jozef Gloncak [ 15/Jan/15 ] |
|
both patches (yangtools and controller) for JSON |
| Comment by Vratko Polak [ 05/Feb/15 ] |
|
Still not fixed, I guess Target Milestone should be changed. Considering the default value for prettyPrint, current state is that regular responses are not indented, but responses with errors are indented. |
| Comment by Jan Hajnar [ 26/May/15 ] |
| Comment by Vratko Polak [ 16/Jun/15 ] |
|
Verified to be fixed (for regular data, both XML and JSON) on Lithium RC1 2015-06-16 build. |