Silently replaced an existing collection? #273
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
orinoco/dump-things-service#273
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I ran
curl -X PUT 'https://hub.trr379.de/api/dumpthings/v1/collections'withBefore that, I had a collection with
"name": "dfg-survey-2026-main"(note the extra dash).After the PUT this old collection is gone. I would expect a second collection with the new name to exist.
I don't see a difference in the name.
The request uses:
"dfgsurvey-2026-main"
The before name is:
"dfgsurvey-2026-main"
AFAICS they are identical.
I copied the wrong name. Now there is a difference. The question remains the same.
I have now checked server-side. There are the residuals of the
dfg-survey-2026-mainin the form of the directoriesdfg-survey/2026/main/curated,dfg-survey/2026/main/inboxesThe
config_auditalso shows a separate addition of a completely new collection, and later the removal of the original collection.I tried to reproduce this behavior locally with version 6.5.0 (which is what
https://hub.trr379.de/api/dumpthings/v1/collectionsis currently running) and failed. I also tried with version 6.6.3, to no avail.Judging from the code it seems impossible that two different names lead to overwriting. I.e., both collections should be in the configuration (can be checked with
dump-things-download-config, which I cannot use since I don't have an admin token).I have no explanation for the observed behavior.