Commit Graph

34420 Commits

Author SHA1 Message Date
Elitsa Marinovska
d2a26bf4da Caching RecycleBinSmells 2021-03-25 11:49:38 +01:00
Bjarke Berg
bfc3068d6a Merge pull request #10056 from umbraco/v8/feature/new-cypress-content-tests
Add new cypress tests
2021-03-24 16:03:29 +01:00
Mole
64724ac85b Add indentation 2021-03-24 15:11:26 +01:00
Mole
70a582d1f0 Add new cypress tests 2021-03-24 15:04:34 +01:00
Bjarke Berg
b723b4d377 Merge pull request #10045 from umbraco/v8/feature/update-cypress-and-fix-tests
Update cypress and fix tests
2021-03-24 14:26:06 +01:00
Mole
f0b39ce890 Align 'Add language' test to netcore 2021-03-24 10:57:02 +01:00
Mole
14c2bb4aa2 Update cypress and fix tests 2021-03-23 13:03:01 +01:00
Bjarke Berg
3c9fb71894 Merge pull request #9979 from umbraco/v8/feature/10613-distributed-locks
Scope locking rework
2021-03-19 13:51:05 +01:00
Mole
507c821f66 Create method for generating log message
And remove forgotten comments.
2021-03-19 13:19:39 +01:00
Mole
95f42487d4 Wrap dumping dictionaries in a method. 2021-03-19 08:37:23 +01:00
Mole
8f50bdbef4 Apply suggestions from review 2021-03-18 11:24:14 +01:00
Mole
c504e3ab7e Clean 2021-03-17 13:40:14 +01:00
Mole
9bd1b06eaf Only create the dicts and hashset when a lock is requested 2021-03-17 13:09:45 +01:00
Mole
54a4a76efb Use a hashset to keep track of acquired locks
This simplifies disposing/checking for locks greatly.
2021-03-17 11:10:34 +01:00
Shannon Deminick
653bf52a1c Adds additional error checking and reporting to MainDom/SqlMainDomLock (#9954)
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-03-15 13:49:37 +01:00
Mole
d1afb6eabc Merge remote-tracking branch 'origin/v8/dev' into v8/feature/10613-distributed-locks 2021-03-15 13:19:36 +01:00
Shannon Deminick
d0f047e729 Fixes and Updates for DB Scope and Ambient Context leaks (#9953)
* Adds some scope tests (ported back from netcore) and provides a much better error message, ensure execution context is not flowed to child tasks that shouldn't leak any current ambient context

* updates comment

* Ensure SqlMainDomLock suppresses execution context too

* Since we're awaiting a task in a library method, ConfigureAwait(false)

* missing null check

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-03-15 12:56:38 +01:00
Mole
92fd9ff685 Clean 2021-03-15 11:31:23 +01:00
Mole
ef59829489 Throw error if all scopes hasn't been disposed 2021-03-15 08:54:52 +01:00
Mole
cee33e863e Fix errors shown in unit tests 2021-03-15 08:38:23 +01:00
Mole
ea816e8110 Add more unit tests, showing current issue 2021-03-12 13:30:25 +01:00
Mole
5c7e4f8dde Adjust unit tests and apply fixes to scope 2021-03-12 13:10:17 +01:00
Sebastiaan Janssen
ef60a98fe1 Merge branch 'v8/8.12' into v8/dev 2021-03-12 09:29:44 +01:00
Bjarke Berg
83719f3505 Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973)
(cherry picked from commit da5351dfcf)
2021-03-12 09:28:45 +01:00
Bjarke Berg
da5351dfcf Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973) 2021-03-12 09:23:32 +01:00
Mole
498a5e0c66 Initial rework of Lock dictionaries 2021-03-11 15:52:14 +01:00
Sebastiaan Janssen
e0604e0a53 Merge branch 'v8/8.11' into v8/8.12 and bump version to 8.12.1
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:55:13 +01:00
Sebastiaan Janssen
e5aaa20863 Merge branch 'v8/8.10' into v8/8.11 and bump version to 8.11.2
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:52:58 +01:00
Sebastiaan Janssen
3a5327a84d Merge branch 'v8/8.9' into v8/8.10 and bump version to 8.10.3
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:50:35 +01:00
Sebastiaan Janssen
e75895ce48 Merge branch 'v8/8.8' into v8/8.9 and bump version to 8.9.3
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:47:33 +01:00
Sebastiaan Janssen
0479ee41dd Merge branch 'v8/8.7' into v8/8.8 and bump version to 8.8.4
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:45:46 +01:00
Sebastiaan Janssen
1c5d95def4 Merge branch 'v8/8.6' into v8/8.7 and bump version to 8.7.3
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:42:10 +01:00
Sebastiaan Janssen
21bee00518 Bump version to 8.6.8 2021-03-11 14:38:19 +01:00
Mole
c69a89baf1 Merge branch 'v8/dev' into v8/feature/10613-distributed-locks 2021-03-11 13:43:07 +01:00
Bjarke Berg
8cd41ab36a Merge pull request #9924 from umbraco/v8/feature/10613-distributed-locks
Change scope to only acquire distributed locks once in a scope chain.
2021-03-10 15:51:04 +01:00
Sebastiaan Janssen
e43ff6cff1 Merge branch 'v8/8.11' into v8/8.12 2021-03-09 14:55:50 +01:00
Sebastiaan Janssen
5582b09614 Merge branch 'v8/8.10' into v8/8.11 2021-03-09 14:55:25 +01:00
Sebastiaan Janssen
8f59bbc3b3 Merge branch 'v8/8.9' into v8/8.10 2021-03-09 14:55:05 +01:00
Sebastiaan Janssen
c474f41b86 Merge branch 'v8/8.8' into v8/8.9 2021-03-09 14:54:31 +01:00
Sebastiaan Janssen
41283aead9 Fix wrong version reference 2021-03-09 14:54:13 +01:00
Sebastiaan Janssen
7dc95b55d3 Merge branch 'v8/8.11' into v8/8.12
# Conflicts:
#	src/Umbraco.Web/Services/IconService.cs
2021-03-09 14:51:54 +01:00
Sebastiaan Janssen
edab3507ec Merge branch 'v8/8.10' into v8/8.11 2021-03-09 14:49:08 +01:00
Sebastiaan Janssen
1d3d83466c Merge branch 'v8/8.9' into v8/8.10 2021-03-09 14:48:22 +01:00
Sebastiaan Janssen
4481e90f10 Merge branch 'v8/8.8' into v8/8.9
# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
2021-03-09 14:33:01 +01:00
Kenn Jacobsen
b7553e311a Cache the SVG icons serverside to boost performance (#9200)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
(cherry picked from commit 8e01ac30d6)

# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
#	src/Umbraco.Web/Services/IconService.cs
2021-03-09 14:22:22 +01:00
Chad
16573446db Fixes #9615 - Upgrade to Htmlsanitizer v5 (#9856) 2021-03-09 13:54:45 +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