Expand my Community achievements bar.

SOLVED

AEM 6.5 LinkCheckerImpl Ignoring malformed URI:Expected authority at index

Avatar

Level 10

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

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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-ric...

 

View solution in original post

5 Replies

Avatar

Level 4

This happens when URLs are created but not encoded correctly.

Try using

URLEncoder.encode(url.toString());

 

Avatar

Level 10

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

Avatar

Correct answer by
Community Advisor

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-ric...

 

Avatar

Level 10

Hi @Rohan_Garg , thank you for the response.. RTE has some weird string which will inbox you but i kind of am worried about the page path throwing 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://

Avatar

Level 10

Hi @Rohan_Garg , 

 

Managed to get past all but one on author instance and yes you are right, it was someone who authored a # for url which somehow internally translates to http://#. Wonder why and what causes it.

 

Rest would need cleanup on authoring front

 

Kindly let me know if you recognize this one.

 POST /bin/wcmcommand HTTP/1.1] com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl Ignoring malformed URI: java.net.URISyntaxException: Illegal character in path at index 0: {/content/xxx/test}