Closed neos-bot closed 7 years ago
Comment created by @aertmann:
[su_decaf]: Thanks for reporting, I agree that behavior is not optimal and should be more graceful, at least in production context.
[bwaidelich], [~kdambekalns]: maybe you have an opinion?
Comment created by @kdambekalns:
An immediate solution would be to rewrite ?(\[0-9\]+$)
in the webserver and remove it.
For the actual handling, I think it would be ok to treat 123
the same as "123"
as a name (I am actually surprised it comes in as an integer here).
Comment created by @kdambekalns:
[~su_decaf], could you check if changing if (!is_string($argumentName) || strlen($argumentName) === 0) {
toif (empty($argumentName)) {
(inActionRequest.setArgument
) solves your case and keep everything else working?
Comment created by @albe:
Ping. How should we proceed? Implement the fix [~kdambekalns] suggested?
via #954
Jira issue originally created by user su_decaf:
Hello,
an 500 exception is thrown, when you try to request a non existing page with a query string of numbers Try the following URL: https://www.neos.io/folder/site?123 and you will get a 500 answer
https://www.neos.io/folder/site or https://www.neos.io/folder/site?ts=123 is working as excepted (404)
Here is the exception
Why this ticket: In one of our projects, the old TYPO3 page rendered the static files with such a timestamp value, and these URLs are in the index of several search engines. After switching to NEOS we are getting thousands of such exceptions (which are logged in
Data/Logs/Exceptions
), because the bots try to get these (old) URLs again and again.Best, Stefan
Jira-URL: https://jira.neos.io/browse/FLOW-451