The property com.forgerock.agents.agent.invalid.url.regex is not working (is being ignored) in web agents 5.
The following tests are failing because of it:
A regexp for invalid requests is being setup - see OpenAm->Application->Agents->webagent->Application->Advanced->Custom Properties (screenshot attached). Anything matching this invalid regexp should return 403, but we get either the resource or a 404 if the resource does not exit.
In the tests, the invalid regexp is "=^((?!(|\\\*)).)$", but trying to match either "" or "" gets ignored (can be reproduced manually).
1. Add an invalid url regexp going to the agent in openam ( OpenAm->Application->Agents->webagent->Application->Advanced->Custom Properties ) and add something like:
2. Try to access something that should match that regexp, for example:
3. Verify that, even though adding the "*" at the end should make it match the invalid URL expression, a 404 comes back instead of a 403.