WebContent: Error message displays the variables

Description

On trunk (23) and 22, if the user adds Web Content to their site, but does not fill out the URL properly, the error message displays the variables.

Alert: Invalid URL. If you were trying to use macros with curly braces like ${SITE_INFO} please remove them: $SITE_INFO.

From the server logs:

03-Oct-2022 18:36:49.768 INFO [http-nio-20013-exec-38] o.s.u.i.FormattedTextImpl.sanitizeHrefURL Failure during encode of href url: java.net.URISyntaxException: Expected authority at index 7: http://

Attachments

1

Activity

Details

Priority

Affects versions

22 Status

Please Merge

Components

Assignee

Reporter

Environment

23x: https://trunk-mysql.nightly.sakaiproject.org/, build: cf37b32b 22x: https://qa22-mysql.nightly.sakaiproject.org/, build: 80373c9f

Created October 3, 2022 at 10:45 PM
Updated October 10, 2022 at 7:00 PM