Filtered bundles endpoint returns IDs of deleted bundles
teschmitt opened this issue · 2 comments
teschmitt commented
IDs of deleted bundles are not returned when querying the /status/bundles
endpoint, but are returned when they match a query to the /status/bundles/filtered
endpoint:
$ curl http://127.0.0.1:3000/status/bundles
[]
$ curl http://127.0.0.1:3000/status/bundles/filtered\?addr\=abcdefg
[
"dtn://n1/mail/abcdefg-717328651177-0",
"dtn://n1/mail/abcdefg-717329554776-0",
"dtn://n1/mail/abcdefg-717329333204-0",
"dtn://n1/mail/abcdefg-717329397442-0"
]
This behavior is inconsistent and easily leads to errors, since deleted bundle IDs are shown just like IDs of stored and hence downloadable bundles.
gh0st42 commented
Good find! This is counterintuitive and should be fixed.
Thanks for reporting the issue!
gh0st42 commented
the issue should be fixed now