Support Article
pxValidateURL is not allowing valid URLs
SA-72776
Summary
pxValidateURL does not allow valid URLs.
The user's application uses the out-of-the-bopx Attachments feature. This feature allows the user to add URL links to a case. However, the system does not accept some of the valid inputs such as, ~, [, ], @.
For example:
http://www.your_page/~azuma/cacm.html (~ character)
https://docs.your_page.com/javase/6/docs/api/java/util/Arrays.html#binarySearch(byte[],%20byte)
Error Messages
Invalid value specified for pyURL. Value doesn't adhere to the Validate: pxValidateURL.
Steps to Reproduce
- Open a case which has the out-of-the-box Attachments enabled.
- Click Add to add an attachment.
- Choose the URL.
- Use one of the examples.
Root Cause
A defect in Pegasystems’ code or rules. Regex used to validate the URL is incorrect. In Pega 7.3, Regex is updated to use org.apache.commons.validator.routines.UrlValidator to validate URLs.
Resolution
Apply HFix-50653.
Published March 30, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.