-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: Client settings lost on save in UI #407
Comments
Hi Ben, Do you use the master branch ? Did you pull latest change ? |
Oups sorry you give me the commit :-( |
Yes master was where I noticed the problem (b9c191), but I worked backwards a bit and it also seemed to happen on 2bb302 - I'm wondering if it's related to that code cleanup you did to remove dead code? (haven't done any investigation yet) |
If it helps, I just spun up master, initialised the clients etc. in a fresh DB, edited the client in the UI and all the settings were lost in the DB (Razor app crashed too). Almost certainly the app crash is because the API calls would have been rejected because of the lost settings on the client (i.e. the AllowedScopes) |
Probably, can you post the crach stack trace please |
@ben-jacobs can you try the fix on branch feature/ravendb ? |
As requested the client stack trace when client dies following saving the changes to a client in the UI. I think the client exception might be unrelated (not sure yet) ... I'm working on a repro, but in some cases the settings will be lost on save without the exception being thrown.
|
So here's a bit of a repro - Edit record, save and NOT lose settings.
Edit record, save and settings lost:
|
Thanks, it should be fixed now, can you confirm ? |
Tested on a freshly initialized DB, repro as above does not produce error (settings saved). Do you think it's likely that this issue will affect other entities like the APIs/Providers/etc ? |
It was, because it was removing all navigation properties on update, but it's fix now . |
# [2.3.0](2.2.0...2.3.0) (2021-04-03) ### Bug Fixes * add role store test ([caeb0a3](caeb0a3)) * cannot add localized resource ([fd5d9f5](fd5d9f5)) * cannot set client IDP restriction ([9835e82](9835e82)) * client settings lost on save in UI ([5b83178](5b83178)), closes [#407](#407) * request on datetime ([ff15d71](ff15d71)), closes [#399](#399) * set valid audience ([d1bd88a](d1bd88a)), closes [#388](#388) * storage kind filesystem typo ([8350b39](8350b39)), closes [#397](#397) * **ravendb:** update entity remove navigation props ([6a12d69](6a12d69)), closes [#407](#407) * update packages ([721a47b](721a47b)) * update packages ([4f78aae](4f78aae)) * update packages ([b7f8c8c](b7f8c8c)) * update packages ([de160ce](de160ce)) * update packages ([aff1c9f](aff1c9f)) * update packages ([3d4df84](3d4df84)) * update packages ([cef74c4](cef74c4)) * update packages ([23254cc](23254cc)) * update packages ([86127c0](86127c0)) * update packages ([f94b3dc](f94b3dc)) * update packages ([47ab913](47ab913)) ### Features * ravendb ([c050afa](c050afa)) * wsfederation provider ([0295b1f](0295b1f)), closes [#403](#403)
# [2.3.0](2.2.0...2.3.0) (2021-04-07) ### Bug Fixes * add role store test ([caeb0a3](caeb0a3)) * cannot add localized resource ([fd5d9f5](fd5d9f5)) * cannot set client IDP restriction ([9835e82](9835e82)) * client settings lost on save in UI ([5b83178](5b83178)), closes [#407](#407) * request on datetime ([ff15d71](ff15d71)), closes [#399](#399) * set valid audience ([d1bd88a](d1bd88a)), closes [#388](#388) * storage kind filesystem typo ([8350b39](8350b39)), closes [#397](#397) * **ravendb:** update entity remove navigation props ([6a12d69](6a12d69)), closes [#407](#407) * update packages ([269e31d](269e31d)) * update packages ([d9f2cb0](d9f2cb0)) * update packages ([721a47b](721a47b)) * update packages ([4f78aae](4f78aae)) * update packages ([b7f8c8c](b7f8c8c)) * update packages ([de160ce](de160ce)) * update packages ([aff1c9f](aff1c9f)) * update packages ([3d4df84](3d4df84)) * update packages ([cef74c4](cef74c4)) * update packages ([23254cc](23254cc)) * update packages ([86127c0](86127c0)) * update packages ([f94b3dc](f94b3dc)) * update packages ([47ab913](47ab913)) ### Features * ravendb ([c050afa](c050afa)) * wsfederation provider ([0295b1f](0295b1f)), closes [#403](#403)
Howdy :)
When using RavenDB as store, Clients created prior to 2bb302 lose settings on save if edited in the UI (no changes made to the affected properties).
Before:
{... "AllowedGrantTypes": [ { "Id": "clientgranttype/d90b4ce8-fd22-44d5-8603-fa65e9dd69cb", "ClientId": null, "GrantType": null, "CreatedAt": "0001-01-01T00:00:00.0000000", "ModifiedAt": null, "Client": null } ], "RedirectUris": [ { "Id": "clienturi/a142fea6-1b57-4718-83f4-36bc78b3bfe2", "ClientId": null, "Uri": null, "SanetizedCorsUri": null, "Kind": 0, "CreatedAt": "0001-01-01T00:00:00.0000000", "ModifiedAt": null, "Client": null } ], "AllowedScopes": [ { "Id": "clientscope/8b9ec9b8-54a9-4b82-b847-3110012c3e03", "ClientId": null, "Scope": null, "CreatedAt": "0001-01-01T00:00:00.0000000", "ModifiedAt": null, "Client": null } ], ... }
After:
"AllowedGrantTypes": null, "RedirectUris": null, "AllowedScopes": null,
The text was updated successfully, but these errors were encountered: