AEM 6.5 LinkCheckerImpl Ignoring malformed URI:Expected authority at index | Community
Skip to main content
Level 9
June 6, 2023
Solved

AEM 6.5 LinkCheckerImpl Ignoring malformed URI:Expected authority at index

  • June 6, 2023
  • 1 reply
  • 1734 views

Hi All,

 

Had a question that someone might have come across and may be really easy to solve

 

I see this on pubs and author.

1. Strangely pub has the config on link checker disabled and we still see the WARNs, unsure why 

2. Do we know how this can be solved and what this even means ? Limited data displayed for the warning to infer anything

 

WARN GET /content/cc/test/week.html HTTP/1.1] com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl Ignoring malformed URI: java.net.URISyntaxException: Expected authority at index 7: http://

 

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 Rohan_Garg

Can you post the URLs being configured via RTE?

I have seen adding a 'https://' to the empty value, and then proceeding to try to parse that will reproduce the same error.

You might want to configure a validation for links in form of protocol or external links.

https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/configure-rich-text-editor-plug-ins.html?lang=en#linkstyles

 

1 reply

Level 3
June 6, 2023

This happens when URLs are created but not encoded correctly.

Try using

URLEncoder.encode(url.toString());

 

Level 9
June 6, 2023

These appear to be urls accessed and not encoded via code, some authored via RTE

Rohan_Garg
Community Advisor
Rohan_GargCommunity AdvisorAccepted solution
Community Advisor
June 7, 2023

Can you post the URLs being configured via RTE?

I have seen adding a 'https://' to the empty value, and then proceeding to try to parse that will reproduce the same error.

You might want to configure a validation for links in form of protocol or external links.

https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/configure-rich-text-editor-plug-ins.html?lang=en#linkstyles