Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Link validation job fails for invalid links with special characters

Found in

EPiServer.CMS.Core 11.1.0

Fixed in

EPiServer.CMS.Core 11.10.5

(Or a related package)

Created

Oct 03, 2018

Updated

Oct 12, 2018

Area

CMS Core

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. Link to //#_ftn1.
  2. Run Link Validation job.

Expected:
Link is ignored

Actual:
Job stops with exception

WORKAROUND: Remove invalid URL from tblSoftLink

2018-09-27 00:00:17,640 [1429] ERROR EPiServer.DataAbstraction.ScheduledJob: Job EPiServer.LinkAnalyzer.LinkValidationJob failed for the job 'Koblingsvalidering' with jobId ='6bce1827-f306-476a-b766-2b35838f6ea0'
System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(Uri baseUri, Uri relativeUri)
at EPiServer.Web.UriUtil.IsStringWellFormedUri(String uriString)
at EPiServer.LinkAnalyzer.Internal.LinkValidationRunner.CheckAndUpdateStatus(SoftLink link)
at EPiServer.LinkAnalyzer.Internal.LinkValidationRunner.CheckAndUpdateStatus(IEnumerable`1 softLinks)
at EPiServer.LinkAnalyzer.Internal.LinkValidationRunner.ValidateLinks()
at EPiServer.Scheduler.Internal.DefaultScheduledJobExecutor.<Execute>d__31.MoveNext()
System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(Uri baseUri, Uri relativeUri)
at EPiServer.Web.UriUtil.IsStringWellFormedUri(String uriString)
at EPiServer.LinkAnalyzer.Internal.LinkValidationRunner.CheckAndUpdateStatus(SoftLink link)
at EPiServer.LinkAnalyzer.Internal.LinkValidationRunner.CheckAndUpdateStatus(IEnumerable`1 softLinks)
at EPiServer.LinkAnalyzer.Internal.LinkValidationRunner.ValidateLinks()
at EPiServer.Scheduler.Internal.DefaultScheduledJobExecutor.<Execute>d__31.MoveNext()