Commit Graph

34377 Commits

Author SHA1 Message Date
Mole
5c7e4f8dde Adjust unit tests and apply fixes to scope 2021-03-12 13:10:17 +01:00
Mole
498a5e0c66 Initial rework of Lock dictionaries 2021-03-11 15:52:14 +01:00
Mole
c69a89baf1 Merge branch 'v8/dev' into v8/feature/10613-distributed-locks 2021-03-11 13:43:07 +01:00
Mole
adf504c20c Fix IncrementRequestedWriteLock 2021-03-09 09:33:34 +01:00
Mole
b554aa9484 Apply suggestions from code review
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-03-09 08:22:16 +01:00
Mole
6898fd2784 Only lock once when decrementing 2021-03-09 08:19:40 +01:00
Bjarke Berg
745014a4c3 User manager related updates (#9935)
* Only allow not-admins to assign groups they have themselves

* Only admins is allowed to change password of other admins

* Fixed issue with deep clone of UserGroup. The Allowed sections was not cloned. This resulted in the allowed sections of the object stored in cache was updated, everytime we changed the allowed sections on an object cloned from the cache. Even if we did not save it.

* Only Admins are allowed to add sections to a user group, that they don't have access to themselves

* Align backend code with UI. User managers that is are not admin, can only assign the same groups new users, that they have themselves.

* Make existingGroupAliases and empty array when creating a new user

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-03-08 13:26:52 +01:00
Sebastiaan Janssen
4a8a73f03d Merge branch 'v8/8.12' into v8/dev 2021-03-08 12:28:55 +01:00
Sebastiaan Janssen
49435708a5 Merge branch 'v8/8.11' into v8/8.12 2021-03-08 12:28:21 +01:00
Sebastiaan Janssen
8b04c32dff Merge branch 'v8/8.10' into v8/8.11 2021-03-08 12:27:42 +01:00
Lars-Erik Aabech
fc447bb101 Should allow grid editors to use hash based settings (#9837)
* Should allow grid editors to use hash based settings

* Swap to using vm in grid config controller, as well as showing button when there's map settings

* Included keys for styles in empty state check for grid settings

* converted the code into more AngularJS performant code

* Remove rogue change to grid.editors.config

* use watchCollection instead

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
(cherry picked from commit 008827f785)
2021-03-08 12:27:06 +01:00
Sebastiaan Janssen
b59026ae5c Merge branch 'v8/8.12' into v8/dev 2021-03-08 10:08:36 +01:00
Sebastiaan Janssen
c36a2bced6 Merge branch 'v8/8.11' into v8/8.12 2021-03-08 10:08:01 +01:00
Sebastiaan Janssen
0386a311d7 Merge branch 'v8/8.10' into v8/8.11 2021-03-08 10:07:40 +01:00
Sebastiaan Janssen
5825aa5dee Merge branch 'v8/8.9' into v8/8.10 2021-03-08 10:07:08 +01:00
Sebastiaan Janssen
ac41c5451e Merge branch 'v8/8.8' into v8/8.9 2021-03-08 10:06:37 +01:00
Niels Lyngsø
cef1a73a2e no need to prevent or stop propagation on this. (#9933)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
(cherry picked from commit af65810048)
2021-03-08 10:05:46 +01:00
Niels Lyngsø
af65810048 no need to prevent or stop propagation on this. (#9933)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-03-08 09:44:33 +01:00
Sebastiaan Janssen
475f7e6c3b Bump version to 8.12.0 2021-03-04 09:40:23 +01:00
Sebastiaan Janssen
e75178e8a6 Merge branch 'v8/8.12' into v8/dev 2021-03-03 17:56:32 +01:00
Sebastiaan Janssen
c82f379dd9 Merge branch 'v8/8.11' into v8/8.12 2021-03-03 16:35:53 +01:00
Sebastiaan Janssen
8e759d2dfe Merge branch 'v8/8.10' into v8/8.11 2021-03-03 16:35:28 +01:00
Sebastiaan Janssen
c10ed3693d Merge branch 'v8/8.9' into v8/8.10 2021-03-03 16:34:58 +01:00
Sebastiaan Janssen
62ac5434ff Merge branch 'v8/8.8' into v8/8.9 2021-03-03 16:34:02 +01:00
Sebastiaan Janssen
5d8eed3eac Merge branch 'v8/8.7' into v8/8.8 2021-03-03 16:33:43 +01:00
Sebastiaan Janssen
cf3bef8017 Merge branch 'v8/8.6' into v8/8.7 2021-03-03 16:33:13 +01:00
Bjarke Berg
0b5bace2f7 Bugfix: Members not locked out after failed login attempts (#9921)
* https://github.com/umbraco/Umbraco-CMS/issues/9861
Added test that shows the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fixed test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
More fix of test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fix issue by raise event and thereby update caches.

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
(cherry picked from commit 1bac97e0b0)
2021-03-03 16:32:28 +01:00
Bjarke Berg
1bac97e0b0 Bugfix: Members not locked out after failed login attempts (#9921)
* https://github.com/umbraco/Umbraco-CMS/issues/9861
Added test that shows the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fixed test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
More fix of test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fix issue by raise event and thereby update caches.

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-03-03 15:00:45 +01:00
Mole
f072387096 Wrap access to dictionaries in locks and make dictionaries internal readonly 2021-03-03 08:55:14 +01:00
Mole
c01fab97b8 Count requested locks in child scopes with the existing dictionaries.
This way we don't have to have a two dictionaries AND two lists.
2021-03-02 13:55:30 +01:00
Mole
8c99a8e8a7 Combine the two lock inner methods into one
And add a couple of more unit tests
2021-03-02 13:07:04 +01:00
Mole
e75edbcaf0 Add more tests. 2021-03-02 10:53:55 +01:00
Mole
65f2c5ee70 Bit of cleaning in Scope 2021-03-02 08:48:09 +01:00
Mole
37f6e007ba Merge remote-tracking branch 'origin/v8/dev' into v8/feature/10613-distributed-locks 2021-03-02 08:13:42 +01:00
Mole
400b436d98 Fir stab/POC
This still need ALOT of work, but is just an attempt to get my head around things.
2021-03-01 16:06:16 +01:00
Sebastiaan Janssen
dafca1486a Merge branch 'v8/8.12' into v8/dev 2021-03-01 16:05:25 +01:00
Sebastiaan Janssen
03b6f1ba7f Merge branch 'v8/8.11' into v8/8.12 2021-03-01 16:04:49 +01:00
Sebastiaan Janssen
22dee4e8d7 Merge branch 'v8/8.10' into v8/8.11 2021-03-01 16:04:13 +01:00
Sebastiaan Janssen
aaa8b0b4b2 Merge branch 'v8/8.9' into v8/8.10 2021-03-01 16:03:42 +01:00
Sebastiaan Janssen
7bc220b4b5 Merge branch 'v8/8.8' into v8/8.9 2021-03-01 16:03:18 +01:00
Sebastiaan Janssen
d5ee6c828d Merge branch 'v8/8.7' into v8/8.8 2021-03-01 16:02:37 +01:00
Sebastiaan Janssen
d4da9bdcb5 Merge branch 'v8/8.6' into v8/8.7 2021-03-01 16:02:11 +01:00
Bjarke Berg
8004c8dfd3 Merge pull request #9441 from umbraco/v8/bugfix/explicit-scope-examine
Ensure there's explicit scopes used for all service access in the Examine indexing logic

(cherry picked from commit 3e7f912fcd)
2021-03-01 15:55:36 +01:00
Sebastiaan Janssen
e848e396af Don't auto focus on the third menu item 2021-03-01 13:20:58 +01:00
Shannon
7bb18f1cc3 Fixes the Sql server SET LOCK_TIMEOUT call which was missing a space. 2021-03-01 13:16:32 +01:00
Bjarke Berg
7625857a14 Merge pull request #9870 from umbraco/v8/bugfix/ensure-custom-claims
Keep custom claims that are flowed during security stamp validation
2021-03-01 11:57:53 +01:00
Bjarke Berg
3e7f912fcd Merge pull request #9441 from umbraco/v8/bugfix/explicit-scope-examine
Ensure there's explicit scopes used for all service access in the Examine indexing logic
2021-02-24 08:17:49 +01:00
Shannon
2bb8b02233 adds notes 2021-02-23 11:28:42 +11:00
Shannon
27d94f1ca6 removes testing timeout so it stays as it was 2021-02-23 11:25:27 +11:00
Shannon
e3dc017d7e Keep custom claims that are flowed from autolinking
When auto linking with callbacks such as OnExternalLogin, custom claims can be added to the user which are flowed to the auth ticket/identity.
However, when the security stamp validator executes, the identity is re-created manually without any knowledge of those custom claims so
they are lost. This ensures that those custom claims flow through to the re-generated identity during the security stamp validation phase.
2021-02-23 10:41:00 +11:00