dtn7 / dtn7-rs

Rust implementation of a DTN based on RFC 9171
Other
75 stars 20 forks source link

Filtered bundles endpoint returns IDs of deleted bundles #40

Closed teschmitt closed 1 year ago

teschmitt commented 1 year ago

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 1 year ago

Good find! This is counterintuitive and should be fixed.

Thanks for reporting the issue!

gh0st42 commented 1 year ago

the issue should be fixed now