locked
Bug RRS feed

  • Question

  • Hello,

    adding a second user to the mds security tab works fine. Modifying the security to an entity for this user returns the following error. I first enabled the security to a derived hierarchy and then tried to apply security to an entity.

    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 5-10-2016 13:52:36 
    Event time (UTC): 5-10-2016 11:52:36 
    Event ID: 7f7d795f5fb04957947d1f96ebf62b74 
    Event sequence: 30 
    Event occurrence: 1 
    Event detail code: 0 
     
    Application information: 
        Application domain: /LM/W3SVC/1/ROOT/MDS_TEST-1-131201419257283438 
        Trust level: Full 
        Application Virtual Path: /MDS_TEST 
        Application Path: C:\Program Files\Microsoft SQL Server\130\Master Data Services\WebApplication\ 
        Machine name: 
     
    Process information: 
        Process ID: 33960 
        Process name: w3wp.exe 
        Account name: 
     
    Exception information: 
        Exception type: ArgumentOutOfRangeException 
        Exception message: startIndex cannot be larger than length of string.
    Parameter name: startIndex
       at System.String.Substring(Int32 startIndex, Int32 length)
       at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)
       at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
       at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
       at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Security.ToModelPrivileges(DataTable table, ResultType resultType)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetModelPrivilege(RequestContext context, Int32 principalId, SecurityResolutionType resolutionType, PrincipalType principalType, ResultType resultType, Collection`1 results)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Security.PopulateModelPrivilege(RequestContext context, Collection`1 users, SecurityResolutionType resolutionType, ResultType resultType)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetUserSecurity(RequestContext context, SecurityPrincipalsCriteria criteria, OperationResult results, Boolean pruneDenies)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetSecurityPrincipal(RequestContext context, SecurityPrincipalsCriteria criteria, SecurityPrincipals principal)
       at Microsoft.MasterDataServices.Services.Service.SecurityPrincipalsGet(SecurityPrincipalsGetRequest request)
       at Microsoft.MasterDataServices.WebUI.ServiceAdapter.ExecuteRequest[TRequestType,TResponseType](MdmServiceOperation`2 operation, TRequestType request, String caller)
       at Microsoft.MasterDataServices.WebUI.ServiceAdapter.GetModelPrivileges(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType)
       at Microsoft.MasterDataServices.WebUI.ServiceAdapter.CacheModelPrivileges(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType)
       at Microsoft.MasterDataServices.WebUI.ServiceAdapter.GetModelPrivilegesFromCache(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType)
       at Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.GetModelPermissions(SecurityResolutionType resolutionType)
       at Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.LoadTree(Node parentNode)
       at Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.LoadData(String principalId, PrincipalType principalType, DisplayModeType displayMode, Int32 modelId)
       at Microsoft.MasterDataServices.WebUI.Security.Common.Models.LoadTree()
       at Microsoft.MasterDataServices.WebUI.Security.Common.Models.LoadData()
       at Microsoft.MasterDataServices.WebUI.Security.Common.SecurityEditPageBase.OnLoad(EventArgs e)
       at Microsoft.MasterDataServices.WebUI.Security.Common.Models.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     
     
    Request information: 
        Request URL: http://xxx/MDS_TEST/security/common/Models.aspx?PID=0f7ee8dc-7df8-4786-afef-0d1595a5e3dc&PTID=1&m=2&MID=00000000-0000-0000-0000-000000000000 
        Request path: /MDS_TEST/security/common/Models.aspx 
        User host address: 10.1.0.1 
        User:  
        Is authenticated: True 
        Authentication Type: Negotiate 
        Thread account name:  
     
    Thread information: 
        Thread ID: 11 
        Thread account name:  
        Is impersonating: False 
        Stack trace:    at System.String.Substring(Int32 startIndex, Int32 length)
       at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)
       at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
       at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
       at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Security.ToModelPrivileges(DataTable table, ResultType resultType)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetModelPrivilege(RequestContext context, Int32 principalId, SecurityResolutionType resolutionType, PrincipalType principalType, ResultType resultType, Collection`1 results)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Security.PopulateModelPrivilege(RequestContext context, Collection`1 users, SecurityResolutionType resolutionType, ResultType resultType)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetUserSecurity(RequestContext context, SecurityPrincipalsCriteria criteria, OperationResult results, Boolean pruneDenies)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetSecurityPrincipal(RequestContext context, SecurityPrincipalsCriteria criteria, SecurityPrincipals principal)
       at Microsoft.MasterDataServices.Services.Service.SecurityPrincipalsGet(SecurityPrincipalsGetRequest request)
       at Microsoft.MasterDataServices.WebUI.ServiceAdapter.ExecuteRequest[TRequestType,TResponseType](MdmServiceOperation`2 operation, TRequestType request, String caller)
       at Microsoft.MasterDataServices.WebUI.ServiceAdapter.GetModelPrivileges(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType)
       at Microsoft.MasterDataServices.WebUI.ServiceAdapter.CacheModelPrivileges(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType)
       at Microsoft.MasterDataServices.WebUI.ServiceAdapter.GetModelPrivilegesFromCache(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType)
       at Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.GetModelPermissions(SecurityResolutionType resolutionType)
       at Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.LoadTree(Node parentNode)
       at Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.LoadData(String principalId, PrincipalType principalType, DisplayModeType displayMode, Int32 modelId)
       at Microsoft.MasterDataServices.WebUI.Security.Common.Models.LoadTree()
       at Microsoft.MasterDataServices.WebUI.Security.Common.Models.LoadData()
       at Microsoft.MasterDataServices.WebUI.Security.Common.SecurityEditPageBase.OnLoad(EventArgs e)
       at Microsoft.MasterDataServices.WebUI.Security.Common.Models.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     
     
    Custom event details: 

    Wednesday, October 5, 2016 11:58 AM

Answers

  • If this issue can be reproduce on multiple servers, you can submit a feedback on the link
    http://connect.microsoft.com/SQLServer/Feedback

    Then Microsoft will confirm if this is a bug or not.

    Tuesday, October 18, 2016 5:51 AM

All replies

  • If this issue can be reproduce on multiple servers, you can submit a feedback on the link
    http://connect.microsoft.com/SQLServer/Feedback

    Then Microsoft will confirm if this is a bug or not.

    Tuesday, October 18, 2016 5:51 AM
  • I'm getting an almost identical error on a server running MDS 2017.

    startIndex cannot be larger than length of string.
    Parameter name: startIndex 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
    Parameter name: startIndex

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

    Stack Trace: 


    [ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
    Parameter name: startIndex]
       System.String.Substring(Int32 startIndex, Int32 length) +14793920
       System.Linq.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x) +23
       System.Linq.WhereSelectArrayIterator`2.MoveNext() +78
       System.Linq.Buffer`1..ctor(IEnumerable`1 source) +152
       System.Linq.Enumerable.ToArray(IEnumerable`1 source) +91
       Microsoft.MasterDataServices.Core.BusinessLogic.Security.ToModelPrivileges(DataTable table, ResultType resultType) +1638
       Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetModelPrivilege(RequestContext context, Int32 principalId, SecurityResolutionType resolutionType, PrincipalType principalType, ResultType resultType, Collection`1 results) +213
       Microsoft.MasterDataServices.Core.BusinessLogic.Security.PopulateModelPrivilege(RequestContext context, Collection`1 users, SecurityResolutionType resolutionType, ResultType resultType) +325
       Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetUserSecurity(RequestContext context, SecurityPrincipalsCriteria criteria, OperationResult results, Boolean pruneDenies) +751
       Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetSecurityPrincipal(RequestContext context, SecurityPrincipalsCriteria criteria, SecurityPrincipals principal) +482
       Microsoft.MasterDataServices.Services.Service.SecurityPrincipalsGet(SecurityPrincipalsGetRequest request) +149
       Microsoft.MasterDataServices.WebUI.ServiceAdapter.ExecuteRequest(MdmServiceOperation`2 operation, TRequestType request, String caller) +159
       Microsoft.MasterDataServices.WebUI.ServiceAdapter.GetModelPrivileges(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType) +421
       Microsoft.MasterDataServices.WebUI.ServiceAdapter.CacheModelPrivileges(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType) +109
       Microsoft.MasterDataServices.WebUI.ServiceAdapter.GetModelPrivilegesFromCache(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType) +149
       Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.GetModelPermissions(SecurityResolutionType resolutionType) +291
       Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.LoadTree(Node parentNode) +329
       Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.LoadData() +442
       Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.LoadData(String principalId, PrincipalType principalType, DisplayModeType displayMode, Int32 modelId) +158
       Microsoft.MasterDataServices.WebUI.Security.Common.Models.LoadTree() +280
       Microsoft.MasterDataServices.WebUI.Security.Common.Models.LoadData() +16
       Microsoft.MasterDataServices.WebUI.Security.Common.SecurityEditPageBase.OnLoad(EventArgs e) +222
       Microsoft.MasterDataServices.WebUI.Security.Common.Models.OnLoad(EventArgs e) +27
       System.Web.UI.Control.LoadRecursive() +68
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785
     

    Wednesday, August 19, 2020 2:36 PM