U4-4015 - Usercontrol Browse Properties error

Created by Tony Southworth 09 Jan 2014, 11:01:40 Updated by Shannon Deminick 10 Mar 2014, 00:23:49

When creating a macro from a Usercontrol, the Browse Properties button produces the error:

System.ArgumentException: The relative virtual path '~usercontrolsRender-Template.ascx' is not allowed here. at System.Web.VirtualPath.FailIfRelativePath() at System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) at System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath) at System.Web.Hosting.HostingEnvironment.MapPath(VirtualPath virtualPath) at Umbraco.Core.IO.IOHelper.MapPath(String path, Boolean useHttpContext) at Umbraco.Core.IO.IOHelper.VerifyEditPath(String filePath, String validDir) at Umbraco.Core.IO.IOHelper.ValidateEditPath(String filePath, String validDir) at umbraco.developer.assemblyBrowser.Page_Load(Object sender, EventArgs e)

It looks like the virtual path has stripped out the / character.

Comments

Casey Neehouse 04 Mar 2014, 17:59:37

Also visible in 6.2 Build 158 (2/25/2014)


Sebastiaan Janssen 07 Mar 2014, 19:39:11

@Shandem This is because CleanForXss is stripping / from the string.


Priority: Major

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category: Editor

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.2.0, 7.0.1

Due in version: 6.2.0

Sprint:

Story Points:

Cycle: