Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Filip Lundby 128 posts 149 karma points
    Jan 30, 2014 @ 12:23
    Filip Lundby
    0

    Illegal characters in path - categories and productnames

    I've godt categories and product names containing vertical-bar-sign also called pipe (http://en.wikipedia.org/wiki/Vertical_bar). 

    This result in server errors: "Illegal characters in path."

    Product example URI: /produkter/tilbehoer/sorte-%7c-stole/sort-stol/c-23/c-70/p-105

    Can this be fixed or am I forced to avoid special characters?

    [ArgumentException: Illegal characters in path.]
       System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) +10915254
       System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[] str) +30
       System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +97
       System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) +63
       System.Web.InternalSecurityPermissions.PathDiscovery(String path) +29
       System.Web.HttpRequest.get_PhysicalPath() +40
       UrlRewritingNet.Web.UrlRewriteModule.OnBeginRequest(Object sender, EventArgs e) +71
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

     

     

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Jan 30, 2014 @ 12:34
    Nickolaj Lundgreen
    0

    You could override the IurlService to encode the pipe char (umbraco has a helper if i recall correct), or just avoid using it :-)

  • Filip Lundby 128 posts 149 karma points
    Jan 30, 2014 @ 12:58
Please Sign in or register to post replies

Write your reply to:

Draft