Bug Report T301024
Visible to All Users

Web SharedModelDifferences are overwritten by User differences during log off

created 9 years ago

Hello,

When storing Model differences in the database and the logoff action is used the shared model is over written with the current users Model differences.

Please see the attached sample project to test.

Steps to reproduce are as follows.

  1. Run Sample project.

  2. Logon

  3. Check [ModelDifferenceAspect] Table to see Shared model Optimistic Lock is at 1 and Xml contains Shared Application model (In sample project the version number is set to end with InSharedModel)

  4. Change column order on the contact list view - this is to trigger saving the model.

  5. Click Logoff - During logoff the ModelDifferenceDbStore gets the current UserId from SecuritySystem.CurrentUserId this is null causing the FindModelDifference Method to incorrectly return the shared model difference instead of the user model difference.

  6. Recheck the [ModelDifferenceAspect] Table xml will now contain the users model difference and optimistic lock increased to 3.

Comments (2)
DevExpress Support Team 9 years ago

    Hello Matt,
    Thank you for the sample project and steps. I have managed to reproduce this issue on our side. We will research it and let you know our results.

      Thanks Alexey. Any ETA on a fix?

      Answers approved by DevExpress Support

      created 9 years ago

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.