Commit fa6a03e
committed
WLCG tape API: do not report empty fields in json responses
Motivation
----------
Commit 36d6a5e added
reporting null and default value fields. Turns out FTS
(CERN File Transfer Service), when it processes REST
API Reponse checks the "error" field
and considers request failed if the field is present
(ignoring that it has null value)
Modification
------------
Annotate classes used by WCLG tape API w/
@JsonInclude(JsonInclude.Include.NON_NULL)
to skip null fields only for WCLC tape rest api
Result
------
No null error is reported
Acked-by: Chris Green
Patch: https://rb.dcache.org/r/14512/
Target: trunk
Request: 11.x, 10.x, 9.x
Require-book: no
Require-notes: yes1 parent afcaa98 commit fa6a03e
File tree
3 files changed
+16
-0
lines changed- modules/dcache-frontend/src/main/java/org/dcache/restful/providers/tape
3 files changed
+16
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
| 98 | + | |
| 99 | + | |
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
99 | 103 | | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
0 commit comments