Closed DylanVanAssche closed 4 years ago
That should work, definitely sounds like a bug. Will look into it.
Using the same command it works for me. Have you tried force refreshing the page ?
I refreshed the page by force but it's still there. I checked the SQLite database too, the entry is still there.
Even if I submit an ID which does not exist (for example: 0
or 1
), the response is still Deleted
instead of Invalid ID
.
Found the issue. The delete statements didn't check if anything got deleted, which I just fixed. Your issue arises from the fact you're using the numerical ID, while the deletion endpoint expects the base36 string.
I'll probably rework the tool to use the strings as IDs directly instead of numbers since that has been annoying me quite a bit, but in the meantime I'll add a simple endpoint to convert numerical IDs to base36.
The fix and the new route are on master. You can get the base36 string from a numerical ID with GET /id/{numerical_id}
. You'll need to reset the password using filite passwd
when updating the binary (another stupid thing I need to fix).
Works great! Thanks!
I just want to mention that I made a script for more easily browsing through all of the registered string IDs, which can really help when trying to delete a lot of entries. https://github.com/Syndamia/filite-list/
@Syndamia If you want to open a PR adding a link to it in the readme on master feel free, that does look useful
I really like your pastebin tool! I was trying to delete an entry using the following command:
ID is the ID of the entry (
12548
) when you get the output ofhttps://username:password@bin.example.com/t
:I get the reply
Deleted
but the entry is still there... Is this the wrong way to delete an entry?