Short URL access limits (validSince/validUntil and maxVisits) are not enforced — redirects keep working #212
|
Current behavior I edited an existing short URL and set access limits on it (via shlink-web-client, "Limit access to the short URL" section):
The limits are persisted correctly — when I reopen the short URL for editing, all three values are still there. However, they are never enforced:
The redirect itself works fine; only the access restrictions are ignored. Expected behavior Once Minimum steps to reproduce
|
Replies: 2 comments
|
I can't reproduce this, it works as expected for me. I have tried with Shlink 4.5, but also with Shlink 5.1 (latest version as of today). Can you provide a docker compose config where this can be reproduced consistently? It might be related with some weird configuration combination. For example, depending on the values of |
|
Hi @acelaya, sorry for the noise — this turned out to be my own careless mistake. I was forwarding traffic for the real domain on the same server that runs Shlink, so the requests were not actually hitting Shlink the way I expected. That made it look like the access limits ( After fixing the forwarding setup, the access limits are enforced exactly as expected: the short URL stops redirecting once Thanks a lot for your time looking into this, and apologies for the false report. Feel free to close this discussion. |
Hi @acelaya, sorry for the noise — this turned out to be my own careless mistake.
I was forwarding traffic for the real domain on the same server that runs Shlink, so the requests were not actually hitting Shlink the way I expected. That made it look like the access limits (
validSince/validUntilandmaxVisits) were being ignored, when in fact the redirects were being served outside of Shlink.After fixing the forwarding setup, the access limits are enforced exactly as expected: the short URL stops redirecting once
validUntilhas passed ormaxVisitsis reached.Thanks a lot for your time looking into this, and apologies for the false report. Feel free to close this discussion.