Hyperlink creation fail for encrypted URL in Rich Text Editor component | Community
Skip to main content
Level 2
October 16, 2015
Solved

Hyperlink creation fail for encrypted URL in Rich Text Editor component

  • October 16, 2015
  • 1 reply
  • 752 views

Hyperlink creation fail for encrypted URL in Rich Text Editor component

When i try to create a Hyperlink using a RichTextEditor component its fail for Encryped URL links?

URL's with %20 in it fails?

I tried to decode the URL  and used the decoded URL  to create Hyperlink, But still it fails.

Does AEM  allows to create a Hyperlink for Encrypted URL's links.

Any help in this regard is really helpfull.

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

 Generally Java/AEM does not itself encode or decode any URL according to the escaping mechanism defined in RFC2396. It is the responsibility of the caller/author to encode any fields, which need to be escaped prior to storing/calling URL. The oracle statement at [1] & holds good here also.   However there was product bug where sidekick was breaking because of that & the bug CQ-30149 has been logged.  If you want authors to allow % then at project level write own transformer.


[1] http://docs.oracle.com/javase/7/docs/api/java/net/URL.html

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

 Generally Java/AEM does not itself encode or decode any URL according to the escaping mechanism defined in RFC2396. It is the responsibility of the caller/author to encode any fields, which need to be escaped prior to storing/calling URL. The oracle statement at [1] & holds good here also.   However there was product bug where sidekick was breaking because of that & the bug CQ-30149 has been logged.  If you want authors to allow % then at project level write own transformer.


[1] http://docs.oracle.com/javase/7/docs/api/java/net/URL.html