Skip to content

Conversation

DmitryLitvintsev
Copy link
Member

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: yes

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: yes
@mksahakyan mksahakyan merged commit a399884 into 10.2 Aug 27, 2025
3 checks passed
@mksahakyan mksahakyan deleted the 14512/10.2 branch August 27, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants