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.

  • yasth 1 post 21 karma points
    Jan 27, 2015 @ 17:41
    yasth
    0

    Security Exception when attempting to edit product created through stateless API

    I think this is just some record that wasn't created, but I can't find where it would be. Ucommerce 6.5.3.14350 Umbraco 7.2.1

    Thanks

    SecurityException: You do not have access to product with SKU: 57110.] UCommerce.Presentation.Presenters.Catalog.EditProductPresenter.BindView() +381 UCommerce.Presentation.Presenters.Catalog.EditProductPresenter.HydrateView() +29 UCommerce.Presentation.Web.Pages.EnsuredPresentedPage`2..ctor() +357 UCommerce.Web.UI.Catalog.EditProduct..ctor() +28 ASP.umbracoucommercecatalogeditproductaspx..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\a94e56f1\f32da94\AppWebeditproduct.aspx.2a84e035.rwxc8ynz.0.cs:0 _ASP.FastObjectFactoryappwebeditproductaspx2a84e035rwxc8ynz.CreateASPumbracoucommercecatalogeditproductaspx() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\a94e56f1\f32da94\AppWeb_editproduct.aspx.2a84e035.rwxc8ynz.1.cs:0 System.Web.Compilation.BuildResultCompiledType.CreateInstance() +30 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +100 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37 System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +346 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

  • Jesper Nielsen 141 posts 498 karma points
    Jan 28, 2015 @ 10:28
    Jesper Nielsen
    0

    Hello Yasth,

    This exception is thrown when a user tries to edit a product, that the system does not believe the user has access to.

    The system checks if the user has access to any catalog, where the product is categorized.

    So please check which catalogs the product is in. And compare this to the list of catalogs the user has access to.

    You might have to add the product to a category in a catalog, by calling "myProduct.AddCategory(myCategory, mySortOrder)";

    Kind regards,
    Jesper 

Please Sign in or register to post replies

Write your reply to:

Draft