From the description of `linkPhysicalAddress` in ...
# dev
y
From the description of
linkPhysicalAddress
in swagger.yml:
If the supplied token matches the current staging token, associate the object as the
physical address with the supplied path.
Otherwise, if staging has been committed and the token has expired, return a conflict [...]
From the code of
LinkPhysicalAddress
:
Copy code
// Because CreateEntry tracks staging on a database with atomic operations,
// _ignore_ the staging token here: no harm done even if a race was lost
// against a commit.
I think the swagger.yml doc is not up to date? Or am I missing something? CC @Niro @Barak Amar
n
@Yoni Augarten It's true - we no longer validate the staging token - moreover, I'm not sure what is the point of returning the staging token in the response anymore (We no longer use it in the LinkPhysicalAddress request)
👍 1