Hi Dx Team,
In my Xaf Solution I use the SecurityComplexStrategy.
I have a DC that inherits the IPersistentResource interface.
If an non administrative user tries to save an instance of the DC it throws an access denied error on the intermediate objects of the shared part.
It seems I ran into the same issue described in Q363027 - Security.DC - Intermediate entities for many-to-many associations are not registered, and access to them is denied .
I´ve tried the solution from Q363027 without success.
As this is an extension of an solution wich is running in production, I can´t go back to the 'old' security system.
Regards,
Peter
A first chance exception of type 'DevExpress.Xpo.Exceptions.ObjectLayerSecurityException' occurred in DevExpress.Xpo.v14.1.dll
Additional information: Saving the 'DevExpress.ExpressApp.DC.GeneratedClasses.IActivityTarget_Data_BraidingMachine.IPersistentResource_Data' property is prohibited by validation rules.
DevExpress.Xpo.v14.1.dll!DevExpress.Xpo.SessionObjectLayer.ValidateObjectsOnCommit(DevExpress.Xpo.SessionObjectLayer.AsyncCommitContext context) Unknown
DevExpress.Xpo.v14.1.dll!DevExpress.Xpo.SessionObjectLayer.BeginCommitChanges(DevExpress.Xpo.SessionObjectLayer.AsyncCommitContext context) Unknown
DevExpress.Xpo.v14.1.dll!DevExpress.Xpo.SessionObjectLayer.CommitChanges(DevExpress.Xpo.Session session, System.Collections.ICollection fullListForDelete, System.Collections.ICollection completeListForSave) Unknown
DevExpress.Xpo.v14.1.dll!DevExpress.Xpo.Session.FlushChangesInsideTransaction() Unknown
DevExpress.Xpo.v14.1.dll!DevExpress.Xpo.Session.FlushChanges() Unknown
DevExpress.Data.v14.1.dll!DevExpress.Xpo.Logger.LogManager.Log(string category, DevExpress.Xpo.Logger.LogManager.LogHandlerVoid handler, DevExpress.Xpo.Logger.LogManager.MessageHandler<DevExpress.Xpo.Logger.LogMessage> createMessageHandler, DevExpress.Xpo.Logger.LogManager.ExceptionHandler exceptionHandler) Unknown
DevExpress.ExpressApp.Xpo.v14.1.dll!DevExpress.ExpressApp.Xpo.XPObjectSpace.DoCommit() Unknown
DevExpress.ExpressApp.v14.1.dll!DevExpress.ExpressApp.BaseObjectSpace.CommitChanges() Unknown
I have tested the sample project from the Q363027 ticket with version 14.1.6 and have not reproduced the issue. Please provide a sample project where the issue can be reproduced.
Thank you for your sample. I have reproduced the exception. We are currently researching it.
It appears that there is no easy workaround. I am forwarding your ticket to our developers for further research.