132ikl / liteshort

[MOVED] User-friendly, actually lightweight, and configurable URL shortener

Home Page:https://ls.ikl.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API delete returns success but does not actually delete the URL

eibex opened this issue · comments

commented

Requesting an URL deletion does not work as intended, both with long and short data.

curl -u user:pwd -d 'format=json' -d 'api=delete' -d 'long=https://longurl.com' https://example.com

This does not seem to do anything even though it returns success. The links that point to this URL keep working.

curl -u user:pwd -d 'format=json' -d 'api=delete' -d 'short=short4chars' https://example.com

This deletes the shorturl, but a new one is created if you try to delete the long URL it was pointing to.

Hi, I can't reproduce this on my instance. Could you send your configuration, and if possible your database file?

commented

I just noticed the reason was the latest short URL link was not shown when asking for a list of URLs with the API unless the database was empty. Sorry for the issue.