Open Closed

can not update client with secrets #3420


User avatar
0
brike.kuo@authme.com created
  • ABP Framework version: v5.3.0

  • UI type: Angular

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): microservice

  • Exception message and stack trace: "The instance of entity type 'ClientSecret' cannot be tracked because another instance with the same key value for {'ClientId', 'Type', 'Value'} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values."

  • Steps to reproduce the issue:

    1. add secret to client and save it

    2. edit client => update something(ex. description) except secret => save

    3. get exception

I think it's because client secrets map to "****" from 5.3.0, and UpdateClientSecrets find exist secret by value but secrets from dto will be "*****".


1 Answer(s)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08