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
Solved! Go to Solution.
Views
Replies
Total Likes
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.
This happens when URLs are created but not encoded correctly.
Try using
URLEncoder.encode(url.toString());
These appear to be urls accessed and not encoded via code, some authored via RTE
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.
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://
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}
Views
Likes
Replies