dCache / dcache

dCache - a system for storing and retrieving huge amounts of data, distributed among a large number of heterogenous server nodes, under a single virtual filesystem tree with a variety of standard access methods
https://dcache.org
291 stars 136 forks source link

tape REST api: additional fix tohandling of prefixed paths #7692

Closed DmitryLitvintsev closed 2 weeks ago

DmitryLitvintsev commented 2 weeks ago

Motivation:

Users reported 2 day pin lifetime on staged files (which is a default) despite specifying different values. This is due to failure to match target key on truncated vs prefixed path in target argument map keyed on un-prefixed paths.

Modification:

Use full target paths throughout the system. Make sure to strip prefix when exposing paths to users.

Result:

Observe correct user specified pin lifetime.

Ticket: https://github.com/dCache/dcache/issues/7687 Patch: https://rb.dcache.org/r/14339/ Target: trunk Request: 10.2, 10.1, 10.0, 9.2 Require-book: no Require-notes: yes