Skip to main content

Unable to Create HTML Object that Includes Email Link

Content Collection HTML Objects that contain an href with the mailto: property produce an error.

Description

Content Collection HTML Objects that contain an href with the mailto: property produce an error.

Symptoms

Sample stack trace:

2019-02-08 13:35:16 -0500 - [WARNING] &nbsp;<P><span class="captionText">For reference, the Error ID is 4cf5cfb5-2fd5-42df-9816-1ac46a7167ca.</span> - java.lang.NullPointerException
at blackboard.util.UrlUtil.isExternalUrl(UrlUtil.java:2056)
at blackboard.util.UrlUtil.isExternalUrlTrustHostHeader(UrlUtil.java:2010)
at blackboard.cms.platform.contentsystem.data.ContentSystemResourceURL.init(ContentSystemResourceURL.java:81)
at blackboard.cms.platform.contentsystem.data.ContentSystemResourceURL.<init>(ContentSystemResourceURL.java:67)
at blackboard.cms.platform.contentsystem.manager.impl.NavigationManagerImpl.parseResourceLocation(NavigationManagerImpl.java:568)
at blackboard.platform.contentsystem.service.ContentLOBProcessor.process(ContentLOBProcessor.java:558)
at blackboard.platform.contentsystem.service.ContentLOBProcessor.execute(ContentLOBProcessor.java:472)
at blackboard.servlet.data.WysiwygText.resolveEmbeddedData(WysiwygText.java:1398)
at blackboard.webapps.bbcms.artifact.struts.ManageArtifactsAction$ArtifactWysiwygText.parseEmbeddedFileLinks(ManageArtifactsAction.java:406)
at blackboard.webapps.bbcms.artifact.struts.ManageArtifactsAction$ArtifactWysiwygText.<init>(ManageArtifactsAction.java:385)
at blackboard.webapps.bbcms.artifact.struts.ManageArtifactsAction.save(ManageArtifactsAction.java:195) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:266)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:167)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:53)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:64)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)

Steps to Replicate

In a SaaS Environment:

  1. Log into Blackboard Learn as a System Administrator

  2. Create and access a Course

  3. In the Control Panel click Files > [Course ID] > Create HTML Object

  4. Click the HTML button in the VTBE toolbar

  5. Enter a mail link and click Submit

Expected Behavior:
The HTML Object is created
​Observed Behavior:
An error is displayed:

An error occurred. Contact the System Administrator.
For reference, the Error ID is
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
<timestamp>

Target Release

Will Not Fix

Did this answer your question?