Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtered bundles endpoint returns IDs of deleted bundles #40

Closed
teschmitt opened this issue Sep 25, 2022 · 2 comments
Closed

Filtered bundles endpoint returns IDs of deleted bundles #40

teschmitt opened this issue Sep 25, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@teschmitt
Copy link
Contributor

teschmitt commented Sep 25, 2022

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 gh0st42 added the bug Something isn't working label Sep 28, 2022
@gh0st42
Copy link
Member

gh0st42 commented Sep 28, 2022

Good find! This is counterintuitive and should be fixed.

Thanks for reporting the issue!

@gh0st42 gh0st42 self-assigned this Sep 28, 2022
@gh0st42
Copy link
Member

gh0st42 commented Sep 28, 2022

the issue should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants