Compare commits

...
Author SHA1 Message Date
Bjarke Berg 1587d7f4b7 Changed test to use to use 0.5.0.0 version
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-23 19:46:53 +02:00
Bjarke Berg cfc0722a5f Merge branch 'netcore/alpha002' into netcore/netcore 2020-09-23 18:25:22 +02:00
Bjarke Berg 0ba059903f Changed version in assembly to 0.5.0
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-23 18:24:31 +02:00
Bjarke Berg 88dfc0708b Added launchSettings to template
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-23 17:23:01 +02:00
Bjarke Berg 26a04ea2fe Added launchSettings to template
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-23 17:22:06 +02:00
Bjarke Berg 18dcf4975b update nuspec to use ImageSharp.Web 1.0.0
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-23 14:50:49 +02:00
Bjarke Berg ec7db00bd2 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/netcore 2020-09-23 14:29:42 +02:00
Bjarke Berg acc7065fa1 Fixed issue with models builder
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-23 14:22:53 +02:00
Bjarke Berg 435cf2623a Updated ImageSharp.Web to 1.0.0
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-23 14:00:08 +02:00
Bjarke Berg 0d731e7a40 Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
Signed-off-by: Bjarke Berg <mail@bergmania.dk>

# Conflicts:
#	build/build-bootstrap.ps1
#	src/Umbraco.Infrastructure/Compose/NotificationsComponent.cs
#	src/Umbraco.Infrastructure/Compose/PublicAccessComponent.cs
#	src/Umbraco.Infrastructure/Search/ExamineComponent.cs
#	src/Umbraco.ModelsBuilder.Embedded/Compose/ModelsBuilderComponent.cs
#	src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
#	src/Umbraco.Web/Compose/BackOfficeUserAuditEventsComponent.cs
#	src/Umbraco.Web/Logging/WebProfilerComponent.cs
2020-09-23 13:28:36 +02:00
MoleandGitHub ca5868d52c Merge pull request #8771 from umbraco/netcore/bugfix/reset_password
Fixed reset password for functionality
2020-09-23 13:09:47 +02:00
Mole 2bd4f683f2 Remove empty line in BackOfficeController 2020-09-23 13:06:18 +02:00
Bjarke Berg e3c8bd8ced Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Core/Cache/MemberCacheRefresher.cs
#	src/Umbraco.Infrastructure/Compose/NotificationsComponent.cs
#	src/Umbraco.Infrastructure/Search/ExamineComponent.cs
#	src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
#	src/Umbraco.Web/Security/MembershipHelper.cs
#	src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs
2020-09-23 12:54:13 +02:00
Bjarke Berg 56820b164f Fixed issue in AngularValueResetPasswordCodeInfoScript
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-23 11:30:16 +02:00
Sebastiaan Janssen 95a46580d6 Merge branch 'v8/8.7' into v8/dev 2020-09-23 11:10:56 +02:00
Sebastiaan Janssen d6275f34f7 Merge branch 'v8/8.6' into v8/dev
# Conflicts:
#	src/Umbraco.Web/Security/MembershipHelper.cs
2020-09-23 11:09:40 +02:00
Bjarke Berg 5045a580cc Merge remote-tracking branch 'origin/netcore/netcore' into netcore/bugfix/reset_password 2020-09-23 10:55:13 +02:00
MoleandGitHub 3d52949938 Merge pull request #8944 from umbraco/netcore/bugfix/8856-user_culture_not_used_everywhere
Netcore: Bugfix for user culture not used everywhere
2020-09-23 09:58:30 +02:00
MoleandGitHub 75608919cd Merge pull request #8925 from umbraco/netcore/feature/use-serilog-to-log-all-messages
Netcore: Use serilog to log all messages and use appsettings as config
2020-09-23 09:37:43 +02:00
Bjarke BergandGitHub d4391bd91e Merge pull request #8948 from AndyButland/feature/8651-move-image-file-types-from-config
Netcore: configuration of supported image file types
2020-09-23 09:05:51 +02:00
Bjarke Berg ae657b1078 https://github.com/umbraco/Umbraco-CMS/issues/8856 - also consider Tree controllers as backoffice
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-23 08:55:25 +02:00
Bjarke Berg e9597c0f3f https://github.com/umbraco/Umbraco-CMS/pull/8948 - Injecting UploadAutoFillProperties instead of newing it up
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-22 21:24:12 +02:00
Andy ButlandandBjarke Berg 87a4128705 https://github.com/umbraco/Umbraco-CMS/pull/8948 - Renamed extension from IsImageFile to IsSupportedImageFormat, to align more with what is actually tested
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-22 21:12:04 +02:00
Bjarke Berg 2b8d5b7edd Merge remote-tracking branch 'origin/netcore/netcore' into feature/8651-move-image-file-types-from-config
# Conflicts:
#	src/Umbraco.Core/Configuration/Models/ContentImagingSettings.cs
#	src/Umbraco.Infrastructure/Media/UploadAutoFillProperties.cs
2020-09-22 21:10:19 +02:00
Bjarke BergandGitHub 9a6b75d5a7 Merge pull request #8938 from AndyButland/feature/8651-config-options-validation
NetCore: Added validation for configuration
2020-09-22 21:05:51 +02:00
Bjarke Berg 25c7418d66 Merge remote-tracking branch 'origin/netcore/netcore' into feature/8651-config-options-validation
# Conflicts:
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/PropertyEditorValueEditorTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/CmsHelperCasingTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/DefaultShortStringHelperTestsWithoutSetup.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Controllers/SurfaceControllerTests.cs
#	src/Umbraco.Tests/Models/MediaXmlTest.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheTests.cs
#	src/Umbraco.Tests/TestHelpers/TestWithDatabaseBase.cs
#	src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs
#	src/Umbraco.Web.UI.NetCore/appsettings.json
2020-09-22 20:25:28 +02:00
Bjarke Berg 4880b16512 Fix tests
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-22 19:59:01 +02:00
Bjarke Berg 60424dd54f Merge remote-tracking branch 'origin/netcore/netcore' into netcore/bugfix/reset_password
# Conflicts:
#	src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
2020-09-22 19:35:49 +02:00
0ea251945b Netcore: migrate more unittests (#8939)
* Migrated unit tests

* Migrated CoreThings tests

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Migrated Property Editor unit tests

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Migrated CoreXml tests

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Moved more tests

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* revert some IsSZArray test code

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Renamed bad named test

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* removed unnecessary file mentions in csproj file

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2020-09-22 15:59:37 +02:00
Andy Butland f42e8856db Removed supported image file types from configuration and set up as a property on IImageUrlGenerator, so different providers can indicate support for different sets of images. 2020-09-22 15:06:22 +02:00
0c908a7bbb Introduced interface on BackOfficeUserManager (#8913)
* Introduced IBackOfficeUserManager

* Fixed test

* Moved class into own file

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2020-09-22 14:44:41 +02:00
Sebastiaan Janssen c00017220a NuGet.org had TLS 1.0 and 1.1 disabled - https://devblogs.microsoft.com/nuget/deprecating-tls-1-0-and-1-1-on-nuget-org/.
Therefore we need this line specifying Tls12

(cherry picked from commit c91281c4b8)
2020-09-22 14:38:24 +02:00
Bjarke BergandGitHub e6fba11279 Merge pull request #8932 from umbraco/netcore/feature/AB8239-nuget-updates
NetCore: Update NuGet packages to latest versions
2020-09-22 14:35:34 +02:00
Bjarke Berg 6fdf7082a0 Fixed issue models builder config and changed default mode to nothing
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-22 14:16:00 +02:00
Bjarke Berg 3533c6a959 Fixed issue with template using alpha001
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-22 14:14:27 +02:00
Bjarke Berg 35c39623a6 fix merge issue
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-22 13:45:20 +02:00
Bjarke Berg 69668abc18 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB8239-nuget-updates 2020-09-22 13:32:21 +02:00
Bjarke Berg c2f343b17d Merge remote-tracking branch 'origin/netcore/netcore' into netcore/netcore 2020-09-22 13:28:50 +02:00
Bjarke Berg a28168667b Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
Signed-off-by: Bjarke Berg <mail@bergmania.dk>

# Conflicts:
#	src/Umbraco.Core/Editors/BackOfficePreviewModel.cs
#	src/Umbraco.Core/Models/IconModel.cs
#	src/Umbraco.Web.BackOffice/Controllers/IconController.cs
#	src/Umbraco.Web.BackOffice/Controllers/PreviewController.cs
#	src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml
#	src/Umbraco.Web.UI/config/umbracoSettings.config
#	src/Umbraco.Web/Editors/BackOfficeController.cs
#	src/Umbraco.Web/Editors/BackOfficeModel.cs
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
2020-09-22 13:28:03 +02:00
a80de91031 Netcore: Handle tree authentication (#8866)
* Added helper methods to invoke the authorization filters of the other controller action

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Implemented Tree Auth

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* cleanup

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Throw forbidden if user has no access instead of InternalServerError

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* EnsureBackofficeSecurity for background jobs

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2020-09-22 13:19:54 +02:00
Claus 6122bffa24 Merge remote-tracking branch 'origin/v8/bugfix/8433-member-login-sql-locks' into v8/8.6 2020-09-22 13:14:03 +02:00
Bjarke Berg 8e9889d269 Post merge
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-22 12:44:36 +02:00
Bjarke Berg bd534d340e Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
Signed-off-by: Bjarke Berg <mail@bergmania.dk>

# Conflicts:
#	src/Umbraco.Infrastructure/Services/Implement/IIconService.cs
#	src/Umbraco.Infrastructure/Services/Implement/IconService.cs
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
#	src/Umbraco.Web/Editors/BackOfficeController.cs
#	src/Umbraco.Web/Editors/BackOfficeModel.cs
#	src/Umbraco.Web/Editors/BackOfficePreviewModel.cs
#	src/Umbraco.Web/Editors/IconController.cs
#	src/Umbraco.Web/Editors/PreviewController.cs
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
2020-09-22 12:38:36 +02:00
Claus 8fddb52f9a Merge remote-tracking branch 'origin/v8/bugfix/examine-reindex' into v8/8.6 2020-09-22 11:42:44 +02:00
Bjarke Berg 02e3cc7c30 https://github.com/umbraco/Umbraco-CMS/issues/8856 - Aligned namespaces of controllers and also determine BackOfficeApiArea as backoffice
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-22 11:07:01 +02:00
Claus b12fad75da Merge remote-tracking branch 'origin/v8/8.8' into v8/dev 2020-09-22 10:38:25 +02:00
ClausandGitHub ab4d830626 Merge pull request #8930 from umbraco/v8/bug/8919-cache-icons-used-in-login-screen
Inject icons used in login screen to the runtime icon cache
2020-09-22 10:33:56 +02:00
Bjarke Berg 1badb69481 #8919 - Clean up obsolete ctor 2020-09-22 10:14:34 +02:00
Bjarke Berg 164fa24ef3 #8919 - Fix issue with wrong casing of variable name 2020-09-22 10:04:55 +02:00
96facc4d35 Netcore: Introduce BackofficeSecurityAccessor (#8871)
* Introduced IWebSecurityAccessor

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Fixed tests

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Renamed WebSecurity to BackofficeSecurity and all related names

* Fixes typos

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2020-09-22 10:01:00 +02:00
Bjarke Berg 5df3e051d3 Merge remote-tracking branch 'origin/v8/bug/8919-cache-icons-used-in-login-screen' into v8/bug/8919-cache-icons-used-in-login-screen
# Conflicts:
#	src/Umbraco.Web/Editors/BackOfficeController.cs
#	src/Umbraco.Web/Editors/BackOfficeModel.cs
#	src/Umbraco.Web/Editors/IconController.cs
#	src/Umbraco.Web/Services/IIconService.cs
#	src/Umbraco.Web/Services/IconService.cs
2020-09-22 09:21:45 +02:00
Bjarke Berg ccc0e82579 #8919 - Avoid having fat controller and do not new up a controller in a model 2020-09-22 08:58:16 +02:00
Claus 6e56b16342 adding IconService 2020-09-22 08:57:48 +02:00
Claus b327399cd2 adding icon svg data from IconController. 2020-09-22 08:11:58 +02:00
Bjarke Berg 525ca95acf uncomment SMTP info by default
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-22 08:01:04 +02:00
Andy Butland fe158ec7d9 Removed custom validation of configuration enum values, reverting to framework based validation when binding direct to the enum values. 2020-09-21 21:20:46 +02:00
Andy Butland 1bd22d72c2 Removed configuration model builders. 2020-09-21 21:06:24 +02:00
Andy Butland 574e4d6446 Reverted change to enum parse from string configuration value, as we can't avoid the property being evaluated before the validation has occurred. 2020-09-21 16:23:58 +02:00
Andy Butland 1a59d6a978 Created constants for all configuration sections and used this and nameof expressions for building up configuration validation error messages. 2020-09-21 16:23:12 +02:00
Warren BuckleyandGitHub e7f98a5690 Merge pull request #8815 from umbraco/v8/bugfix/events-unsubscribe
Ensure event handlers are unsubscribed  in Core Components
2020-09-21 11:27:47 +01:00
Andy Butland cce091de74 Throw exception on unexpected failure of creation on enum value from configuration, rather than falling back to a default.
This shouldn't happen in practice due to the configuration validation (e.g. by ContentSettingsValidator), so any failure of parsing here should be considered an exception.
2020-09-21 12:04:30 +02:00
Andy Butland e032af5b06 Fixed failing tests. 2020-09-21 10:04:34 +02:00
Andy Butland 903e964925 Set default value for SmtpSettings DeliveryMethod configuration. 2020-09-21 08:54:03 +02:00
Andy Butland 309d39a34f Set default models builder config to nothing now have fixed issue that prevented it loading (as previous value of pure live currently erroring). 2020-09-21 08:54:03 +02:00
Andy Butland d55b54ce49 Added unit tests for introduced unit test configuration setting builders. 2020-09-21 08:54:03 +02:00
Andy Butland d5d6082d07 Moved configuration settings builders into own folder. 2020-09-21 08:54:03 +02:00
Andy Butland 8aadbe02d6 Added unit tests for configuration validators. 2020-09-21 08:54:03 +02:00
Andy Butland bae4f2fb53 Changed NuCache settings to use a nullable integer. 2020-09-21 08:54:03 +02:00
Andy Butland 41c7f6989a Made config files alphabetical and aligned spacing. 2020-09-21 08:54:03 +02:00
Andy Butland b9e67dde55 Added configuration validation for models builder and hosting settings.
Renamed models builder config class suffix to match others.
2020-09-18 12:53:10 +02:00
Andy Butland eb62789b68 Added configuration validation for content imaging settings. 2020-09-18 12:02:12 +02:00
Andy Butland 1f8d7f18be Added configuration validation for content and request handler settings. 2020-09-18 11:30:26 +02:00
berg f6f0687bf8 fix in syntax after merge
Signed-off-by: berg <mail@bergmania.dk>
2020-09-18 09:11:16 +02:00
berg a2a5e25713 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/use-serilog-to-log-all-messages
Signed-off-by: berg <mail@bergmania.dk>
2020-09-18 08:34:20 +02:00
berg f11391961f Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/use-serilog-to-log-all-messages
# Conflicts:
#	src/Umbraco.Tests.Integration/TestServerTest/UmbracoBuilderExtensions.cs
#	src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs
#	src/Umbraco.Web/UmbracoApplicationBase.cs
2020-09-18 08:31:09 +02:00
Bjarke Berg d7ab7d3d2e Removed test code
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-18 08:30:48 +02:00
Bjarke Berg 81f670f10a Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB8239-nuget-updates 2020-09-18 08:24:29 +02:00
Bjarke BergandGitHub 9cfae2c935 Merge pull request #8891 from umbraco/netcore/feature/8651-config-options-pattern-refactor
Netcore: Replace configurations with IOptions pattern
2020-09-18 08:20:03 +02:00
berg 738bdfbbdd Moved umbraco file logging into minimal config
Signed-off-by: berg <mail@bergmania.dk>
2020-09-18 07:46:36 +02:00
Bjarke Berg 380bec0e2f Fixed wrong config file path
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-18 07:05:40 +02:00
Elitsa Marinovska 66f35f428d Updates nuspec files with new nuget packages version 2020-09-17 18:47:24 +02:00
Elitsa Marinovska 0f9595a5b1 Updates nuget packages versions to latest 2020-09-17 17:58:11 +02:00
Niels Lyngsø d3db24e705 Merge remote-tracking branch 'origin/v8/8.8' into v8/bug/8919-cache-icons-used-in-login-screen 2020-09-17 15:00:02 +02:00
Niels Lyngsø e2957bb715 inject icons to iconHelper to avoid making requests to the icon controller 2020-09-17 14:59:49 +02:00
Niels Lyngsø 0506c8c555 defineIcon method 2020-09-17 14:59:12 +02:00
Sebastiaan Janssen 6b0539fefc Set version to RC 2020-09-17 12:19:07 +02:00
Lars-Erik AabechandSebastiaan Janssen 6d15a2fce3 Eliminates error/no-preview when grid media picker have no crop set (#8620)
(cherry picked from commit deb03e4d82)
2020-09-17 11:35:17 +02:00
Lars-Erik AabechandGitHub deb03e4d82 Eliminates error/no-preview when grid media picker have no crop set (#8620) 2020-09-17 11:32:52 +02:00
Bjarke Berg a7c3b2dab8 Clear default log providers 2020-09-17 09:59:13 +02:00
Bjarke Berg 8b7a2f490d remove connectionstring from config 2020-09-17 09:38:50 +02:00
Niels SwimbergheandSebastiaan Janssen 6d2135edd5 Change wrong URL in KeepAlive XML Comments
The XML comments for KeepAlive mention the URL for the KeepAlive.Ping action but incorrectly omits 'umbraco' from the path.
The change adds the 'umbraco' section to the path.

(cherry picked from commit 312dc1d9a7)
2020-09-17 09:19:09 +02:00
Warren BuckleyandSebastiaan Janssen 5a37854dd5 Merge pull request #7599 from umbraco/v8/feature/ui-media-create-button-style
UI: corrected button style to match new style
(cherry picked from commit 2e055ca146)
2020-09-17 09:18:55 +02:00
Bjarke Berg 7d3bc9be1c Moved serilog config to appsettings and configured it to also catch MS logging messages.
Added Console log for Development
2020-09-17 09:01:10 +02:00
Niels SwimbergheandNathan Woulfe 312dc1d9a7 Change wrong URL in KeepAlive XML Comments
The XML comments for KeepAlive mention the URL for the KeepAlive.Ping action but incorrectly omits 'umbraco' from the path.
The change adds the 'umbraco' section to the path.
2020-09-17 12:25:09 +10:00
Bjarke Berg 1334fd0c5e Typo 2020-09-16 11:47:37 +02:00
Bjarke Berg af59a7a0b9 Do not login after install. This currently leads to issues due to the restart. 2020-09-15 13:47:54 +02:00
Bjarke Berg b7a48686f0 Updates based on review feedback 2020-09-15 13:18:01 +02:00
Bjarke Berg 9c91dd5994 Fixed test 2020-09-15 12:23:41 +02:00
Bjarke Berg 5836ca3da4 Bugfix - Imagesharp cache folder is not relative to root but to the wwwroot. "~" is not replaced with root 2020-09-15 10:27:23 +02:00
Bjarke Berg 9d91e629c6 Bugfix in CheckIfUserTicketDataIsStaleAttribute 2020-09-15 10:13:05 +02:00
Bjarke Berg 4918841154 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/8651-config-options-pattern-refactor 2020-09-15 09:36:29 +02:00
Bjarke Berg 7d8c9ee4c9 Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore 2020-09-15 09:35:57 +02:00
Bjarke Berg c9243d9d61 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev 2020-09-15 09:35:05 +02:00
Bjarke Berg b4353585c3 Simplifyed the ConnectionStrings config 2020-09-15 09:11:36 +02:00
Bjarke Berg 4a4b57ef87 bugfixes related to no umbraco connection string
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-14 21:53:56 +02:00
Bjarke Berg ce2da18304 Fixed based on review comments
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-14 21:27:31 +02:00
Bjarke Berg dc8933b6b9 Removed test code 2020-09-14 15:05:32 +02:00
Bjarke Berg 8141e7c6c8 Bugfix 2020-09-14 14:35:57 +02:00
Bjarke Berg 1599e74193 Removed Umbraco.Configuration project 2020-09-14 14:15:09 +02:00
Bjarke Berg e74570c0ac More clean up of old configs 2020-09-14 14:12:38 +02:00
Warren BuckleyandGitHub 2e055ca146 Merge pull request #7599 from umbraco/v8/feature/ui-media-create-button-style
UI: corrected button style to match new style
2020-09-14 12:02:26 +01:00
Bjarke Berg 4173a2fb20 More clean up of old configs 2020-09-14 12:58:41 +02:00
Bjarke Berg acb46119be More clean up of old configs 2020-09-14 12:57:47 +02:00
Niels Lyngsø 4a8703d5a3 no message 2020-09-14 11:56:50 +02:00
Bjarke Berg 1b4b17cbae More clean up of old configs 2020-09-14 11:56:22 +02:00
Bjarke Berg e6ad34da1d More clean up of old configs 2020-09-14 09:13:53 +02:00
Bjarke Berg 5b90a469e9 More clean up of old configs 2020-09-14 09:01:57 +02:00
Bjarne FyrstenborgandGitHub 600ae926d4 Remove local function to create guid and use String.CreateGuid() extension function instead (#8886) 2020-09-13 22:21:30 +02:00
Bjarke Berg 2eee6d7386 Removed some of the old legacy configs
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-11 21:13:18 +02:00
Bjarke Berg dc643ab6a6 Merge remote-tracking branch 'origin/netcore/netcore' into feature/8651-config-options-patten
# Conflicts:
#	src/Umbraco.Core/Configuration/ModelsBuilderConfigExtensions.cs
#	src/Umbraco.ModelsBuilder.Embedded/BackOffice/ContentTypeModelValidatorBase.cs
#	src/Umbraco.ModelsBuilder.Embedded/BackOffice/ModelsBuilderDashboardController.cs
#	src/Umbraco.ModelsBuilder.Embedded/Building/ModelsGenerator.cs
#	src/Umbraco.ModelsBuilder.Embedded/Compose/ModelsBuilderComposer.cs
#	src/Umbraco.ModelsBuilder.Embedded/ModelsGenerationError.cs
#	src/Umbraco.ModelsBuilder.Embedded/OutOfDateModelsStatus.cs
#	src/Umbraco.ModelsBuilder.Embedded/PureLiveModelFactory.cs
#	src/Umbraco.Web.BackOffice/Controllers/RedirectUrlManagementController.cs
2020-09-10 14:01:38 +02:00
Bjarke Berg a4e5029912 Refactored to remove Configs 2020-09-10 13:51:59 +02:00
Bjarke Berg 7f89299150 Fixed tests 2020-09-10 09:04:17 +02:00
Bjarke Berg fc054e6546 Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/SolutionInfo.cs
#	src/Umbraco.Infrastructure/Logging/Serilog/LoggerConfigExtensions.cs
#	src/Umbraco.Infrastructure/PropertyEditors/NestedContentPropertyEditor.cs
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Tour/backofficeTour.ts
#	src/Umbraco.Tests.AcceptanceTest/package.json
#	src/Umbraco.Tests/TestHelpers/TestObjects.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentTypeController.cs
#	src/Umbraco.Web.BackOffice/Controllers/ImageUrlGeneratorController.cs
#	src/Umbraco.Web.BackOffice/Controllers/ImagesController.cs
#	src/Umbraco.Web.BackOffice/Controllers/MediaController.cs
#	src/Umbraco.Web.BackOffice/Controllers/MemberTypeController.cs
#	src/Umbraco.Web.BackOffice/Controllers/RelationTypeController.cs
#	src/Umbraco.Web.BackOffice/Controllers/TemplateController.cs
#	src/Umbraco.Web.UI.Client/src/common/services/formhelper.service.js
#	src/Umbraco.Web.UI.Client/src/installer/steps/database.html
#	src/Umbraco.Web.UI.Client/src/less/components/tree/umb-tree.less
#	src/Umbraco.Web.UI.Client/src/less/components/umb-property-actions.less
#	src/Umbraco.Web.UI.Client/src/less/forms.less
#	src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/querybuilder/querybuilder.html
#	src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/treepicker/treepicker.html
#	src/Umbraco.Web.UI.Client/src/views/components/application/umb-navigation.html
#	src/Umbraco.Web.UI.Client/src/views/components/property/umb-property-actions.html
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.controller.js
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.html
#	src/Umbraco.Web.UI.Client/src/views/dictionary/edit.html
#	src/Umbraco.Web.UI.Client/src/views/dictionary/list.html
#	src/Umbraco.Web.UI.Client/src/views/logViewer/search.html
#	src/Umbraco.Web.UI.Client/src/views/media/media.edit.controller.js
#	src/Umbraco.Web.UI.Client/src/views/mediaTypes/edit.controller.js
#	src/Umbraco.Web.UI.Client/src/views/member/member.edit.controller.js
#	src/Umbraco.Web.UI.Client/src/views/memberTypes/edit.controller.js
#	src/Umbraco.Web.UI.Client/src/views/packages/views/repo.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/layoutconfig.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.listviewlayout.controller.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/userpicker/userpicker.controller.js
#	src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/cs.xml
#	src/Umbraco.Web.UI/Views/Partials/Grid/Editors/Media.cshtml
#	src/Umbraco.Web.UI/config/umbracoSettings.config
#	src/Umbraco.Web/Editors/BackOfficeServerVariables.cs
#	src/Umbraco.Web/Editors/DictionaryController.cs
#	src/Umbraco.Web/Editors/LogController.cs
#	src/Umbraco.Web/Editors/MediaTypeController.cs
#	src/Umbraco.Web/Editors/MemberGroupController.cs
2020-09-09 19:13:37 +02:00
Bjarke Berg d14e2a99bc Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	.gitignore
#	build/NuSpecs/tools/Web.config.install.xdt
#	src/Umbraco.Core/ContentExtensions.cs
#	src/Umbraco.Infrastructure/Intall/InstallHelper.cs
#	src/Umbraco.Infrastructure/Models/Blocks/BlockEditorModel.cs
#	src/Umbraco.Infrastructure/Models/Blocks/BlockItemData.cs
#	src/Umbraco.Infrastructure/Models/Blocks/BlockListLayoutReference.cs
#	src/Umbraco.Infrastructure/Models/Mapping/CommonMapper.cs
#	src/Umbraco.Infrastructure/PropertyEditors/BlockEditorPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/BlockListConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/NestedContentPropertyEditor.cs
#	src/Umbraco.Tests/PropertyEditors/BlockListPropertyValueConverterTests.cs
#	src/Umbraco.Web.UI.Client/package-lock.json
#	src/Umbraco.Web/Compose/NestedContentPropertyComponent.cs
2020-09-09 14:16:46 +02:00
Bjarke BergandGitHub bf70c03c4a Merge pull request #8851 from umbraco/netcore/feature/ModelsBuilderEmbedded-migration-roslyn-compiler
Netcore/feature/models builder embedded migration roslyn compiler
2020-09-09 14:10:09 +02:00
Bjarke BergandGitHub 96f8dd2103 Merge pull request #8622 from umbraco/v8/feature/AB7482-acceptance-tests-for-content
Acceptance tests for Content
2020-09-09 13:28:48 +02:00
Bjarke Berg f58e1e8edb Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB7482-acceptance-tests-for-content
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
2020-09-09 13:14:20 +02:00
Sebastiaan Janssen 1f44b94ef6 Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
#	src/Umbraco.Web.UI.Client/test/config/karma.conf.js
2020-09-09 12:52:42 +02:00
Sebastiaan Janssen 0662284f29 Merge branch 'v8/8.7' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
2020-09-09 12:48:28 +02:00
Bjarke Berg 06713ea03a Clean up + reintroduced some notes, that will maybe be usefull when website rendering is ready
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-09 12:46:23 +02:00
Bjarke Berg 1923cf013c Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/ModelsBuilderEmbedded-migration-roslyn-compiler 2020-09-09 12:38:16 +02:00
Bjarke Berg 164c62841d Added seperators (newlines) between parts of the string used for the hash
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-09 11:17:21 +02:00
Bjarke Berg 79bfe22650 Added internals visible to for test projects
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-09 11:15:44 +02:00
Bjarke Berg 8a68ba9547 Removed the init of legacy MB. Future versions of the full MB will have to disable the embedded MB
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-09 11:15:14 +02:00
Bjarke Berg 6e25885804 Simplified the drag and drop 2020-09-09 10:29:41 +02:00
Bjarke Berg b4b7bb438d updated version of testhelpers 2020-09-09 07:51:05 +02:00
Bjarke Berg 7641b8da54 Merge remote-tracking branch 'origin/v8/8.7' into v8/feature/AB7482-acceptance-tests-for-content
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
2020-09-09 07:46:35 +02:00
Bjarke Berg 34c09ce12d Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB7482-acceptance-tests-for-content 2020-09-08 21:05:58 +02:00
Bjarke BergandGitHub d80a9cbe58 Merge pull request #8852 from umbraco/netcore/bugfix/disable-url-tracking
NetCore: Fix for disabling/enabling url tracking
2020-09-08 20:50:51 +02:00
Bjarke Berg 43a11a637d https://github.com/umbraco/Umbraco-CMS/issues/8835: Moved DisableRedirectUrlTracking checks into the events, as it can be disabled/enabled without restart in netcore
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-08 20:49:04 +02:00
Elitsa Marinovska 78dd6c40da Fixes issue https://github.com/umbraco/Umbraco-CMS/issues/8835 on alpha001 regarding disabling/enabling url tracking 2020-09-08 15:50:52 +02:00
Nikolaj 6cd8617202 Fix tests 2020-09-08 15:17:57 +02:00
Bjarke BergandGitHub 55491338d9 Merge pull request #8847 from umbraco/netcore/bugfix/mapping-from-route
NetCore: Fix for mapping route param
2020-09-08 15:02:26 +02:00
Elitsa Marinovska 0f7ad6b00c Fixes issue https://github.com/umbraco/Umbraco-CMS/issues/8816 on alpha001 regarding incorrect mapping of id param 2020-09-08 13:12:36 +02:00
Bjarke Berg e079bd5a50 Cleanup usages of Configs 2020-09-08 13:03:43 +02:00
Nikolaj a6580cc3c5 Add documentation comments to RoslynCompiler and LoadContext 2020-09-08 12:24:34 +02:00
Ronald BarendseandGitHub 5faa9ae22f 8.7RC Add generic BlockListItem classes (#8841) 2020-09-08 12:08:27 +02:00
Nikolaj fc83ea5edd Remove more generated files 2020-09-08 11:23:27 +02:00
Nikolaj 2bb3612bcb Enable models builder 2020-09-08 10:57:15 +02:00
Nikolaj 7496e7c9a0 Set ModelsBuilderConfig back to default to true 2020-09-08 10:56:41 +02:00
ClausandGitHub f20920167a Merge pull request #8844 from umbraco/v8/bugfix/remove-blocklistextensions
V8.7RC: Removing extensions for GetBlockListHtml on IPublishedContent
2020-09-08 10:46:06 +02:00
Nikolaj 7ac4e6c387 Disabling pre compiled view should be a workaround and not default 2020-09-08 10:42:39 +02:00
Claus 11e42c0a56 removing duplicated extension methods that could encourage bad practice when used in the wrong way. 2020-09-08 10:36:35 +02:00
Nikolaj 983ac2cca5 Remove CodeGen var
I believe this was used for the build manager which would get maed if the base directory changed, roslyn shouldn't care though
2020-09-08 10:34:47 +02:00
Nikolaj b6be2b4a0c Remove pure live generated cs files
They will cause a myriad of trouble
2020-09-08 10:27:05 +02:00
Nikolaj 3eb897a16f Move genereated files to the Umbraco folder 2020-09-08 10:21:11 +02:00
Bjarke Berg 3efee8284a Post merge fixes 2020-09-07 15:28:58 +02:00
Nikolaj f14b3f78a9 Remove unused usings 2020-09-07 12:44:24 +02:00
Nikolaj 5321f493ec Remember to use assemblyPath variable in CompileToFile 2020-09-07 12:37:47 +02:00
Nikolaj 5d12f99eaf SImplify roslyn compiler
Since the old assemblies actually gets deleted now  we no longer need to check if the old assembly file exists
2020-09-07 12:01:25 +02:00
Nikolaj 00365fc455 Clean roslyncompiler a bit
There's no reason to just return the saveLocation parameter
2020-09-07 11:47:46 +02:00
Nikolaj 872364cfb3 Update constructor in PublishedModelFactory 2020-09-07 11:34:12 +02:00
Bjarne FyrstenborgandGitHub 4782560f2f Checkboxlist and radiobuttonlist validation (#8833) 2020-09-07 10:46:03 +02:00
Nikolaj 5f6680f191 Use filestream to be able to delete the old asemblies 2020-09-07 10:19:25 +02:00
Bjarke Berg e5bb9a22d0 Merge remote-tracking branch 'origin/netcore/netcore' into feature/8651-config-options-patten 2020-09-07 09:43:14 +02:00
Nikolaj 00b30f74c7 Fix 2020-09-07 09:06:46 +02:00
Nikolaj 6d599b5f48 Switch to default AssemblyLoadContext 2020-09-07 09:03:09 +02:00
Elitsa MarinovskaandGitHub d8732e55a6 Updates package to future latest with necessary changes 2020-09-06 17:08:36 +02:00
Elitsa Marinovska cab6bbb44d Refactoring for using API for saving content 2020-09-06 17:00:50 +02:00
Elitsa Marinovska ce0d73725b Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB7482-acceptance-tests-for-content 2020-09-06 16:38:50 +02:00
Bjarke Berg 13ad1e0a88 remove hardcoded version number
Signed-off-by: berg <mail@bergmania.dk>
2020-09-04 20:12:49 +02:00
Bjarke Berg c8669b18c2 Merge remote-tracking branch 'origin/netcore/netcore' into feature/8651-config-options-patten
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-04 14:30:48 +02:00
ClausandGitHub 46b4b22dcd Merge pull request #8767 from umbraco/v8/bugfix/return-IHtmlString-from-GetBlockListHtml
V8/bugfix/return IHtmlString from GetBlockListHtml
2020-09-04 13:55:45 +02:00
Niels LyngsøandSebastiaan Janssen 028b9ec59b change to use evalAsync() 2020-09-04 13:21:04 +02:00
Kenn JacobsenandSebastiaan Janssen 455344105d Hide the Nested Content "add content" header when there are items in the clipboard 2020-09-04 11:31:06 +02:00
Kenn JacobsenandSebastiaan Janssen 0720e3bb30 Fix broken Nested Content "add content" dialog 2020-09-04 11:24:17 +02:00
Bjarke BergandGitHub 1218f3564c Merge pull request #8798 from umbraco/netcore/bugfix/integration-tests-examine-indexes
Fixes integration tests bootstrapping
2020-09-04 10:54:43 +02:00
Bjarke Berg 7b465de164 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/bugfix/reset_password 2020-09-04 10:40:32 +02:00
Mole 1000e19a20 Try and use AssemblyLoadContext to load and unload assemblies
This still doesn't work, since the old assembly never gets freed allowing it to be unloaded, my best guess is that there's some references to the types within in the old assembly somewhere which doesn't get cleared.
2020-09-04 10:38:37 +02:00
Sebastiaan Janssen a0fbffa2c2 Ignoring package-lock.json from now on, seems not needed.
Motivation: the only "benefit" I keep seeing is: you will know when dependencies has changed version.
But since we lock our dependencies down quite well in package.json already and we have never even had a problem with a package updating "on it's own" so I don't think it's really needed.
The only thing that updates on it's own is whatever dependencies our dependencies drag along with them, but the main js packages that we ship with are always pinned down to a version we know we want to ship with so that won't be a problem.
2020-09-04 10:38:16 +02:00
Kenn JacobsenandSebastiaan Janssen a5e4633377 Fix JS error when creating macros and relation types 2020-09-04 10:08:03 +02:00
M. Ali IftikharandSebastiaan Janssen db9d15e1b5 added escape character to server textbox placeholder on installer DB config page 2020-09-04 09:50:08 +02:00
Bjarke Berg a58859ade6 updated version to 0.5.0-alpha002
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-04 09:39:46 +02:00
Ronald BarendseandGitHub 02fba85f73 Update config comments and fix transforms (#8808) 2020-09-04 09:36:28 +02:00
Bjarke Berg d69c93e4ee https://github.com/umbraco/Umbraco-CMS/issues/8814 - Decoreated endpoints with DetermineAmbiguousActionByPassingParametersAttribute
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-04 09:32:35 +02:00
Ronald BarendseandSebastiaan Janssen d5933a154c Use correct woff and woff2 MIME types 2020-09-04 09:32:33 +02:00
Bjarke Berg ed2fa27b18 Fix issue with login url
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-04 09:26:24 +02:00
Shannon 1ab77adc8a Ensure event handlers are unsubscribed in Core Components 2020-09-04 13:25:56 +10:00
Shannon 123e3cb22b fix build 2020-09-04 10:12:55 +10:00
Shannon 855a58a3cc fix tests 2020-09-04 01:40:46 +10:00
Shannon 1c83c68862 Fixes integration tests localization text 2020-09-04 01:30:47 +10:00
Shannon e6b6dd6d92 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/bugfix/integration-tests-examine-indexes 2020-09-04 00:30:46 +10:00
Shannon 734b222e1b cleanup 2020-09-04 00:30:06 +10:00
Shannon 16e4ffb725 Fixes unsubscribing from static events on Terminate 2020-09-04 00:28:38 +10:00
Shannon 7c78b5b34f Updates CoreRuntime with better dependencies so we can disable caches, fixes integration test to run multiple callbacks registered for TearDown, ensure we TearDown the runtime. 2020-09-04 00:27:43 +10:00
Nikolaj 63c25b8695 Start out with AssemblyLoadContext 2020-09-03 15:24:57 +02:00
Nikolaj ba3ed003f1 Remove the last stuff I can find 2020-09-03 15:03:02 +02:00
Nikolaj 870bd825d4 Remove more stuff that seemingly does nothing anymore 2020-09-03 14:58:21 +02:00
Nikolaj ef02a32a2c Try and do something which might sometimes delete some old assemblies 2020-09-03 14:53:36 +02:00
Bjarke Berg 02648eb5a6 Merge remote-tracking branch 'origin/netcore/netcore' into feature/8651-config-options-patten 2020-09-03 14:37:56 +02:00
Bjarke Berg 6f6d9cb938 Fixed issue with wrong link to GetSetup method on InstallApiController 2020-09-03 14:37:29 +02:00
Nikolaj 508a2b9077 Remove some build manager stuff 2020-09-03 14:18:09 +02:00
Nikolaj ee424ad160 Remove unused ReferencedAssemblies 2020-09-03 13:50:54 +02:00
Nikolaj 1bbb6844ac Don't try to save a file that already exists 2020-09-03 13:30:34 +02:00
Andy Butland 88e3c58647 Fixed issue after merge. 2020-09-03 13:02:29 +02:00
Nikolaj 7b27a56ee9 Use determenistic hash 2020-09-03 13:01:50 +02:00
Andy Butland 885c8d2371 Merge branch 'feature/8651-config-options-patten' of https://github.com/AndyButland/Umbraco-CMS into feature/8651-config-options-patten 2020-09-03 12:57:35 +02:00
Andy Butland 14404f2720 Changed singleton created dependencies in composition root to use IOptionsMonitor. 2020-09-03 12:52:47 +02:00
Andy Butland b87630250b Removed unused private field and constructor variable for configuration global settings from UmbracoVersion.
Updated singleton created instances in CreateCompositionRoot to accept IOptions based parameters for configuration.
2020-09-03 11:36:57 +02:00
Sebastiaan Janssen 2681c76d90 Fix the test result output to go to a file, not a weird directory (because the default user agent contained slashes causing windows to make directories for them) 2020-09-03 11:34:12 +02:00
Sebastiaan JanssenandGitHub 4313463a94 Switch from the Chrome runner to JSDom (#8800) 2020-09-03 10:36:58 +02:00
Nikolaj aa1807bd5a Reuse compiled assembly again if no changes are detected
It's not pretty, but it works...
2020-09-03 10:31:45 +02:00
Sebastiaan Janssen 94c2d5c7ef Merge branch 'v8/dev' into v8/contrib 2020-09-03 09:42:16 +02:00
Sebastiaan Janssen eebe061cb6 Merge branch 'v8/8.6' into v8/dev 2020-09-03 09:41:31 +02:00
Nikolaj 624e57f304 Only add distrinct metadatareferences 2020-09-03 08:34:29 +02:00
Nikolaj 28c28519f0 Follow TODO and change Refresh to Reset 2020-09-03 08:34:07 +02:00
Nikolaj 7f6f924da6 Remove duplicate metadatareferences 2020-09-03 08:25:23 +02:00
Nathan WoulfeandGitHub 7b1f7ced3a Merge pull request #8713 from umbraco/nul800sebastiaan-patch-1
Adding `display: none;` prevents `ng-show` from working
2020-09-03 10:27:26 +10:00
Nathan WoulfeandGitHub 8ee878a4b2 Merge pull request #8803 from BatJan/feature/itempicker-fix-semantics
Merge pull request #8803 from BatJan/feature/itempicker-fix-semantics
2020-09-03 10:15:58 +10:00
BatJan 1e2c1e821a Convert a to button 2020-09-03 00:01:29 +02:00
BatJanandSebastiaan Janssen 2a10c5294a Fix semantics + fix focus on umb-checkmark directive 2020-09-02 19:32:33 +02:00
BatJanandSebastiaan Janssen 4e32ddc5b3 Convert a to button and fix some margin from the search box to the pickable items 2020-09-02 19:26:11 +02:00
BatJanandSebastiaan Janssen 337ed84e47 Convert a to button and remove wrapping span element 2020-09-02 19:13:56 +02:00
Bjarne FyrstenborgandGitHub e1d6357806 Spectrum colorpicker v2 (#8784) 2020-09-02 19:10:22 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 124415e413 Create more unique id for radiobutton list when using splitview and where two properties on each culture has same alias 2020-09-02 19:05:06 +02:00
Nikolaj 3efb60ba28 Remove unused stuff. 2020-09-02 15:46:48 +02:00
Kenn JacobsenandSebastiaan Janssen a542bd4bd2 Guard compareArrays filter against invalid arguments 2020-09-02 15:41:50 +02:00
Nikolaj 69191088e3 Save compiled assembly in TEMP 2020-09-02 15:35:05 +02:00
Kenn JacobsenandSebastiaan Janssen 94894ca41b Bump required Visual Studio version number in contrib guidelines 2020-09-02 15:22:48 +02:00
Nikolaj aeb7977c60 Load new argument 2020-09-02 15:18:22 +02:00
Nikolaj 8fd1d0a867 Add appsettings change 2020-09-02 14:47:18 +02:00
Nikolaj 1eb7e9c1eb Add further progress 2020-09-02 14:44:01 +02:00
Sebastiaan Janssen 10281cb0e6 Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/components/blockcard/umb-block-card.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html
2020-09-02 14:23:40 +02:00
Shannon 775360ef78 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/bugfix/integration-tests-examine-indexes 2020-09-02 18:27:53 +10:00
Shannon a5772f10e1 comments 2020-09-02 18:21:51 +10:00
Shannon b5d2adaf25 remove explicit 2020-09-02 18:20:30 +10:00
Shannon 27586d9f19 removes proj ref that wasn't needed 2020-09-02 18:19:27 +10:00
Nikolaj 064acda304 First shake at RoslynCompiler 2020-09-02 10:17:33 +02:00
Sebastiaan Janssen 79ac19bff8 Merge branch 'v8/8.7' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web.UI.Client/package.json
#	src/Umbraco.Web.UI.Client/src/common/services/formhelper.service.js
#	src/Umbraco.Web.UI.Client/src/views/common/overlays/itempicker/itempicker.controller.js
#	src/Umbraco.Web.UI.Client/src/views/components/users/change-password.html
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.controller.js
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.html
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.html
#	src/Umbraco.Web.UI.Client/src/views/datatypes/delete.html
#	src/Umbraco.Web.UI.Client/src/views/documenttypes/create.html
#	src/Umbraco.Web.UI.Client/src/views/logviewer/search.html
#	src/Umbraco.Web.UI.Client/src/views/member/member.edit.controller.js
#	src/Umbraco.Web.UI.Client/src/views/packages/edit.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/dropdownFlexible/dropdownFlexible.controller.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts.prevalues.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.prevalues.html
2020-09-02 10:14:10 +02:00
Shannon f84a93ae20 Adds IUmbracoBuilder to build the config so it's easier to split apart, ensures background tasks don't run in integration tests, uses a custom CoreRuntime to ensure we use SimpleMainDom, re-wires the UmbracoWebApplicationFactory so that duplicate Hosts are not running at the same time, fixes issues with overriding/shadowing, uses RAMDirectory in lucene for tests, fixes CoreRuntime's events that we're moved incorrectly and not backwards compat, adds new real non static events which we can use in integration tests to install the DB before the runtime state is calculated 2020-09-02 18:10:29 +10:00
Bjarke Berg 97e6d76ec9 Merge remote-tracking branch 'origin/netcore/netcore' into feature/8651-config-options-patten 2020-09-02 10:03:53 +02:00
Bjarke Berg edca4af7f4 Fix MaxFailedAccessAttemptsBeforeLockout from config 2020-09-02 10:03:35 +02:00
Bjarke Berg 90d14158ee Clean up - Removed duplicate ctor in UmbracoVersion 2020-09-02 09:05:55 +02:00
Andy Butland 8638419088 Fixed dependency resolution issue in PackagingService. 2020-09-02 08:41:41 +02:00
Andy Butland f1bda37a64 Updates following PR review. 2020-09-01 18:10:12 +02:00
Sebastiaan Janssen 703037195a Revert "Preserve sort order when copying content"
This reverts commit 47dc631ca0.
2020-08-31 23:20:18 +02:00
Bjarne FyrstenborgandSebastiaan Janssen ed59b22b6c Update to nouislider v14.6.1 2020-08-31 22:33:09 +02:00
BatJanandSebastiaan Janssen e02c417cf8 Convert a to button 2020-08-31 22:30:26 +02:00
Olivier BossaerandGitHub 9c33f4b2fe Fix #7672 - Image can be added to root of Media when AllowAtRoot is false (#7853) 2020-08-31 22:25:09 +02:00
MartaandSebastiaan Janssen 5bb61d138e #7672 checking allowed image types on each folder switch 2020-08-31 22:19:44 +02:00
Jose MarcenaroandSebastiaan Janssen 8a6d2cc3b0 Add varchar(max) support in DTO attributes
[SpecialDbType(SpecialDbTypes.NVARCHARMAX)]
2020-08-31 22:09:54 +02:00
Poornima NayarandGitHub c1e2f8f974 RedirectToUmbracoPageResult - Extended to allow a Guid (#8139) 2020-08-31 22:06:04 +02:00
Kenn JacobsenandSebastiaan Janssen 47dc631ca0 Preserve sort order when copying content 2020-08-31 21:59:59 +02:00
Rachel BreezeandGitHub 108ea2df5e Made the logviewer more accessible (#8213) 2020-08-31 21:56:00 +02:00
Jan SkovgaardandGitHub ae7290ff8b Userpicker view: Change anchor element to button (#8738)
* Change a to button

* Fix styling issues after button conversion
2020-08-31 20:56:27 +02:00
Bjarne FyrstenborgandGitHub 6bb105fb88 Use umb-radiobutton component in grid configuration (#8775) 2020-08-31 20:48:56 +02:00
Bjarne FyrstenborgandSebastiaan Janssen af63c6f93a Ensure directives use end-closing tag 2020-08-31 20:45:23 +02:00
Kenn JacobsenandSebastiaan Janssen 69321d3021 Sort the languages by their display name 2020-08-31 20:44:17 +02:00
Kenn JacobsenandSebastiaan Janssen 48e38b089d Sort dictionary translations by display name 2020-08-31 20:43:12 +02:00
Jan SkovgaardandGitHub f33c43609f General markup cleanup on buttons and icons (#8746) 2020-08-31 20:30:47 +02:00
Jan SkovgaardandGitHub 6de24fc7f1 User property editor: Add "Remove" warning dialog (#8745) 2020-08-31 20:27:07 +02:00
Jan SkovgaardandGitHub 3c1ad02126 Userpicker: Add warning overlay when the "Remove" button is hit (#8739) 2020-08-31 20:17:17 +02:00
erol akgülandSebastiaan Janssen ee80c24df1 Update ContentTypeRepositoryBase.cs
propertytypeid => propertyTypeId
2020-08-31 19:55:22 +02:00
Jan SkovgaardandGitHub fd88a88b08 Various fixes for macroparameterpicker view (#8606) 2020-08-31 19:34:09 +02:00
Bjarne FyrstenborgandGitHub 6ff100a7c7 Update umb-mini-search component (#8566) 2020-08-31 19:31:50 +02:00
Bjarne FyrstenborgandGitHub 6f5806c1cc Update umb-property-actions toggle button (#8565) 2020-08-31 19:22:59 +02:00
Shannon 664504833b Move scope management outside of iterator method 2020-08-31 23:57:26 +10:00
BatJanandSebastiaan Janssen a6309523d3 Fix space issue after the previous used div was converted to H1 2020-08-31 15:41:42 +02:00
Shannon 6e08a0396e Umbraco to re-index data on background thread
Fixes issue with scopes being disposed or referenced incorrectly due to yield returns as this can capture a scope in the enumerator which will get passed to a background thread in Examine and cause some issues. We saw this issue in netcore but the issue must still exist in v8 but we don't visibly see it for some reason. The other issue is that the ValueSet lookup for content was done 3x when an IContent is saved and it should only be done 2x, one for published, one for unpublished. The other issue is that the data lookups to build a ValueSet are intended to be done on a background thread. This is the case in v7 because the IEnumerable is lazy and passed all the way down to Examine's background thread but this doesn't occur in v8 because we need to iterate/split that value set before it's sent to Examine so the ValueSet is eagerly built within the request. We can easily resolve this by using the background task manager and just pushing a task when IContent/IMedia/IMember is saved. This will return the execution to the UI quicker.
2020-08-31 23:41:19 +10:00
Bjarne FyrstenborgandGitHub 1a4eb442e1 Packages adjustments (#8765) 2020-08-31 15:39:48 +02:00
Bjarke Berg cb88865a7d Added iconApiBaseUrl to BareMinimumServerVariables 2020-08-31 15:23:43 +02:00
Bjarke Berg 63c8555122 missing import 2020-08-31 13:56:25 +02:00
Bjarke Berg 4a150859cd Fixed reset password for functionality 2020-08-31 13:39:29 +02:00
Bjarke Berg edd457c24b Force Examine to run in sync for integration tests 2020-08-31 11:31:56 +02:00
Nikolaj 10aae75ec6 Return IHtmlString instead of MvcHtmlString from GetBlockListHtml 2020-08-31 11:08:44 +02:00
Bjarke BergandGitHub 30b1d52e67 Merge pull request #8750 from idseefeld/netcore/fix-install-api-url
Netcore/fix install api url
2020-08-28 16:46:02 +02:00
Dirk Seefeld 7791fdcafa ensure the the install api url ends with / to respect umbraco.installer.js method 2020-08-28 16:07:21 +02:00
Bjarke BergandGitHub 162861d0c4 Merge pull request #8731 from umbraco/netcore/feature/FileNameTests
NetCore: Add file name tests
2020-08-28 09:50:13 +02:00
Andy Butland 1d124ea0ac Merge branch 'netcore/netcore' into feature/8651-config-options-patten
# Conflicts:
#	src/Umbraco.Tests.Integration/Persistence/Repositories/DictionaryRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Persistence/Repositories/LanguageRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Persistence/Repositories/TemplateRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
#	src/Umbraco.Tests/Services/ContentServiceTests.cs
#	src/Umbraco.Tests/Services/UserServiceTests.cs
2020-08-27 18:58:12 +02:00
df4677e970 Update src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/FileNameTests.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2020-08-27 11:31:46 +02:00
Bjarke BergandGitHub cbe06e11b2 Merge pull request #8645 from umbraco/netcore/feature/AB7481-umbraco-tests-migration
NetCore: Migrating some Repository tests
2020-08-27 10:45:59 +02:00
Sebastiaan Janssen dae94bd957 Update issue template 2020-08-27 09:46:06 +02:00
Sebastiaan Janssen 3b93b6d108 Adds .NET Core issue template 2020-08-27 09:45:13 +02:00
Andy Butland e6ac534069 Resolved post-merge issues. 2020-08-27 09:27:11 +02:00
Andy Butland 2a59a8385c Merge branch 'netcore/netcore' into feature/8651-config-options-patten
# Conflicts:
#	src/Umbraco.Tests.Common/Builders/GlobalSettingsBuilder.cs
#	src/Umbraco.Tests/TEMP/DatabaseContextTests.sdf
#	src/Umbraco.Web.BackOffice/Controllers/ImagesController.cs
2020-08-27 09:03:01 +02:00
Bjarke Berg 361125e84b Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/merge-v8-into-netcore-netcore
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
2020-08-27 08:39:02 +02:00
Jan SkovgaardandGitHub 8cf999e4a1 Accessibility: Grid config datatype improvements (#8712) 2020-08-26 20:25:30 +02:00
Jan SkovgaardandGitHub 52e40d41d2 Accessibility: Fixes for "insert code snippet" view in macro pickers (#8711) 2020-08-26 20:23:08 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 824d2fd46d Align listview layout icons and make icon boxes same sizes 2020-08-26 19:58:14 +02:00
Kenn JacobsenandSebastiaan Janssen b476f91789 Fix parametrized query for specific content types 2020-08-26 19:51:47 +02:00
Bjarne FyrstenborgandGitHub a0d91e76e7 Update user filter buttons (#8587) 2020-08-26 19:48:40 +02:00
Kenn JacobsenandSebastiaan Janssen 9130695055 Fix the arrow direction in the content language picker 2020-08-26 19:25:44 +02:00
Kenn JacobsenandSebastiaan Janssen cdd560a7d1 Don't retain "move media" in busy state on error 2020-08-26 19:22:44 +02:00
Bjarne FyrstenborgandGitHub 2f69eac833 Make embed grid editor editable again (#8576) 2020-08-26 19:18:38 +02:00
Bjarne FyrstenborgandGitHub 74bce68c61 Update styling of grid editor add button (#8570) 2020-08-26 19:14:46 +02:00
Bjarne FyrstenborgandGitHub 7347343a31 Only show mediapicker edit button if media is found (#8569) 2020-08-26 19:12:38 +02:00
Bjarne FyrstenborgandGitHub 636dcecb62 Adjust image cropper crops (#8557) 2020-08-26 19:10:14 +02:00
Kenn JacobsenandSebastiaan Janssen 0320f40249 Fix JS error in empty listviews 2020-08-26 19:08:06 +02:00
Kenn JacobsenandSebastiaan Janssen 7f55f46ee6 Make the entire tree menu ellipsis button clickable 2020-08-26 19:02:35 +02:00
Kenn JacobsenandSebastiaan Janssen 58bd3d64f2 Add missing backdrop when using the "Actions" button 2020-08-26 19:01:09 +02:00
Bjarne FyrstenborgandSebastiaan Janssen e171ef2430 Extend styling from umb-node-preview-add 2020-08-26 18:57:31 +02:00
Bjarne FyrstenborgandGitHub 08981943ce Update prevalues multivalues sortable styling (#8554) 2020-08-26 18:54:40 +02:00
Bjarne FyrstenborgandSebastiaan Janssen bdff79f261 Align icon in media grid item overlay 2020-08-26 18:52:57 +02:00
Kenn JacobsenandSebastiaan Janssen a5f69bbd7c Remove usages of angular.forEach in help services and filters 2020-08-26 18:51:51 +02:00
Bjarne FyrstenborgandSebastiaan Janssen ea6937696e Fix media picker clickhandler 2020-08-26 18:49:52 +02:00
Ronald BarendseandSebastiaan Janssen b958d64b71 Fix NC active heading styling 2020-08-26 18:27:01 +02:00
Ronald BarendseandSebastiaan Janssen a5f4252f09 Change grid view @Html.If to conditional statement 2020-08-26 18:23:04 +02:00
Andy Butland 4e222f103e Reintroduced legacy config into CoreRuntime to support remaining use of Current.Configs (e.g. in UserInvite) 2020-08-26 18:21:09 +02:00
ae0ff1d0a1 8274: Make it possible to open user groups in infinite editor (#8308)
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2020-08-26 18:18:15 +02:00
Bjarke Berg 9d79b46949 Merge remote-tracking branch 'origin/v8/8.7' into netcore/netcore 2020-08-26 15:49:19 +02:00
Bjarke Berg 77520733d4 Fixed issue with source link referenced in nuget package 2020-08-26 13:32:09 +02:00
Andy Butland c0134b0b74 Added files missing from previous commit. 2020-08-26 12:30:20 +02:00
Bjarke Berg 4eb097d617 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/netcore 2020-08-26 12:01:11 +02:00
Bjarke Berg ba129fa927 Skip ExamineLuceneComposer if not on windows and reintroduce ExamineComposer 2020-08-26 12:01:01 +02:00
Andy Butland 64f8752587 Removed introduced second constructors for IOptions based depenedencies and used Options.Create instead. 2020-08-26 11:58:44 +02:00
Andy Butland 96104b9fdf Fixed further failing tests. 2020-08-26 11:29:21 +02:00
Bjarke BergandGitHub e85b914868 Merge pull request #8730 from umbraco/netcore/feature/lowercase-view-paths
Changed all view paths to lowercase from gulp
2020-08-26 10:50:47 +02:00
Bjarke Berg f286fdd855 Skip ExamineComposer if not on windows 2020-08-26 10:50:31 +02:00
Nikolaj 1243b7e127 Remove out of date TODO 2020-08-26 10:21:43 +02:00
Nikolaj fd7e46588e Remove unused partialViewMacro tests 2020-08-26 10:17:41 +02:00
Nikolaj 9a243566ae Use Path.DirectorySeperatorChar for InstallView test 2020-08-26 10:09:24 +02:00
Nikolaj 3e3f91c14d No longer use relative path to find views 2020-08-26 09:55:14 +02:00
Bjarke Berg 25a7a2c7fb Changed all view paths to lowercase from gulp 2020-08-26 09:44:15 +02:00
Andy Butland 25849703cc Fixed further failing tests. 2020-08-26 09:09:52 +02:00
Bjarke Berg 459e730510 Fix issues after merge 2020-08-26 08:17:05 +02:00
Bjarke Berg 3d55dcd3c4 Merge remote-tracking branch 'netcore/dev' into netcore/netcore 2020-08-26 08:05:15 +02:00
Andy Butland 8fd59d546e Fixed failing tests. 2020-08-26 07:55:23 +02:00
Andy Butland 8666547cf1 Updated configuration models used within Umbraco.ModelsBuilder.Embedded project. 2020-08-25 14:19:33 +02:00
Bjarke Berg ca3f65891d Merge remote-tracking branch 'origin/v8/dev' into netcore/dev 2020-08-25 14:00:59 +02:00
Andy Butland 8241643183 Resolved various failing tests. 2020-08-25 12:30:43 +02:00
Andy Butland b4e01392d9 Removed registration of old-style configuration in Netcore executable. 2020-08-25 11:00:11 +02:00
Andy Butland 967f0be705 Aligned property names in code with those in configuration. 2020-08-25 10:45:54 +02:00
Andy Butland 2c05718689 Restored Umbraco.Tests.Benchmarks. 2020-08-25 10:25:30 +02:00
Andy Butland ae6fdede76 Restored Umbraco.Tests to compiling state. 2020-08-25 10:23:50 +02:00
Andy Butland 2ed3568295 Fix after merge. 2020-08-25 10:11:19 +02:00
Andy Butland 2ea89acaaa Merge branch 'netcore/netcore' into feature/8651-config-options-patten
# Conflicts:
#	src/Umbraco.Infrastructure/Services/Implement/NotificationService.cs
2020-08-25 10:09:54 +02:00
Bjarke BergandGitHub 44b84c4cdd Merge pull request #8427 from emmagarland/v8/feature/acceptancetests-cypress-backofficetour
Rerunning first tour resets tour data
2020-08-25 08:42:14 +02:00
Andy Butland aedd7563a4 Restored Umbraco.Tests (further) 2020-08-24 22:58:23 +02:00
Chriztian SteinmeierandGitHub 1c09ee7dce Add `!important' to the color in the style attribute (#8710)
Turns out `!important` doesn't work with the `ng-style` attribute, so have stwitched to use `ng-attr-style` instead, which works.
2020-08-24 21:58:21 +02:00
Bjarke Berg c561b256bf Updated solution to include correct filenames 2020-08-24 18:09:16 +02:00
Bjarke Berg 0a954d1804 Fix issue with build targets after nuget rename 2020-08-24 18:01:56 +02:00
Emma Garland 6ee13fb0ea Timeout is a variable 2020-08-24 16:27:51 +01:00
Emma Garland 27a98dbdaa Tours green - clicked correct element 2020-08-24 16:23:18 +01:00
Emma Garland cdab15af91 Refactoring 2020-08-24 16:20:51 +01:00
leekelleherandSebastiaan Janssen 9ceecb21a8 Grid cell error - to use "umb-code-snippet" directive 2020-08-24 16:38:51 +02:00
Andy Butland 863a7195b2 Restored Umbraco.Tests (partially) 2020-08-24 16:06:09 +02:00
Bjarke Berg b5b492106d Clean up by moving stuff from Startup.cs into extention methods 2020-08-24 14:23:08 +02:00
Bjarke Berg 892a7e0b34 Changed default value of HideTopLevelNodeFromPath to true 2020-08-24 14:16:34 +02:00
Bjarke Berg 49ce3da698 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/netcore 2020-08-24 14:16:04 +02:00
Bjarke Berg c0d4516e15 Updated default config files 2020-08-24 14:15:53 +02:00
Bjarke BergandGitHub 95523e2a93 Merge pull request #8677 from umbraco/netcore/bugfix/send-notifications-dont-use-stmp-info-from-config
Netcore: Fixes issue with notifications that did not use the SMTP from config
2020-08-24 14:14:22 +02:00
Emma Garland 8e8a61d352 Updated % complete 2020-08-24 13:00:17 +01:00
Emma Garland 711b9b9c12 Slightly tweaked readme
Specified click as per PR review
2020-08-24 12:39:30 +01:00
Emma Garland 0df55d7894 Moved reset into correct scope 2020-08-24 12:31:04 +01:00
Andy Butland adf687579c Restored Umbraco.Tests.IntegrationTests (some failures remaining) 2020-08-24 12:34:37 +02:00
Bjarke BergandGitHub 0f72339d4a Merge pull request #8678 from umbraco/netcore/bugfix/scope-asynclocal-enumerable-issue
Fixes issue with scopes being disposed or referenced incorrectly
2020-08-24 11:52:57 +02:00
Andy Butland 9bd8b894b8 Restored Umbraco.Tests.UnitTests 2020-08-24 10:52:48 +02:00
Sebastiaan JanssenandGitHub eaa6ceacfb Adding display: none; prevents ng-show from working
Fixes #8705
2020-08-24 10:35:10 +02:00
Emma Garland 3fcaf213ea Merge branch 'v8/contrib' into v8/feature/acceptancetests-cypress-backofficetour 2020-08-24 09:17:53 +01:00
Andy Butland 7774878c26 Restored Umbraco.Tests.Common 2020-08-24 09:56:27 +02:00
Lee KelleherandGitHub 5e1d78db3e Grid Textstring editor - Fixes bug with unique ID. (#8546) 2020-08-24 09:47:30 +02:00
Andy Butland c3c8d79720 Merge branch 'netcore/netcore' into feature/8651-config-options-patten 2020-08-24 09:45:25 +02:00
Andy Butland 7884e4ca17 Resolved issues such that application boots and back-office is navigable. 2020-08-24 09:29:40 +02:00
Bjarke Berg 31e8acb875 Renamed nuget pacakges to Umbrac.Cms.* 2020-08-24 09:23:37 +02:00
Nikolaj b944142905 Add PreviewViewExists test 2020-08-24 08:45:41 +02:00
Shannon DeminickandGitHub 46aee2536e Merge pull request #8674 from umbraco/netcore/feature/update_user_on_login
Netcore: Update user on successful login
2020-08-24 14:31:44 +10:00
Shannon DeminickandGitHub 826e5ec49b Merge pull request #8672 from umbraco/netcore/feature/migrate_api_GetCurrentUserLinkedLogins
NetCore: Migrate GetCurrentUserLinkedLogins api
2020-08-24 14:26:14 +10:00
Andy Butland 2cd91a5a54 Converted to IOptions over IOptionsSnapshot due to the latter only working in scoped services.
Further amends to return to booting application.
2020-08-23 23:36:48 +02:00
Andy Butland 2f22313ceb Restored Umbraco.Web and added temporary methods for converstion between legacy and new configuration models to maintain build. 2020-08-23 15:58:37 +02:00
Andy Butland 89b725ef28 Reverted non netcore related project amends in order to limit changes to those necessary for the netcore executable call stack. 2020-08-23 14:05:35 +02:00
Andy Butland 52a65caf88 Temporarily removed test and non netcore executable projects. 2020-08-21 15:27:06 +01:00
Andy Butland 510bd92e78 Amended injection of further settings to use IOptionsSnapshot. 2020-08-21 14:52:47 +01:00
Mole 00f1e4a247 Assert that the view exists in InstallControllerTest 2020-08-21 14:20:30 +02:00
Mole 157068105c Remember to actually add the test 2020-08-21 13:53:57 +02:00
Mole 16db36eecd Start working on tests 2020-08-21 13:53:27 +02:00
Bjarke Berg 8330983dfd Merge remote-tracking branch 'origin/netcore/feature/AB7446-ModelsBuilderEmbedded-migration' into netcore/feature/AB7446-ModelsBuilderEmbedded-migration 2020-08-21 13:52:24 +02:00
Bjarke Berg 66a0125d3f Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB7446-ModelsBuilderEmbedded-migration
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
2020-08-21 13:26:00 +02:00
Bjarke Berg 140b1e950e Fix tests 2020-08-21 08:42:14 +02:00
Andy Butland e3a44c6717 Moved configuration setting POCOs into Umbraco.Core and adjusted references.
Amended injection of some settings to use IOptionsSnapshot.
2020-08-20 22:18:50 +01:00
Bjarne FyrstenborgandGitHub 55c37e0a4e Update content type icon on save (#8585)
* Emit event when content type icon/color change

* Allow node css class to change when icon change

* Cleanup unused injected services

* Add missing aria-hidden attribute in tree

* Fix typo
2020-08-20 20:43:08 +01:00
Shannon d2f7c11e89 Fixes issue with scopes being disposed or referenced incorrectly 2020-08-21 00:02:35 +10:00
Shannon 5e04f1d024 ignore file update 2020-08-21 00:01:05 +10:00
Shannon 435724a28f Merge branch 'netcore/netcore' of https://github.com/umbraco/Umbraco-CMS into netcore/netcore 2020-08-21 00:00:32 +10:00
Shannon 05851bc446 Delete and ignore files that shouldn't be there 2020-08-21 00:00:17 +10:00
Bjarke Berg 6fb73502ed Fix issue with sending notifications, due to the StmpClient. Not we use the EmailSender that handles StmpClient correct 2020-08-20 14:46:22 +02:00
Bjarke Berg 0a88cfe510 Fix issue with query params not binding for PostNotificationOptions 2020-08-20 14:10:35 +02:00
Bjarke Berg bcfc9414d3 Update user on successfully login 2020-08-20 13:19:27 +02:00
Bjarke Berg a2b82970ac Migrate GetCurrentUserLinkedLogins api 2020-08-20 11:54:35 +02:00
Bjarke Berg 1c3090b078 Remove files that should not have been added to git 2020-08-20 11:51:51 +02:00
Bjarke Berg 803fdcc890 Merge remote-tracking branch 'origin/v8/8.7' into netcore/netcore
# Conflicts:
#	src/SolutionInfo.cs
2020-08-20 11:24:58 +02:00
Sebastiaan Janssen 8db0967d47 Fix merge error 2020-08-20 10:19:14 +02:00
Bjarke Berg 4a107ae722 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB7482-acceptance-tests-for-content
# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/package.json
2020-08-20 09:47:31 +02:00
Bjarke BergandGitHub 2ac0ff9f40 Merge pull request #8595 from umbraco/v8/feature/partial-view-macro-acceptance
V8/feature/Add acceptance tests
2020-08-20 09:43:19 +02:00
Bjarke Berg 67c25ad39b Fixes for ace editor in cypress tests 2020-08-20 09:42:42 +02:00
Andy Butland 0f6e18023f Amended most configuration settings classes to public POCOs without interfaces, and loaded into services collection via loading the configuration section. 2020-08-20 08:24:23 +01:00
Bjarke BergandGitHub 1ef4a340e4 Merge pull request #8665 from umbraco/netcore/more-linux-optimizations
Netcore: Optimizations for non-windows development
2020-08-20 08:16:30 +02:00
Bjarke Berg f913aff5fb Using Enumerable.Empty<T> 2020-08-20 08:15:07 +02:00
Bjarke Berg 091a777b62 Conditional load of netframework dlls 2020-08-19 19:51:06 +02:00
Bjarke Berg b288c99e56 Register noop examine implementations in core, to be replaced by examine dll. 2020-08-19 19:42:58 +02:00
Kenn JacobsenandGitHub f9c41f99e3 Allow for changing the weight of built-in and 3rd party dashboards (#8628) 2020-08-19 14:41:48 +01:00
Sebastiaan Janssen 0140d906a5 Merge remote-tracking branch 'origin/v8/contrib' into v8/contrib 2020-08-19 15:18:19 +02:00
Andy Butland a3e84ea3a8 (WIP) migrated TourSettings to use IOptions pattern for configuration. 2020-08-19 14:14:01 +01:00
Steve TempleandGitHub addc6ae51a Deprecate IsRequired on Email datatype (#8655)
* Deprecate IsRequired on Email datatype

* Add Obsolete to IsRequired in EmailAddressConfig
2020-08-19 14:03:38 +01:00
Bjarke BergandGitHub ead38a0f42 Merge pull request #8657 from umbraco/netcore/bugfix/directory-casing
Netcore: Renamed `Umbraco.Web.UI.Netcore\Umbraco` to `Umbraco.Web.UI.Netcore\umbraco`
2020-08-19 13:39:26 +02:00
Bjarne FyrstenborgandGitHub ea40cea420 Use button elements in schedule overlay (#8640)
* Replace anchor elements with button elements

* Apply styling to button element

* Reset default button style

* Add missing type attributes

* Add aria-hidden attribute

* Move type attribute for readability
2020-08-19 12:21:53 +01:00
Sebastiaan Janssen c8da5156fa Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Web.UI.Client/package.json
#	src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbvariantcontenteditors.directive.js
#	src/Umbraco.Web.UI.Client/src/common/directives/validation/valformmanager.directive.js
#	src/Umbraco.Web.UI.Client/src/common/services/formhelper.service.js
#	src/Umbraco.Web.UI.Client/src/views/components/overlays/umb-overlay.html
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.html
#	src/Umbraco.Web.UI.Client/src/views/dictionary/edit.html
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
2020-08-19 13:12:13 +02:00
Bjarke Berg da25953c2b Merge remote-tracking branch 'origin/netcore/bugfix/directory-casing' into netcore/bugfix/directory-casing 2020-08-19 12:49:36 +02:00
Bjarke Berg bd4c536a47 renamed Umbraco to umbraco 2020-08-19 12:49:04 +02:00
Bjarke Berg 5d4a95c96b renamed Umbraco to umbraco 2020-08-19 12:47:34 +02:00
Bjarke Berg 0a2ebcd1f1 Use SqlMainDomLock if not windows 2020-08-19 09:39:11 +02:00
Bjarke Berg 023ec53a9a Dont try to load assemblies that is not used yet 2020-08-19 08:43:24 +02:00
Bjarke Berg 9049469f70 Bugfix cannot parse StringValues as bool. Use ToString first. 2020-08-19 08:42:45 +02:00
Shannon 9a1de6468b notes and unit test, just wanted to see if this query could be improved but it can't 2020-08-19 13:33:49 +10:00
Elitsa Marinovska 4edf002dd0 Migrating old tests to .net core test projects 2020-08-18 16:10:05 +02:00
Elitsa Marinovska 4f5fb0c9c3 Changes necessary for migrating old tests 2020-08-18 15:53:25 +02:00
Bjarke BergandGitHub 43efee9647 Merge pull request #8641 from AndyButland/defect/netcore-fixes-log-viewer-level-filter
Fixed log viewer level filter by correcting binding for provided array of selected values to filter by.
2020-08-18 13:53:44 +02:00
Bjarke Berg 3dd59c6b83 Support for parsing provider from azure connection strings 2020-08-18 13:49:15 +02:00
Andy Butland a2a850e1b2 Applied fix to query parameter binding for saving public access configuration on a content item. 2020-08-18 11:47:53 +01:00
Andy Butland 1f206766ab Fixed log viewer level filter by correcting binding for provided array of selected values to filter by. 2020-08-18 11:07:59 +01:00
Bjarke Berg 5f6de61391 Fix iss issue 2020-08-18 11:36:45 +02:00
Bjarke Berg 20c8ae1fa7 Change linux check to check windows instead 2020-08-18 10:22:01 +02:00
Bjarke Berg eed6c87978 fix issue with nuget version requested 2020-08-17 14:06:17 +02:00
Bjarke Berg 2da7e3c54f Updated template default version to alpha001 2020-08-17 14:02:55 +02:00
Bjarke Berg 6371fdbf4d post merge 2020-08-17 11:43:04 +02:00
Bjarke Berg 9ae878a185 Hardcode verion 9 in text, and change assembly versions to 0.5.0 2020-08-17 09:34:27 +02:00
Shannon DeminickandGitHub 5d93d8e874 Merge pull request #8634 from nzdev/v8/feature/support-sql-server-developer-edition-2019
Support SQL Server 2012 syntax on SQL Server 2019
2020-08-17 16:30:36 +10:00
Bjarke BergandGitHub 7b95494e30 Merge pull request #8572 from umbraco/netcore/bugfix/6970-backoffice-controller
Migrates remaining non-oauth actions on back office controller to netcore
2020-08-17 08:29:59 +02:00
Bjarke BergandGitHub 59d8b7965d Merge pull request #8385 from umbraco/netcore/feature/better-linux-support
Netcore: Changes to run on linux
2020-08-17 08:06:42 +02:00
Bjarke Berg f9ba200c21 LazyLoad casing 2020-08-16 11:30:49 +02:00
Bjarke Berg 1fd10dcb01 Merge remote-tracking branch 'origin/netcore/feature/better-linux-support' into netcore/feature/better-linux-support 2020-08-16 11:12:33 +02:00
nzdev 58a8b093cc Support SQL Server 2012 syntax on SQL Server 2019 2020-08-14 16:32:46 +12:00
Sebastiaan Janssen acb2c203bd Bump to v8.8.0 2020-08-13 14:41:54 +02:00
Sebastiaan Janssen 50bdcc4949 Sync some dependencies that have been updated in v8/8.7 2020-08-13 14:32:43 +02:00
Bjarke Berg 5cc0f00074 Introduced WebPath.Combine 2020-08-13 10:13:23 +02:00
Nikolaj 1512496f4f Add template tests 2020-08-13 09:31:28 +02:00
Nikolaj 9a2fb1e0d8 Fix javascript test 2020-08-13 09:11:58 +02:00
Nikolaj e76ffc865c Ensure that the template is deleted when creating a new documentType 2020-08-13 09:09:15 +02:00
Nikolaj cc696ade1c Update npm packages 2020-08-13 09:02:54 +02:00
Nikolaj b42bd51392 Add partial views tests 2020-08-13 09:02:18 +02:00
Bjarke Berg 34617e9f94 Fix for packages 2020-08-12 16:51:34 +02:00
Bjarke Berg 95c30d4cd0 Fix for packages 2020-08-12 15:59:30 +02:00
Bjarke Berg 996130b58d Post merge fix 2020-08-12 13:26:24 +02:00
Bjarke Berg 3ec13b3190 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/better-linux-support
# Conflicts:
#	build/NuSpecs/UmbracoCms.SqlCe.nuspec
2020-08-12 13:25:24 +02:00
Bjarke Berg cdd2dc51b4 Copy files on publish 2020-08-12 10:03:40 +02:00
Sebastiaan Janssen 93c021ef1c Resolves #8621 correctly 2020-08-12 09:07:35 +02:00
Bjarke Berg 06c463e9cc Update nuget package dll paths 2020-08-12 08:53:01 +02:00
Elitsa Marinovska 52500cce38 Creates tests for content 2020-08-11 22:43:16 +02:00
Elitsa Marinovska ad166921a8 Updates Cypress to future latest 2020-08-11 22:42:26 +02:00
Bjarke Berg 9eee058211 Fix issue with buildscript and verify nuget 2020-08-11 20:31:04 +02:00
Sebastiaan Janssen 425d0ba544 Remove dependency on the testdata project in Web.UI #8616 2020-08-11 16:17:58 +02:00
Bjarke Berg f7e0b115aa copy language files on publish 2020-08-11 15:00:39 +02:00
Bjarke Berg 2ed8e89d9b Fixes for build script 2020-08-11 12:26:01 +02:00
Bjarke Berg dfc37a571a Fixes for Umbraco.Web.UI.csproj 2020-08-11 11:22:15 +02:00
Bjarke Berg f0795f63b5 Get the SqlCE dll from the SqlCE project instead of the executeable, now that the executable does not include SqlCE anymore by default 2020-08-11 10:40:37 +02:00
Bjarke Berg 7b6d64872f Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/better-linux-support
# Conflicts:
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
2020-08-11 10:05:55 +02:00
Bjarke Berg 1481804014 Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
# Conflicts:
#	src/Umbraco.Web.UI.NetCore/Umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI.NetCore/Umbraco/config/lang/en_us.xml
2020-08-11 10:01:17 +02:00
Bjarke Berg 9432f71a63 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev 2020-08-11 10:00:19 +02:00
Bjarke Berg 0fe50728df Fix csproj of Umbraco.Web.UI 2020-08-11 09:50:17 +02:00
Warren BuckleyandGitHub 3c9bd45ea6 Delete rich-code-navigation.yml 2020-08-11 08:25:43 +01:00
Bjarke Berg 7ced06bc05 fix tests 2020-08-11 09:11:53 +02:00
Bjarke Berg 1123b8bea5 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/better-linux-support
# Conflicts:
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
2020-08-11 08:33:11 +02:00
3c2f2ac0b3 Netcore: Let build.ps1 create the dotnet new templates (#8591)
* Creates the Umbraco.Templates.nuspec on build

* Update nuspec to match nuget packages

* Updated namespace of Program.cs and Startup.cs and replace these with the project name in templates

* Bugfixes for sqlce

* Simplified template to have one template with --UseSqlCe as option

* Update build/build.ps1

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2020-08-11 08:28:16 +02:00
Bjarke BergandGitHub 94e1056dd9 Merge pull request #8603 from umbraco/netcore/feature/6976-migrate-preview-middleware
Migrates preview auth Middleware
2020-08-11 08:24:57 +02:00
Bjarke Berg d98d1d8373 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/6976-migrate-preview-middleware 2020-08-11 07:30:50 +02:00
Bjarke BergandGitHub a02b5e93a5 Merge pull request #8598 from umbraco/netcore/feature/6972-migrate-non-oauth-auth-controller
Migrates remaining non-oauth AuthenticationController actions to netcore
2020-08-11 07:30:23 +02:00
Shannon DeminickandGitHub 2aae974281 Merge pull request #8394 from umbraco/netcore/feature/fix-integration-tests
Netcore: More tests migrated..
2020-08-11 11:54:37 +10:00
Shannon 9fc3699a48 Reduces the Member update calls when logging a member in 2020-08-11 11:52:36 +10:00
Shannon 2d3d919c31 adds notes 2020-08-10 22:57:34 +10:00
Shannon 295db967de Updates member repository to select/update instead of delete/insert for property data 2020-08-10 22:55:45 +10:00
Bjarke Berg 6d51dc4afa Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/6976-migrate-preview-middleware 2020-08-10 14:30:25 +02:00
Shannon 5cf94a7639 Updates member repository to take a lock on the property value rows being updated 2020-08-10 22:29:04 +10:00
Bjarke Berg 8322151426 Fix test issue. Now testserver tests always is executed in debugmode 2020-08-10 14:10:08 +02:00
Bjarke Berg 8dea65286b Fix test. Asserting on something irrelevant 2020-08-10 13:21:44 +02:00
Shannon cfc4933170 Merge branch 'netcore/netcore' into netcore/feature/fix-integration-tests 2020-08-10 15:50:05 +10:00
Shannon 635f1ba984 removes unused code 2020-08-10 15:48:13 +10:00
Bjarke BergandGitHub 499ffdfe97 Merge pull request #8584 from umbraco/netcore/feature/request-localization-from-user
Netcore: Added request localization from the current user.
2020-08-10 07:04:20 +02:00
Bjarke Berg 379454cd4b fix appsettings.json 2020-08-07 14:36:45 +02:00
Bjarke Berg 8539ffa27a Fix issue where Umbraco.Tests.Common know a legacy mvc package 2020-08-07 14:10:29 +02:00
Bjarke Berg c57c42d2ec Fixes merge conflicts 2020-08-07 14:00:56 +02:00
ClausandGitHub 39fcdb01e0 Merge pull request #8601 from umbraco/v8/bugfix/publishdescendants
Fixing publish descendants dialog
2020-08-07 09:56:37 +02:00
Claus c73f9bc2a5 fixing the other umb-toggle. 2020-08-07 09:52:19 +02:00
ClausandGitHub 36af2f6ed2 Merge pull request #8547 from bjarnef/v8/bug/fix-self-closing-angular-elements
Fix self closing angular elements
2020-08-07 09:45:32 +02:00
ClausandGitHub f7588da514 Merge pull request #8605 from bjarnef/v8/bug/fix-self-closing-umb-toggle
Fix self closing umb-toggle
2020-08-07 09:42:31 +02:00
Bjarne Fyrstenborg deef02bd32 Toggle when clicking label text 2020-08-06 20:14:38 +02:00
Bjarne Fyrstenborg 73860285eb Fix issue with void element for angular directive/component which is custom HTML element 2020-08-06 19:59:54 +02:00
Bjarne Fyrstenborg 112215ac5b Remove additional whitespace 2020-08-06 19:57:20 +02:00
Shannon cca7303abd Migrates preview auth Middleware
Migrates UriExtensionsTests to netcore, fixes preview controller bits, adds tests for preview path for back office route check, fixes virtual paths for views,
2020-08-07 00:48:32 +10:00
Claus 4799f73775 using label on umb-toggle instead of a separate element.
updating localized texts to reflect what is happening.
ensure the selected value is pushed back to scope and used for the action.
2020-08-06 15:04:18 +02:00
Shannon 1239975b07 Ensures all back office controllers have the thread culture set, we do this with a new application model targeting all back office controllers. 2020-08-06 22:08:27 +10:00
Bjarke Berg 39162f0f6a Merge conflicts resolved 2020-08-06 12:59:21 +02:00
Shannon b9a4a75656 Migrates remaining non-oauth AuthenticationController actions to netcore 2020-08-06 19:09:05 +10:00
Warren BuckleyandGitHub 1e29b5f810 Delete RichCode Navigation GitHub Action
Will do testing in personal fork with MS team until this is ready to demo
2020-08-06 08:10:51 +01:00
Nikolaj 355804d4a6 Update testhelpers to fix wonky import 2020-08-06 08:53:17 +02:00
ClausandGitHub 9ac3885488 Merge pull request #7596 from umbraco/v8/feature/7292-memberhasaccess
Adds new methods to MembershipHelper for dealing with checking bulk paths for access
2020-08-06 08:22:45 +02:00
Shannon DeminickandGitHub 9cafeaf39e Merge pull request #8590 from umbraco/netcore/bugfix/get_rid_of_system_web
Netcore: Get rid of System.Web in netcore and netstandard projects
2020-08-06 14:42:54 +10:00
Nikolaj 6a67fd5fab Add additional partialViewMacro tests 2020-08-05 15:21:54 +02:00
Bjarke Berg 53d8cfcfe4 Updated rc version of ImageSharp.Web 2020-08-05 08:48:18 +02:00
Bjarke Berg 3ea7945f24 Get rid of system web in netcore and netstandard libraries 2020-08-05 08:44:22 +02:00
Elitsa Marinovska 89633b2c21 Removing unused var 2020-08-04 20:30:11 +02:00
Elitsa Marinovska 3a780db3fc Updating old comments 2020-08-04 20:29:48 +02:00
Bjarke BergandGitHub 23a6de30ec Merge pull request #8458 from umbraco/netcore/feature/AB7479-macro-templates-migration
NetCore: Migrating Macro Templates
2020-08-04 15:05:25 +02:00
Bjarke Berg 38ee3c322d Moved needed extension methods for the Gallery snippet.. 2020-08-04 14:12:22 +02:00
Bjarke Berg 1dac8779c2 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/7619 - Added request localization from the current user 2020-08-04 12:54:54 +02:00
Nikolaj 894bbfb9d4 Put cleanup into a function 2020-08-04 11:54:19 +02:00
Nikolaj 60791fb96f Wrap intital navigation in method 2020-08-04 11:35:12 +02:00
Nikolaj 7d045fd0b3 Fix spaces 2020-08-04 11:23:22 +02:00
Nikolaj 82b3416d42 Test partial view macro from snippet 2020-08-04 11:20:06 +02:00
Nikolaj 8c593d0ea6 Add test for macro without macro 2020-08-04 11:04:09 +02:00
Bjarke BergandGitHub 05e7d64a08 Merge pull request #8571 from umbraco/netcore/bugfix/controller-areas
Ensure all back office controllers are plugin controllers and use constant
2020-08-04 08:47:51 +02:00
Bjarke Berg 7490f0cd92 Updated Smidge to 3.1.1 2020-08-04 08:29:45 +02:00
Bjarke Berg c672f61c53 Revert appsettings.json 2020-08-04 08:14:30 +02:00
Bjarke BergandGitHub bcae0d70d5 Merge pull request #8573 from umbraco/netcore/bugfix/fixing-package-service-paths
Fixes package service paths so that it's using content and web roots not just web
2020-08-04 08:10:04 +02:00
Shannon 0507e20214 Fixes scope handling, else the transaction is rolled back and the keyvalue table is not updated 2020-08-04 15:20:54 +10:00
Shannon 99b012fc26 Fixes package service paths so that it's using content and web roots not just web 2020-08-04 14:51:12 +10:00
Shannon d9c2e5f55c Migrates remaining non-oauth actions on back office controller to netcore 2020-08-04 14:30:42 +10:00
Shannon 4edf7fdf83 Ensure all back office controllers are plugin controllers and use constant 2020-08-04 12:27:21 +10:00
Elitsa Marinovska 6a6e219652 Adds correct reference for HostingEnvironment 2020-08-03 14:37:32 +02:00
Bjarke Berg 6dd896ea01 https://github.com/umbraco/Umbraco-CMS/pull/8458 cleanup 2020-08-03 14:28:23 +02:00
Elitsa Marinovska 84e330a0ee Removes previous changes for injecting IPublishedSnapshotAccessor and instead modifies static methods in ModelsBuilder's generated code to accept the required param 2020-08-03 14:16:58 +02:00
Bjarke BergandGitHub 405919be7c Merge pull request #8559 from umbraco/v8/bugfix/acceptance_test
Fix selectors causing acceptance test to give false errors.
2020-08-03 13:11:09 +02:00
Bjarke BergandSebastiaan Janssen 8b1bf3c16f Fix issue with tour's next button not clickable when infinite editing bar is open 2020-08-03 12:54:27 +02:00
Nikolaj E. Lauridsen 87383db814 Fix button selectors 2020-08-03 12:04:22 +02:00
Bjarke Berg 790a3b26bf Removed missing files from csproj 2020-08-03 11:42:45 +02:00
Bjarke Berg 5aae0c2b52 Removed folder from csproj 2020-08-03 11:15:02 +02:00
Kenn JacobsenandGitHub bbcd08ac98 Fix broken grid LESS causing the client build to fail (#8551) 2020-08-01 10:18:15 +02:00
Bjarne Fyrstenborg 811cbb8f74 Cleanup console.log 2020-07-31 18:07:28 +02:00
Bjarne Fyrstenborg 3bcaad0e7f Ensure umb-radiobutton use end-closing tag 2020-07-31 18:06:50 +02:00
Bjarne Fyrstenborg 12a4dbc705 Ensure umb-checkbox has end closing tag 2020-07-31 18:00:39 +02:00
Kenn JacobsenandGitHub 34ea86a8cb Remove usages of angular.forEach in help drawer, content and infinite editors (#8544) 2020-07-31 17:48:45 +02:00
Bjarne FyrstenborgandGitHub 08f177bfd8 Fix styling of buttons in grid cells (#8543) 2020-07-31 17:45:45 +02:00
Bjarne FyrstenborgandGitHub ff7ce4e66e Fix styling of actions in textbox multiple (#8542) 2020-07-31 17:43:46 +02:00
Kenn JacobsenandSebastiaan Janssen a737b0eacf Remove usages of angular.forEach in property editors 2020-07-31 17:38:12 +02:00
Kenn JacobsenandSebastiaan Janssen e69f19381f Languages names do not show in publish/unpublish dialogs 2020-07-31 17:28:39 +02:00
Nathan WoulfeandGitHub 1a4e360c32 Fix object iteration in underscore _.each changes (#8534) 2020-07-31 12:49:01 +02:00
Mike MaseyandGitHub edf307dffa Errors do not receive focus on submit (Accessibility) (#8278) 2020-07-31 12:41:51 +02:00
Sebastiaan Janssen 9de04fdf5b Fix PhantomJS tests 2020-07-31 12:33:28 +02:00
Bjarne FyrstenborgandGitHub c33229840f Fix styling of confirm actions in tags editor (#8528) 2020-07-31 10:40:40 +02:00
Bjarne FyrstenborgandGitHub 538b867447 Buttons cleanup (#8529) 2020-07-31 10:24:20 +02:00
Bjarne FyrstenborgandGitHub dfe8930653 Update model name in logviewer saved search (#8527) 2020-07-31 10:18:24 +02:00
Bjarne FyrstenborgandGitHub 37d001c0e8 Align icons on document type (#8531) 2020-07-31 09:21:32 +02:00
Nathan WoulfeandSebastiaan Janssen ad1eda44bf rmove underscore from content overlays, some refactoring as appropriate 2020-07-31 09:16:51 +02:00
Bjarne FyrstenborgandGitHub 12087e78b7 Update master template button (#8532) 2020-07-31 08:42:29 +02:00
Shannon 7d762e0455 Merge remote-tracking branch 'origin/v8/8.7' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
2020-07-31 15:55:39 +10:00
Michael LatoucheandGitHub 6e2e2eca05 Update French translations file to V8 labels (#7379) 2020-07-30 18:12:08 +02:00
Ian HoughtonandSebastiaan Janssen a0034c51f9 fix #7842 - Render a larger textarea for editing dictionary items 2020-07-30 17:59:59 +02:00
Poornima NayarandSebastiaan Janssen d7c4f8f055 RelationService - Log to audit on RelationType Save 2020-07-30 17:56:29 +02:00
Callum WhyteandGitHub f2253bc090 Improving database field labels in installer (#8172) 2020-07-30 17:53:16 +02:00
Kenn JacobsenandSebastiaan Janssen a7e88efc22 Improve dictionary dashboard performance significantly 2020-07-30 17:48:45 +02:00
Ronald BarendseandGitHub 568135a249 Fix LogScrubber exception when cleaning up temp files (#8326) 2020-07-30 17:41:18 +02:00
Jan SkovgaardandGitHub 0e4979bd7f Convert menu actions to use umb-button-ellipsis component (#8503) 2020-07-30 17:32:50 +02:00
Nathan WoulfeandGitHub cb47e0f1f6 7731 bye bye underscore => _.each (#8475) 2020-07-30 17:20:56 +02:00
Bjarne FyrstenborgandGitHub 312e2fa949 Fetch membergroup by guid (#8496) 2020-07-30 17:12:18 +02:00
Kenn JacobsenandGitHub dd8ddbae27 Performance improvements to content type editor (#8506) 2020-07-30 17:04:14 +02:00
Bjarne FyrstenborgandGitHub 18ccbb70fd Adjust styling of variant switcher for not created variant (#8511) 2020-07-30 16:46:30 +02:00
Bjarne FyrstenborgandGitHub d1d50f2ff4 Logviewer adjustments (#8513) 2020-07-30 16:40:35 +02:00
Bjarne FyrstenborgandGitHub 56c3d5858b Query builder buttons (#8509) 2020-07-30 16:29:26 +02:00
Shannon 8b82f8e1c7 Ensures that the member resolved when setting last login date has the right data applied, finishes an outstanding TODO that will massively boost performance for sites that heavily use members (lots of logins) 2020-07-31 00:19:36 +10:00
Bjarne FyrstenborgandGitHub 27db255f77 Replace splitview close button with button element (#8510) 2020-07-30 15:45:52 +02:00
Bjarne FyrstenborgandGitHub 6edd0bbb6c Button doesn't show success or error icon after save (#8514) 2020-07-30 15:25:12 +02:00
Bjarne FyrstenborgandGitHub 68e5e5ead8 Use umb-icon in listview layout selector (#8515) 2020-07-30 15:22:23 +02:00
Bjarne FyrstenborgandGitHub 737291ce45 Adjustments to umb-icon with custom font icons (#8519) 2020-07-30 15:15:05 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 56d5286676 Don't log message if svg icon isn't found since it will fill log with errors for custom font icons where svg icons are not available 2020-07-30 15:03:56 +02:00
Shannon 8eab1f1b55 Fixes #8433 - member login sql locks 2020-07-30 22:59:58 +10:00
Kenn JacobsenandGitHub e25a81ef38 V8: Wildcards in tree searches causes YSODs (#7330) 2020-07-30 13:54:28 +02:00
Sebastiaan Janssen e390820f2e Remove redundant check 2020-07-30 13:40:48 +02:00
Shannon DeminickandGitHub 9e110124b5 Merge pull request #8270 from ronaldbarendse/v8/bugfix/propertyvalueconverterbase
PropertyValueConverterBase cleanup: fix IsValue, obsolete HasValue, add documentation
2020-07-30 21:18:30 +10:00
85cbcf74c0 Don't append empty file names to search results (#7331)
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2020-07-30 13:03:58 +02:00
Kenn JacobsenandSebastiaan Janssen f46778de62 Remove usages of angular.forEach in users and groups editing 2020-07-30 12:49:23 +02:00
Kenn JacobsenandSebastiaan Janssen 56ca7fa603 Remove usages of angular.forEach in settings and translation 2020-07-30 12:38:58 +02:00
Kenn JacobsenandSebastiaan Janssen a93cc88756 Don't show empty search results on top of the search input field in the linkpicker 2020-07-30 12:19:27 +02:00
Kenn JacobsenandSebastiaan Janssen e387c3b27f Fix JS error when trying to insert a link in an empty RTE 2020-07-30 12:13:40 +02:00
Kenn JacobsenandSebastiaan Janssen 2e22ada442 Fix the alignment of the "delete property" button 2020-07-30 12:10:09 +02:00
Kenn JacobsenandSebastiaan Janssen 164140a709 Show keyboard input focus on file property editors 2020-07-30 12:08:38 +02:00
Kenn JacobsenandSebastiaan Janssen 794e14e558 Fix panel header spacing when a description is present 2020-07-30 12:06:45 +02:00
Kenn JacobsenandSebastiaan Janssen be6b051674 Make sure the RTE always loads minified resources + optimize the grid RTE resource loading 2020-07-30 12:03:17 +02:00
Kenn JacobsenandSebastiaan Janssen a9dfd9a568 "Selected"-checkbox in mini listview is always visible 2020-07-30 11:50:10 +02:00
Jan SkovgaardandGitHub 0e715483c7 umb-ellispsis-component: Fix visuals when used in the content app section (#8500) 2020-07-30 11:30:06 +02:00
Bjarne FyrstenborgandGitHub 81346f8fb3 Show open button for media and member in MNTP (#8476) 2020-07-29 13:44:39 +02:00
Mike MaseyandGitHub add1a99cc4 V8: Add umb-icon directive to backoffice to begin transition from icon fonts to svgs (#5606) 2020-07-29 11:29:49 +02:00
Bjarne FyrstenborgandSebastiaan Janssen eff630d3a0 Ensure replacement of angular.copy still works where second parameter is used for destination object. 2020-07-28 14:10:01 +02:00
Kenn JacobsenandSebastiaan Janssen 143f0c04a3 Don't anto-expand all content anchors on small screens 2020-07-28 14:07:04 +02:00
Kenn JacobsenandSebastiaan Janssen f017514a10 Don't allow the grid to steal focus on init 2020-07-28 14:04:58 +02:00
Bjarne FyrstenborgandSebastiaan Janssen d3c87ab043 Cleanup unused function shouldShowUrl 2020-07-28 14:02:27 +02:00
rickreadandGitHub 61892882de #8345 - Nested content not remembering value on variant switch (#8479) 2020-07-28 10:29:35 +02:00
Kenn JacobsenandSebastiaan Janssen 0aabc2f696 Do not rebind content types on save errors 2020-07-27 17:54:22 +02:00
Bjarne FyrstenborgandGitHub 27ffa68ddf Hide action button in tree (#8481) 2020-07-27 17:48:35 +02:00
Bjarne FyrstenborgandGitHub 1eb0c93e05 Get member group by id, guid and udi (#7528) 2020-07-27 17:29:01 +02:00
Bjarne FyrstenborgandGitHub 0f9de5d59b Richtext rules adjustments (#8480) 2020-07-27 17:28:00 +02:00
Bjarne FyrstenborgandGitHub 6b3daf8963 Change button style for redirect delete confirm (#8482) 2020-07-27 17:25:19 +02:00
Bjarne FyrstenborgandGitHub 8ac706e7fd Update screenshots in default dashboard (#8483) 2020-07-27 17:23:51 +02:00
Bjarne FyrstenborgandGitHub eef894c617 Update boolean/toggle/checkbox label prevalues (#8477) 2020-07-27 17:18:10 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 2dedaf888b Add missing esc shortcut to close overlay 2020-07-27 16:32:39 +02:00
Marc GoodsonandGitHub 991f2d0f42 V8: Add alternate 'List View' to Media Picker - Take 2 (#7912) 2020-07-27 16:13:07 +02:00
Nathan WoulfeandGitHub fc09eeefaf Fix null language in variant change event (#8474) 2020-07-27 10:35:27 +02:00
Bjarne FyrstenborgandSebastiaan Janssen f10a3ef3ca Custom angular elements can't be self-closing. This prevented the remove button from being rendered. 2020-07-27 09:47:22 +02:00
Evan MooreandSebastiaan Janssen 4460e8d369 Get missing crops from configuration 2020-07-27 09:38:40 +02:00
Nathan WoulfeandGitHub 6823cdaaa0 Merge pull request #7446 from kjac/v8/fix/disable-actions-button-until-actions-load
V8: Disable the actions menu button until there are actions available
2020-07-25 08:12:45 +10:00
Lars-Erik AabechandGitHub e8bb3b01aa Better crop mechanism for the grid image editor (#8023) 2020-07-24 16:47:09 +02:00
Bjarne FyrstenborgandGitHub 5d5c912d4d Make icon property for checkbox and radiobutton consistent with other components (#8467) 2020-07-24 10:07:06 +02:00
Jan SkovgaardandGitHub c95a7f2ef4 Add focus-lock directive (#8141) 2020-07-23 17:50:50 +02:00
Warren Buckley 48963f6548 Submit Rich Code Navigation GitHub action 2020-07-23 16:40:23 +01:00
Jan SkovgaardandGitHub 1cd79d81af umb-confirmation directive: move trashcan into directive and address accessibility issues (#8198) 2020-07-23 17:28:24 +02:00
Jan SkovgaardandGitHub ad29e628d8 Add umb-search-filter component (#8179) 2020-07-23 17:13:26 +02:00
Jan SkovgaardandGitHub b3e5c510a5 Add "umb-button-ellipsis" component (#8132) 2020-07-23 17:05:39 +02:00
Bjarne FyrstenborgandGitHub 5deb71cb4d Replace anchor elements with button element in image/media picker (#8321) 2020-07-23 16:51:01 +02:00
Bjarne FyrstenborgandGitHub 98a429e450 Replace anchor elements with button in member and member groups (#8320) 2020-07-23 16:50:00 +02:00
Bjarne FyrstenborgandGitHub 2023dbcf42 Replace anchor elements with button elements in treepicker (#8319) 2020-07-23 16:45:36 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 81c823803e Replace anchor elements with button elements in public access overlay 2020-07-23 16:44:13 +02:00
Bjarne FyrstenborgandGitHub 0bd9e3ca99 Member type infinite editing (#8027) 2020-07-23 16:42:04 +02:00
Bjarne FyrstenborgandSebastiaan Janssen e02b5a74d7 Replace traditional checkbox with umb-checkbox component. 2020-07-23 16:29:44 +02:00
Bjarne FyrstenborgandGitHub a1465dea75 Grid row configuration delete confirm (#8005) 2020-07-23 16:27:58 +02:00
Bjarne FyrstenborgandGitHub 41d1e33fc4 Add user picker property editor (#7613) 2020-07-23 16:08:24 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 2ca7cc9ccc Get dictionary item by id, guid and udi 2020-07-23 15:55:19 +02:00
Bjarne FyrstenborgandSebastiaan Janssen ca1d749f37 Get template by id, guid and udi 2020-07-23 15:54:08 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 2a4d4c82ff Get relation type by id, guid and udi 2020-07-23 15:52:57 +02:00
Bjarne FyrstenborgandGitHub 20eb8f9567 Access document, media and member types by guid and udi (#7514) 2020-07-23 15:51:53 +02:00
Bjarne FyrstenborgandGitHub 34749ec233 Replace compositions checkboxes (#6956) 2020-07-23 15:47:58 +02:00
Bjarne FyrstenborgandGitHub f50f4baa3a v8: Log viewer datepicker (#5890) 2020-07-23 15:37:01 +02:00
Tom PipeandGitHub dc39faeb5e Allow treepicker configuration to filter on metadata using JSON format (#7511) 2020-07-22 20:55:18 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 4fe5aaf8c4 Update button in package overview not to use flexbox and inner wrapper using flexbox instead 2020-07-22 20:48:40 +02:00
Poornima NayarandSebastiaan Janssen b21f5f59b0 Logging content blueprint save in back office to log table 2020-07-22 20:34:31 +02:00
Poornima NayarandGitHub 4e420c1936 Added GetLog method to LogController (#8188) 2020-07-22 20:33:46 +02:00
MikeandSebastiaan Janssen 259ef3d391 fix: remove auto focus from package search box 2020-07-22 20:32:35 +02:00
Jan SkovgaardandGitHub f7c9d045a3 Random fixes for nested content "add" button (#8205) 2020-07-22 20:27:19 +02:00
Jan SkovgaardandGitHub bced145be6 Improve the accessibility of the cog icon (#8206) 2020-07-22 20:25:57 +02:00
BatJanandSebastiaan Janssen 3441200a7f Convert a to button and fix some texts and make them more specific in a non visual context 2020-07-22 20:22:33 +02:00
Anders BjernerandGitHub 5642e56dd7 umb-notifications.html - added option for setting the target attribute (#8224) 2020-07-22 20:19:15 +02:00
Bjarne FyrstenborgandGitHub 7c982febad Add config to define true and false value (#8229) 2020-07-22 20:13:11 +02:00
Nathan WoulfeandSebastiaan Janssen b0f26dabc5 update date-format matching for formats with am/pm 2020-07-22 20:00:49 +02:00
Markus JohanssonandSebastiaan Janssen bafd058aa8 #8280 Using IOHelper for Log files 2020-07-22 19:57:14 +02:00
Mike ChambersandSebastiaan Janssen ee15c68f04 Update dependencies.js
DevTools failed to load SourceMap: Could not load content for https://localhost:44313/umbraco/lib/angular-aria/angular-aria.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
2020-07-22 19:53:33 +02:00
Bjarne FyrstenborgandGitHub 41a31af993 Media picker folder icon (#8305) 2020-07-22 19:48:55 +02:00
Bjarne FyrstenborgandGitHub 14e92e1583 Remove sorting in grid layout configuration (#8354) 2020-07-22 19:45:22 +02:00
Nathan WoulfeandSebastiaan Janssen 99a3dec4ba emit event when changing variant, quick syntax/style tidyup 2020-07-22 19:37:40 +02:00
Bjarne FyrstenborgandGitHub 0d7c65de3e Grid config allow editors toggle (#8357) 2020-07-22 19:33:38 +02:00
Bjarne FyrstenborgandGitHub 6ed0d03da3 Use ace editor json mode for grid configuration (#8361) 2020-07-22 19:26:24 +02:00
Rachel BreezeandGitHub 0a01601523 v8: Improvements to accessibility of translations section (#8383) 2020-07-22 19:08:18 +02:00
Joshua BrownandGitHub 511a7f1371 Fix for issue #7461 ("Inserting a macro in the rich test editor (RTE) in the Grid makes it disappear on Save & Publish") (#8437) 2020-07-22 19:05:07 +02:00
Bjarne FyrstenborgandGitHub 78c429c4af Streamline umb-checkbox and umb-radiobutton components (#8441) 2020-07-22 18:56:58 +02:00
Bjarne FyrstenborgandGitHub 7b8ef85541 Adjust toggle styling when checked and disabled (#8445) 2020-07-22 18:55:47 +02:00
Callum WhyteandSebastiaan Janssen 869f0e2d11 Improving umb-button link docs 2020-07-22 18:53:41 +02:00
Elitsa Marinovska 717d8e6156 Migrating as many of the templates from Umbraco.Web.UI\Umbraco\PartialViewMacros\Templates 2020-07-21 08:12:29 +02:00
Shannon 639c7a40ee Merge branch 'v8/8.6' into v8/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Runtime/SqlMainDomLock.cs
#	src/Umbraco.Examine/IndexRebuilder.cs
#	src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour.directive.js
#	src/Umbraco.Web.UI.Client/src/common/services/clipboard.service.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
2020-07-20 16:03:10 +10:00
dependabot[bot]andSebastiaan Janssen 888109f69b Bump lodash from 4.17.15 to 4.17.19 in /src/Umbraco.Web.UI.Client
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-16 14:03:15 +02:00
Bjarne FyrstenborgandGitHub 463128734c Sort on y-axis in sort dialog (#8419) 2020-07-14 18:06:30 +02:00
Kenn JacobsenandSebastiaan Janssen 4b9edc63dd Fix folder uploads when existing image names clash with the uploaded folder name 2020-07-14 17:37:34 +02:00
Kenn JacobsenandGitHub 321bb12a83 Show custom label properties on members (#8346) 2020-07-14 17:15:58 +02:00
Elitsa Marinovska fe82179855 Adding ModelsBuilder.Embedded project reference for the Umbraco.Web nuget as the project is now migrated. And including the UmbracoCms.SqlCe.nuspec to the solution file 2020-07-14 16:56:12 +02:00
Bjarne FyrstenborgandGitHub da1a274dbf Grid config row and editor checkboxes (#8363) 2020-07-14 16:49:24 +02:00
Bjarne FyrstenborgandSebastiaan Janssen e66fd7b8e0 Adjust border radius of button in button group if having sub buttons 2020-07-14 16:46:23 +02:00
Bjarne FyrstenborgandGitHub 68ed7c908b Show SVG preview on upload (#8387) 2020-07-14 16:23:34 +02:00
Bjarne FyrstenborgandSebastiaan Janssen f02a16f094 Register dragover state of file upload 2020-07-14 15:55:10 +02:00
hkooikerandGitHub 984214ea7b Member picker value converter (#8401) 2020-07-14 15:47:33 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 2f7cf8cb0f Align group builder property actions to top 2020-07-14 15:16:28 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 0d7741d211 Allow editor info to shrink for longer datatype names 2020-07-14 15:15:37 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 6da85dd47d Remove unnecessary translation to removed variable 2020-07-14 15:04:31 +02:00
Gareth EvansandSebastiaan Janssen 6fc8126076 #8412 Set ng-maxlength and maxlength attributes on the tag input in umb-tags-editor.html to avoid a string or binary data would be truncated error when the entered tag exceeds the database column length 2020-07-14 14:57:44 +02:00
Bjarne FyrstenborgandGitHub e6f264136c Adjust tooltip position inside overlay (#8416) 2020-07-14 14:56:25 +02:00
Bjarne FyrstenborgandGitHub 39da781dac Sort on y-axis in listview config layouts (#8422) 2020-07-14 14:48:29 +02:00
Bjarne FyrstenborgandGitHub c89fa6fe69 Listview columns grouping (#8423) 2020-07-14 14:02:06 +02:00
Bjarne FyrstenborgandGitHub 8c8c26bc9a Adjust target overlay position using hotkey (#8431) 2020-07-14 13:58:57 +02:00
Sebastiaan JanssenandGitHub d347d36861 Don't run CodeQL on PRs for now 2020-07-14 13:48:46 +02:00
Marc GoodsonandGitHub fbd2a30606 Update 'default value' title + description of CheckBox Configuration (#8421) 2020-07-14 13:24:21 +02:00
Marc GoodsonandSebastiaan Janssen 6b5e19fcf2 Add the current culture to the cache key used for the CachedPartial Html Helper
when using variants it's unlikely to need the same Html.Partial to be cached across all language variations, if we always add the current culture name to the cache key, we ensure this doesn't accidentally happen, and when not using variants, no harm to have the culture for the single site included here
2020-07-14 13:22:52 +02:00
Elitsa Marinovska 7983dcb305 Fixing tests and methods after introducing IPublishedSnapshotAccessor service to PublishedModelUtility. Changing accessibility lvls from migrating tests to a different project 2020-07-13 21:52:11 +02:00
Elitsa Marinovska d7b818001e Migrating MB tests and changing required accessibility lvls 2020-07-13 21:49:09 +02:00
Sebastiaan JanssenandGitHub 9f9cd0e11e Trying to get CodeQL to run (#8415) 2020-07-13 17:22:27 +02:00
Elitsa Marinovska 07c0402d2b Injecting IPublishedSnapshotAccessor 2020-07-13 14:39:28 +02:00
Elitsa Marinovska e69c98ea9c Removing redundant cast 2020-07-13 13:53:02 +02:00
Elitsa Marinovska 6797f5af5b Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB7446-ModelsBuilderEmbedded-migration 2020-07-13 13:44:04 +02:00
Elitsa Marinovska c0d266fc92 Migrating project to .net core 2020-07-13 13:38:41 +02:00
Bjarke Berg c697ec065d Added missing file
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-10 21:00:58 +02:00
Emma Garland d3b97ae23c Tour Data progress is not in a cookie - it is stored in the database (what the User has completed so far) in a column in the umbracoUser table.
Since we want to act like the tour has not been run before, at the start and end of each test we need to clean up by resetting the tour data so that the default user in the database hasn't already completed the tour.
I used the similar command style from the umbraco-cypress-testhelpers project - we may want to move this out of the test itself, but I wanted to make sure this approach was right first.
2020-07-10 16:33:45 +01:00
Bjarke Berg 2827868edf Merge remote-tracking branch 'origin/netcore/feature/better-linux-support' into netcore/feature/better-linux-support 2020-07-10 16:22:53 +02:00
Bjarke Berg 03bb780c16 Added missing registration
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-10 14:40:44 +02:00
Bjarke Berg 41ef34547f Reintroduce missing files
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-10 14:32:35 +02:00
Bjarke Berg 5f47e75231 Merge remote-tracking branch 'origin/netcore/feature/fix-integration-tests' into netcore/feature/better-linux-support
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-10 14:15:38 +02:00
Bjarke Berg add44c4139 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/fix-integration-tests 2020-07-10 13:50:44 +02:00
Bjarke BergandGitHub 3daad871ce Merge pull request #8396 from umbraco/netcore/feature/AB4827-sqlce-nuget
NuGet package specifications for SQL CE
2020-07-10 13:49:42 +02:00
Bjarke Berg e0ae0551f8 Moved back invalid templates to legacy UI project
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-10 13:10:56 +02:00
Bjarke BergandGitHub af5b6cf79a Merge pull request #8364 from umbraco/netcore/feature/AB4822-nuget-packages-basis
NetCore: Create new NuGet packages basis
2020-07-10 13:05:07 +02:00
Bjarke Berg 1c38b25cfb fix for csproj file
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-10 13:04:24 +02:00
Bjarke Berg b4bc1f79b5 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB4822-nuget-packages-basis 2020-07-10 13:03:35 +02:00
Bjarke Berg d94ecfe65e Fixes for running using nuget package
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-10 13:00:54 +02:00
Elitsa MarinovskaandGitHub 498f01fa10 Removing duplicated folder reference
which causes the proj to not load in Visual Studio
2020-07-10 11:24:50 +02:00
Sebastiaan JanssenandGitHub 19ec14b53f Create codeql-analysis.yml
First stab at getting CodeQL analysis running
2020-07-10 08:57:41 +02:00
Sebastiaan JanssenandGitHub 889c4b413d Dependabot got very confused, this updates the npm dependency 2020-07-10 08:44:08 +02:00
Bjarke Berg 1625cb323d Moved lang-folder
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-10 06:44:56 +02:00
Bjarke Berg 66a549c89b Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB4822-nuget-packages-basis 2020-07-09 18:03:15 +02:00
Bjarke Berg a2fa6e521d UmbracoCms.nuspec and file copying 2020-07-09 18:02:12 +02:00
Bjarne FyrstenborgandSebastiaan Janssen b6f6b1a438 Use umb-code-snippet component for insert field code snippet 2020-07-09 17:32:16 +02:00
Bjarne FyrstenborgandSebastiaan Janssen b8e23ac56f Use property editor width limit for slider property editor 2020-07-09 17:30:49 +02:00
Bjarne FyrstenborgandSebastiaan Janssen b67d56804c Ensure primary button style for save-button in content template create view 2020-07-09 17:29:02 +02:00
Jan SkovgaardandGitHub fbbfb4f943 Fix checkbox and radio label alignment (#8253) 2020-07-09 17:28:08 +02:00
Dan RussellandSebastiaan Janssen df7f250091 Update umbracoSettings.config
Restored EOF newline
2020-07-09 17:17:42 +02:00
Dan RussellandSebastiaan Janssen d01027be50 Update modals.less
Replaced "0px" with unitless 0
2020-07-09 17:15:12 +02:00
Bjarne FyrstenborgandGitHub b5c099b15a Remove empty strings from repeatable textstrings whitespace (#8269) 2020-07-09 17:14:01 +02:00
Bjarne FyrstenborgandSebastiaan Janssen c019872eb4 Update nouislider dependency to latest version 2020-07-09 17:12:15 +02:00
Bjarne FyrstenborgandGitHub a2430929a5 Fix translations files including icon HTML (#8408) 2020-07-09 17:05:30 +02:00
Bjarne FyrstenborgandGitHub 4bc1800d48 Use overlayService for user overlay (#8047) 2020-07-09 16:58:59 +02:00
Bjarne FyrstenborgandGitHub 7b106ebefb Adjust example for overlay in umb-child-selector (#8045) 2020-07-09 16:48:27 +02:00
Bjarne FyrstenborgandGitHub 327d5ae7fb Adjust nested content overlay (#8044) 2020-07-09 16:04:43 +02:00
Shannon DeminickandGitHub 31a6126a5c Merge pull request #8323 from umbraco/netcore/feature/remaining-backoffice-controllers
Netcore: Migrated remaining backoffice controllers
2020-07-09 21:28:24 +10:00
Bjarke Berg 4f605c71e8 Merge remote-tracking branch 'origin/netcore/feature/fix-integration-tests' into netcore/feature/better-linux-support 2020-07-09 11:09:05 +02:00
Bjarke Berg cc6cc1e314 Merge remote-tracking branch 'origin/netcore/feature/remaining-backoffice-controllers' into netcore/feature/fix-integration-tests 2020-07-09 11:08:26 +02:00
Bjarke Berg 32893d6adb Fix wrong xml doc comment 2020-07-09 11:06:38 +02:00
Bjarke Berg 1f3d2b13d3 Cleanup test by reusing MockedContentTypes 2020-07-09 11:02:28 +02:00
Bjarke Berg 2fa13e010c Added xml doc to AutoMoqDataAttribute 2020-07-09 11:00:29 +02:00
Bjarke Berg 819c1ba7ae Format fix 2020-07-09 10:51:56 +02:00
Shannon DeminickandGitHub 6573099ef5 Merge pull request #8302 from umbraco/netcore/feature/contentcontroller_and_related
Netcore: Content/Media controller + ContentType+MediaType controller
2020-07-09 17:36:39 +10:00
Ismail MayatandGitHub ffb53109bc 8192 with integration test (#8403) 2020-07-09 09:13:05 +02:00
Bjarke BergandGitHub f81a2635d1 Merge pull request #8386 from emmagarland/v8/feature/acceptancetests-cypress-backofficetour
Added initial Cypress test for BackOffice tour.
2020-07-09 07:53:18 +02:00
Bjarke Berg 48c78865ac Merge remote-tracking branch 'origin/netcore/feature/AB4822-nuget-packages-basis' into netcore/feature/better-linux-support 2020-07-08 18:04:01 +02:00
Ismail MayatandGitHub 77a4b2af8b fix for 8192 make call to add missing bits to userdto (#8399) 2020-07-08 14:23:55 +01:00
Bjarke Berg d0ead8454b Removed log file
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-08 11:21:07 +02:00
Bjarke Berg 1dcacda036 Moved umbraco cshtml files into the umbraco folder
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-08 11:18:23 +02:00
Elitsa MarinovskaandGitHub 0c4959fc99 Merge branch 'netcore/feature/AB4822-nuget-packages-basis' into netcore/feature/AB4827-sqlce-nuget 2020-07-08 09:14:28 +02:00
Elitsa Marinovska 6282ac4a5b Merged changes from base branch 2020-07-08 09:07:54 +02:00
Elitsa Marinovska 8c38c22648 Added additional target framework and changed nuget package title 2020-07-08 08:40:55 +02:00
Bjarke Berg 0a088e4ef4 casing changed
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-08 06:48:41 +02:00
Bjarke Berg 8c46eab939 bugfix
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-08 06:45:10 +02:00
Bjarke Berg f7c6d1c68c bugfix
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-08 06:37:14 +02:00
Ronald BarendseandGitHub 872731f726 Update HasValue obsolete message 2020-07-07 23:30:34 +02:00
Bjarke Berg 6bb33c865f Small fixes to build.ps1 and added xml doc generation to projects
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-07 20:40:44 +02:00
Elitsa Marinovska c03bff4399 Nuget package specifications for SQL CE 2020-07-07 16:10:06 +02:00
Bjarke Berg a755dcd53a Merge remote-tracking branch 'origin/netcore/feature/remaining-backoffice-controllers' into netcore/feature/fix-integration-tests 2020-07-07 15:04:20 +02:00
Bjarke Berg 6e5dfbf8da fixed issue with formatting, by changing order of attributes
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-07 15:03:31 +02:00
Bjarke Berg 711e2306e0 Cleanup
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-07 15:02:53 +02:00
Bjarke Berg 351fa02df2 Merge remote-tracking branch 'origin/netcore/feature/fix-integration-tests' into netcore/feature/better-linux-support 2020-07-07 14:10:21 +02:00
Bjarke Berg 254921e24c inserted explicit on failing tests.. Still need to investigate
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-07 14:10:00 +02:00
Bjarke Berg cc4b275c79 Merge remote-tracking branch 'origin/netcore/feature/remaining-backoffice-controllers' into netcore/feature/fix-integration-tests 2020-07-07 14:06:39 +02:00
Bjarke Berg b1fc81b642 Merge fix
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-07 14:06:21 +02:00
Bjarke Berg 2372e5307c Merge remote-tracking branch 'origin/netcore/feature/remaining-backoffice-controllers' into netcore/feature/fix-integration-tests 2020-07-07 14:02:48 +02:00
Bjarke Berg 34979566ea Merge remote-tracking branch 'origin/netcore/feature/contentcontroller_and_related' into netcore/feature/remaining-backoffice-controllers 2020-07-07 14:02:25 +02:00
Bjarke Berg 7a3f658ccc Dispose StreamReaders
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-07 14:00:47 +02:00
Bjarke Berg 0a759553a7 fixed issue with formatting, by changing order of attributes
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-07 13:56:14 +02:00
Bjarke Berg 4993e99f4d Merge remote-tracking branch 'origin/netcore/feature/fix-integration-tests' into netcore/feature/fix-integration-tests 2020-07-07 13:26:31 +02:00
Bjarke Berg a67629e9c0 Merge remote-tracking branch 'origin/netcore/feature/remaining-backoffice-controllers' into netcore/feature/fix-integration-tests 2020-07-07 13:25:58 +02:00
Bjarke Berg f3614d51fa Merge remote-tracking branch 'origin/netcore/feature/contentcontroller_and_related' into netcore/feature/remaining-backoffice-controllers
# Conflicts:
#	src/Umbraco.Web.BackOffice/Filters/UmbracoAuthorizeFilter.cs
2020-07-07 13:17:08 +02:00
Bjarke Berg 2e74a986f3 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/contentcontroller_and_related 2020-07-07 13:15:08 +02:00
Bjarke Berg 84b3bc94b4 Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore 2020-07-07 13:13:51 +02:00
Bjarke Berg 1cca4b50aa Merge remote-tracking branch 'origin/v8/dev' into netcore/dev 2020-07-07 13:08:57 +02:00
Bjarke Berg cc6c6c3d3e Added todo message to PrefixlessBodyModelValidatorAttribute
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-07 12:49:22 +02:00
Bjarke Berg 610bbee245 Added OverrideAuthorizationAttribute
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-07 12:39:24 +02:00
Nathan WoulfeandGitHub d1bc742f9a Update variables.less
Merge pull request #8298 from dangrussell/patch-4
2020-07-07 08:41:30 +10:00
Bjarke Berg 7e90db5b30 Cleanup based on review
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-06 13:01:25 +02:00
Bjarke Berg a9c043c537 Cleanup based on review
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-06 12:58:11 +02:00
Bjarke Berg 8400b53f70 Cleanup based on review
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-06 12:55:23 +02:00
Emma Garland f5e4bef531 Added initial Cypress test for BackOffice tour. 2020-07-06 11:45:47 +01:00
Nathan WoulfeandGitHub 6db0dbe5c9 Merge pull request #8046 from bjarnef/v8/feature/ysod-overlay
Replace ysod umb-overlay using overlayService.ysod
2020-07-06 08:23:21 +10:00
Nathan WoulfeandGitHub db69431894 Merge pull request #7980 from IK1235/v8/contrib
Admin czech translation
2020-07-06 08:20:40 +10:00
Nathan WoulfeandGitHub b281f7f768 Merge pull request #7231 from soreng/patch-6
MEGA CHANGE GETS MEGA MERGE!
2020-07-06 08:16:42 +10:00
Bjarke Berg c49f50e6d4 Clean up
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-04 19:04:04 +02:00
Bjarke Berg 9fbb7c08c6 Small fixes for linux support, made from windows
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-07-04 18:47:06 +02:00
Bjarke Berg 1dc0dc497d added files that are renamed with casing only 2020-07-04 17:39:44 +02:00
Bjarke Berg f85204eaa1 Fixed lot of small issues for linux 2020-07-04 15:07:07 +02:00
ShannonandSebastiaan Janssen b078f856b9 Remove the usage of Parallel to run the populators 2020-07-02 13:44:33 +02:00
Bjarke Berg aac8cd5423 Clean up + migrated AuditServiceTests 2020-07-01 17:42:39 +02:00
Elitsa Marinovska a2c54018a7 modifying CompileUmbraco() and PreparePackages() functions needed before packaging the nuget packages 2020-06-30 23:10:51 +02:00
Elitsa Marinovska 6490d7dc14 Changing nuspec files for .net core projs 2020-06-30 23:07:38 +02:00
Elitsa Marinovska c91281c4b8 NuGet.org had TLS 1.0 and 1.1 disabled - https://devblogs.microsoft.com/nuget/deprecating-tls-1-0-and-1-1-on-nuget-org/.
Therefore we need this line specifying Tls12
2020-06-30 23:02:36 +02:00
Bjarke Berg 7b546e6cee Attempts to fix issue
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-30 20:11:39 +02:00
Bjarke BergandSebastiaan Janssen 402958c591 Updated Cypress to latest + Created tests for creating member and member group 2020-06-30 15:19:54 +02:00
Bjarke Berg 984e660bec Possible fix for test db issue
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-30 13:02:32 +02:00
Bjarke Berg 40470099e9 Possible fix for test db issue
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-30 11:22:44 +02:00
Bjarke Berg 081795c192 Possible fix for test db issue
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-30 10:22:01 +02:00
Bjarke Berg 70544c38ed Cleanup + Ensure temp folder exists when background jobs are started.
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-30 08:14:26 +02:00
Bjarke Berg cbb0d5cb6b Added SQLCe refernece to the netcore project
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-29 14:38:15 +02:00
Bjarke Berg ce4c6f7965 Do not use camelcase as default in AngularJsonMediaTypeFormatter
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-29 14:36:23 +02:00
Bjarke Berg aedac5a2b4 Added test to TemplateQueryController.GetContentTypes to ensure camelcase
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-29 14:22:58 +02:00
Bjarke Berg 0676e9d35f Added unittest of IgnoreRequiredAttributesResolver
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-29 12:35:08 +02:00
Bjarke Berg b9f854afcb Boot netcore on https:localhost:44331
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-29 12:13:53 +02:00
Bjarke Berg 3195287d1c Moved some registrations from Web-Mappings to Core-Mappings
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-29 10:51:53 +02:00
Bjarke Berg 91885e6557 Migrated mapper tests
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-29 10:44:46 +02:00
Bjarke Berg 3522843a0d Fix acceptance tests
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-28 14:31:21 +02:00
Bjarke Berg adb38dceb5 Merge remote-tracking branch 'origin/netcore/feature/contentcontroller_and_related' into netcore/feature/remaining-backoffice-controllers 2020-06-28 14:00:26 +02:00
Bjarke Berg 3d65cb96e1 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/contentcontroller_and_related
# Conflicts:
#	src/Umbraco.Web.BackOffice/Controllers/ContentTypeController.cs
2020-06-28 13:59:33 +02:00
Bjarke Berg 9d639a64b3 Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
Signed-off-by: Bjarke Berg <mail@bergmania.dk>

# Conflicts:
#	src/Umbraco.Core/Templates/IUmbracoComponentRenderer.cs
#	src/Umbraco.Web.BackOffice/Controllers/MacroRenderingController.cs
#	src/Umbraco.Web.UI.NetCore/Umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI.NetCore/Umbraco/config/lang/en_us.xml
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
2020-06-28 13:35:25 +02:00
Bjarke Berg 2ffb01530a Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
Signed-off-by: Bjarke Berg <mail@bergmania.dk>

# Conflicts:
#	src/Umbraco.Core/Models/PublishedContent/IndexedArrayItem.cs
#	src/Umbraco.Infrastructure/Models/Mapping/CommonMapper.cs
#	src/Umbraco.Web.UI/web.Template.Debug.config
#	src/Umbraco.Web/Compose/AuditEventsComponent.cs
#	src/Umbraco.Web/HtmlHelperRenderExtensions.cs
#	src/Umbraco.Web/HtmlStringUtilities.cs
#	src/Umbraco.Web/PublishedContentExtensions.cs
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
2020-06-28 12:48:19 +02:00
Bjarke Berg 6d993eb63b Cleanup
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-26 13:58:15 +02:00
Bjarke Berg 16a2cd1b3f Merge remote-tracking branch 'origin/netcore/feature/remaining-backoffice-controllers' into netcore/feature/remaining-backoffice-controllers 2020-06-26 09:49:18 +02:00
Bjarke Berg 7ef840702f Merge remote-tracking branch 'origin/netcore/feature/contentcontroller_and_related' into netcore/feature/remaining-backoffice-controllers 2020-06-26 09:49:03 +02:00
Bjarke Berg 98e81614d0 Changed check from null only to IsNullOrEmpty to make it safer
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-26 08:21:17 +02:00
Bjarke Berg c369647f10 Made FromJsonPathAttribute public
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-26 08:20:50 +02:00
Bjarke Berg e181c94cf4 Added async version of GetRawBodyString
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-26 08:20:36 +02:00
Bjarke Berg 8a3d104f85 Using constants instead of hardcoded strings
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-26 08:20:19 +02:00
Bjarke Berg 1a05feac02 Clean up 2020-06-25 15:23:11 +02:00
Bjarke Berg e14a81c72d Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore 2020-06-25 11:47:12 +02:00
Bjarke BergandGitHub 76d568de12 Merge pull request #8134 from umbraco/bug/use-sql-main-dom-lock-when-linux
Use sql main dom lock as default if linux
2020-06-25 11:39:33 +02:00
Bjarke BergandGitHub ba38055ee9 Merge branch 'netcore/dev' into bug/use-sql-main-dom-lock-when-linux 2020-06-25 11:39:11 +02:00
Bjarke Berg f9d5acee84 Added test 2020-06-25 11:22:59 +02:00
Bjarke Berg aaccaef6af Started on AutoMoqDataAttribute
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-24 22:00:27 +02:00
Bjarke Berg 540195c597 Cleanup and fixed more tests
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-22 15:01:55 +02:00
Bjarke Berg 0b2230922f revert aspsettings.json
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-22 14:11:34 +02:00
Bjarke Berg 0714fc4734 Migrated some of the UserControllerTests
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-22 14:11:01 +02:00
Bjarke Berg 44497ffdd4 Merge branch 'netcore/feature/contentcontroller_and_related' into netcore/feature/remaining-backoffice-controllers 2020-06-22 10:23:39 +02:00
Bjarke Berg 9e49d266d6 made failing tests explicit for now
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-22 10:22:19 +02:00
Bjarke Berg 1594a84d80 migated remaining backoffice controllers
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-22 10:08:08 +02:00
Bjarke Berg 67b1a8a318 Test remove setup class, as it is potentially running too early
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-19 06:59:20 +02:00
Bjarke Berg 558c0b03ee Migrated MemberController
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-18 21:03:11 +02:00
Bjarke Berg 748d23bf6d Added MemberTypeController
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-18 19:50:42 +02:00
Bjarke Berg 73123704cd Added JsonDateTimeFormatAttribute
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-18 19:40:13 +02:00
Bjarke Berg ae51ea9486 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/contentcontroller_and_related 2020-06-18 14:43:26 +02:00
Bjarke Berg 833ff5ab56 Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore 2020-06-18 14:43:00 +02:00
Bjarke Berg 6d30f31134 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev 2020-06-18 14:41:40 +02:00
Bjarke Berg 27227043ba Added custom (hack) for PrefixlessBodyModelValidatorAttribute. 2020-06-18 14:40:30 +02:00
Bjarke BergandGitHub 76a56b02e9 Merge pull request #8267 from umbraco/netcore/feature/migrate-remaining-trees
Netcore: Migrate trees
2020-06-18 12:44:21 +02:00
Bjarke Berg ce35ccc0e9 Merge remote-tracking branch 'origin/netcore/feature/migrate-remaining-trees' into netcore/feature/contentcontroller_and_related 2020-06-17 18:06:54 +02:00
Bjarke Berg 593acaeab9 Merge remote-tracking branch 'origin/netcore/feature/migrate-remaining-trees' into netcore/feature/migrate-remaining-trees 2020-06-17 18:06:03 +02:00
Bjarke Berg fe7d4ed3e9 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-remaining-trees 2020-06-17 18:05:40 +02:00
Bjarke Berg d5f2d8456a Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/contentcontroller_and_related
# Conflicts:
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeNotificationsController.cs
#	src/Umbraco.Web.BackOffice/Filters/ValidateAngularAntiForgeryTokenAttribute.cs
2020-06-17 17:01:45 +02:00
Bjarke Berg 3a33e7bf29 Migrated ControllerContentTests.. Right now the test fails, but the test is correct
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-17 16:39:28 +02:00
Bjarke BergandGitHub e56f6b71a9 Merge pull request #8286 from AndyButland/feature/netcore-type-filters
NetCore: Updated various type filters to attributes with nested filters.
2020-06-17 14:56:51 +02:00
Dan RussellandGitHub 78cba26afe Update variables.less
Replace "0px" with unitless 0
2020-06-16 10:12:22 -04:00
Bjarke Berg a5f5b1a984 Migrated unit tests for FilterAllowedOutgoingContentAttribute and MediaController
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-15 14:43:11 +02:00
Bjarke Berg a6b23fbfa0 Entity controller migrated
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-15 13:07:49 +02:00
Bjarke Berg cf7ed273d7 Fix import/export
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-15 08:52:03 +02:00
Bjarke Berg 46e5625166 Fix issue with media located in wwwroot
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-15 08:23:25 +02:00
Andy Butland 1cf4374a48 Updated various type filters to attributes with nested filters. 2020-06-13 11:08:59 +02:00
Bjarke Berg 834a8173d0 Migrated Media controller + ContentTypeControllerBase + ContentTypeController, MediaTypeController
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-12 22:13:43 +02:00
Bjarke Berg 52bc003c8e Migrated more stuff for MediaController
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-12 15:58:53 +02:00
Bjarke Berg a4a074e22c More content model binding
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-12 13:35:37 +02:00
Bjarke Berg 989c83b452 Merge remote-tracking branch 'origin/netcore/feature/migrate-remaining-trees' into netcore/feature/contentcontroller_and_related 2020-06-12 10:03:37 +02:00
Bjarke Berg 609c1ffc5b Migrated content controller + related
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-12 08:27:22 +02:00
Bjarke Berg b9da273cbd Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore 2020-06-12 07:13:00 +02:00
Bjarke BergandGitHub 82022240f3 Merge pull request #8277 from electricsheep/feature/netcore-unit-tests
Migrate unit tests to new test project
2020-06-12 06:42:24 +02:00
Ollie Philpott 5d5c7ba95e Move XmlExtensionsTests 2020-06-11 15:13:35 +01:00
Ollie Philpott 7aadae68d8 Move VersionExtensionTests 2020-06-11 14:59:14 +01:00
Ollie Philpott 663adc1db7 Move HexEncoderTests 2020-06-11 14:56:24 +01:00
Ollie Philpott 449bf55060 Move GuidUtilsTests 2020-06-11 14:54:19 +01:00
Ollie Philpott 299a461afb Move EnumExtensionsTests 2020-06-11 14:50:10 +01:00
Ollie Philpott cb3a5d6b97 Move EnumerableExtensionsTests 2020-06-11 14:48:57 +01:00
Ollie Philpott 958b4f431e Move DelegateExtensionsTests 2020-06-11 14:47:08 +01:00
Ollie Philpott 3da8fd4a98 Move AttemptTests 2020-06-11 14:41:48 +01:00
Ollie Philpott 06a1671f95 Move ClaimsIdentityExtensionsTests 2020-06-11 14:39:45 +01:00
Ollie Philpott eabf6f459b Move TestClone class 2020-06-11 14:39:10 +01:00
Bjarke Berg f1257ef717 Inject specific IFileSystem into FilesTreeController 2020-06-11 15:38:12 +02:00
Bjarke Berg e8c0a08ea8 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-remaining-trees 2020-06-11 15:21:51 +02:00
Bjarke Berg 918e7f1be3 Merge branch 'netcore/dev' into netcore/netcore 2020-06-11 15:17:42 +02:00
Bjarke Berg d77c3dc8dd Merge remote-tracking branch 'origin/v8/dev' into netcore/dev 2020-06-11 15:16:39 +02:00
Bjarke BergandGitHub d1e334fe48 Merge pull request #8255 from umbraco/netcore/feature/get-remaining-seconds
Migrate Get remaining seconds functionality
2020-06-11 15:02:23 +02:00
Ollie Philpott 9914d6037e Merge branch 'netcore/dev' of https://github.com/electricsheep/Umbraco-CMS into feature/netcore-unit-tests 2020-06-11 14:01:45 +01:00
Bjarke Berg 0b636bc225 Fix tests 2020-06-11 14:17:12 +02:00
Bjarke Berg 16038e4232 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/get-remaining-seconds 2020-06-11 13:48:20 +02:00
Bjarke Berg c2b2b5010d Review + build fix 2020-06-11 13:04:01 +02:00
Bjarke Berg 925324041c review fixes 2020-06-11 12:41:29 +02:00
Bjarke Berg 27fee12230 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-remaining-trees 2020-06-11 12:40:17 +02:00
Bjarke BergandGitHub a709783168 Merge pull request #8234 from umbraco/netcore/feature/macros
Netcore: Migreate macro related controllers
2020-06-11 12:39:09 +02:00
Bjarke Berg f86d8185bf Clean up and based on review comments 2020-06-11 11:21:07 +02:00
Bjarke Berg 57b8ab201d Clean up and fixed second ctor in PhysicalFileSystem 2020-06-11 11:07:21 +02:00
Bjarke Berg 6440abbda9 Updated BackOfficeServerVariables 2020-06-11 08:00:35 +02:00
Ronald Barendse 249b3b8609 Update XML documentation 2020-06-11 00:49:59 +02:00
Ronald Barendse eac6351c3f Simplified value check using type pattern matching 2020-06-11 00:49:44 +02:00
Ronald Barendse c3e58df3b5 Obsolete HasValue method 2020-06-11 00:45:12 +02:00
Ronald Barendse 1d6849c578 Return null in IsValue for PropertyValueLevel.Inter and Object 2020-06-11 00:38:51 +02:00
Bjarke Berg 6f0c30dc37 Fix tests
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-10 19:57:57 +02:00
Bjarke Berg 05610b56eb Fix tests
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-10 19:45:46 +02:00
Bjarke Berg aa7637129c Fix tests by reintroducing some files in Umbraco.Web
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-10 19:23:56 +02:00
Bjarke Berg 835b04273f Migrated remaining *TreeController's
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-10 19:22:25 +02:00
Bjarke Berg 45dcf62878 remove unused code
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-10 13:58:25 +02:00
Bjarke Berg 6d701f17c3 remove unused code
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-10 13:57:28 +02:00
Bjarke Berg 39b3b7a723 Fix csproj
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-10 13:53:43 +02:00
Bjarke Berg c726054e5d Fix csproj
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-10 13:49:30 +02:00
Bjarke Berg 96fee753b4 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/macros
Signed-off-by: Bjarke Berg <mail@bergmania.dk>

# Conflicts:
#	src/Umbraco.Web.BackOffice/Extensions/UmbracoBackOfficeServiceCollectionExtensions.cs
2020-06-10 12:17:37 +02:00
Bjarke BergandGitHub 1278b53e7f Merge pull request #8225 from umbraco/netcore/feature/websecurity
Migrates more cookie auth and IWebSecurity
2020-06-10 12:01:02 +02:00
Bjarke Berg ece1973949 Merge remote-tracking branch 'origin/netcore/feature/websecurity' into netcore/feature/websecurity 2020-06-10 11:18:07 +02:00
Bjarke Berg 1973dd371a Fix for login doing install
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-10 11:17:55 +02:00
Bjarke Berg 9f17049582 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/websecurity
Signed-off-by: Bjarke Berg <mail@bergmania.dk>

# Conflicts:
#	src/Umbraco.Web/Editors/AuthenticationController.cs
2020-06-10 11:13:32 +02:00
Bjarke Berg 856d954311 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/websecurity
Signed-off-by: Bjarke Berg <mail@bergmania.dk>

# Conflicts:
#	src/Umbraco.Web/Editors/AuthenticationController.cs
2020-06-10 11:11:56 +02:00
Bjarke Berg 9aea7039d2 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/macros
# Conflicts:
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
#	src/Umbraco.Web.Common/Runtime/AspNetCoreComposer.cs
#	src/Umbraco.Web/Editors/BackOfficeServerVariables.cs
2020-06-10 10:55:56 +02:00
Shannon 2b412f337c Fixes issue with growing cookie/identity (we don't want to use Actor), fixes GlobalSettings issue, ensures temp claims are not cloned 2020-06-09 17:40:35 +10:00
Shannon 246e28d147 Implements PostLogout and ensures all appropriate cookies are cleared on logout along with ensuring that the ticket is renewed each user seconds request if configured to stay logged in. 2020-06-09 14:36:36 +10:00
Shannon 9b991f3882 Fixes back office check, adds more tests, changes area to be a constant 2020-06-09 13:01:05 +10:00
Shannon ed2aba49d6 fix build, adds tests 2020-06-09 12:35:31 +10:00
Shannon 433a7c8908 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/get-remaining-seconds
# Conflicts:
#	src/Umbraco.Web/Editors/AuthenticationController.cs
2020-06-09 10:41:57 +10:00
Bjarke BergandGitHub 57a087861c Merge pull request #8242 from AndyButland/feature/netcore-trees
Netcore: Migrated some tree related classes
2020-06-08 15:19:04 +02:00
Bjarke Berg c35d2c0793 Migrated section controller + LanguageTreeController, ApplciationTreeController.
Updated AngularJsonOnlyConfigurationAttribute to be a TypeFilterAttribute, to allow injeciton into the filter.

Fixed test
2020-06-08 14:07:36 +02:00
Bjarke Berg af382e5e71 Migrated section controller + LanguageTreeController, ApplciationTreeController.
Updated AngularJsonOnlyConfigurationAttribute to be a TypeFilterAttribute, to allow injeciton into the filter.

Note: Left TODO about checking authorization of proxied trees..
2020-06-08 13:14:23 +02:00
Bjarke Berg 01433ee190 Removed views from csproj file 2020-06-08 09:02:27 +02:00
Bjarke Berg b5f0a7348d Avoid using Current.IOHelper 2020-06-08 08:51:50 +02:00
Andy Butland 458de2b0be Migrated tree related classes to .NET core 2020-06-07 09:34:32 +02:00
Bjarke Berg 8694498583 Fix for model in templates 2020-06-05 13:31:08 +02:00
Bjarke Berg 39ace69879 Added runtime compilation of views 2020-06-05 12:50:26 +02:00
Bjarke Berg 1029f4fe0b Fix for filesystems. Now rooted at the content root and not the www root 2020-06-05 11:36:59 +02:00
Bjarke Berg 354225452a Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore 2020-06-05 08:14:23 +02:00
Bjarke Berg 58d7fc1817 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/gulp/tasks/watchTask.js
2020-06-05 08:05:50 +02:00
Bjarke BergandGitHub 1231ef78db Merge pull request #8230 from umbraco/netcore/feature/AB6961-IWebSecurity-injection
Netcore: Removing UmbracoContext.Security usages
2020-06-05 07:47:19 +02:00
Bjarke Berg 10fe1ec47b Fixed tests by registering IWebSecurity in the container in the base test class 2020-06-05 07:17:19 +02:00
Bjarke Berg 6a560d6340 Fixed tests 2020-06-05 06:36:42 +02:00
Bjarke Berg 1d543d1dfd Migrated MacroRenderingController + Related UmbracoComponentRenderer => TemplateRenderer + ParitalViewMacroEngine 2020-06-05 06:31:42 +02:00
Bjarke Berg 772041bb8f Migrated MacrosController.cs 2020-06-05 06:17:54 +02:00
Elitsa Marinovska 582903b597 Null check 2020-06-04 15:16:34 +02:00
Elitsa Marinovska 7b93130690 Changing to the specific property 2020-06-04 13:55:48 +02:00
Elitsa Marinovska 68488eb5a7 Another round of injecting webSecurity directly 2020-06-04 13:55:07 +02:00
Elitsa Marinovska 42fba97af9 Removing the need of requesting umbracoContext to get the web security service 2020-06-04 13:53:06 +02:00
Elitsa Marinovska e32d5bb9b9 Injecting IWebSecurity directly instead of getting it through UmbracoContext.Security 2020-06-04 13:40:33 +02:00
Bjarke Berg c363b5a5c2 Added migrated controllers to BackOfficeServerVariables 2020-06-03 19:52:43 +02:00
b2b0291386 Netcore: Migration of more controllers (#8220)
* https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Migrated DictionaryController, TinyMceController and UpdateCheckController

* Removing connection string and changing to use the right variable

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2020-06-03 17:17:30 +02:00
Bjarke Berg d682bc9903 Uncommented test of code moved to .NET Core 2020-06-03 13:33:05 +02:00
Shannon b421cc67f4 moves test 2020-06-03 18:25:54 +10:00
Shannon 0d0b3324fb Merge branch 'netcore/feature/websecurity' into netcore/feature/get-remaining-seconds 2020-06-03 18:11:59 +10:00
Shannon 4ca87d8923 Merge branch 'netcore/feature/websecurity' of https://github.com/umbraco/Umbraco-CMS into netcore/feature/websecurity 2020-06-03 18:10:54 +10:00
Shannon 846432111d fixes tests 2020-06-03 18:10:35 +10:00
Shannon 6004a0fb44 wip starts migrating get remaining seconds, removes a bunch of code from netframework thats already been moved. 2020-06-03 17:47:32 +10:00
Bjarke Berg 396d7e9b31 Updateded the ValidateAngularAntiForgeryTokenAttribute to use the IBackOfficeAntiforgery instead of default IAntiforgery 2020-06-03 09:09:25 +02:00
Shannon d024443b23 Converts FromClaimsIdentity to a bool method 2020-06-03 15:00:39 +10:00
Shannon bba0eceac0 removes notes 2020-06-03 14:30:55 +10:00
Shannon 7ac01fc02f Merge branch 'netcore/netcore' into netcore/feature/websecurity
# Conflicts:
#	src/Umbraco.Web.BackOffice/Filters/OnlyLocalRequestsAttribute.cs
2020-06-03 13:26:40 +10:00
Shannon DeminickandGitHub a7a463c7d4 Merge pull request #8183 from umbraco/netcore/feature/identity
Back office identity changes and cookie authentication
2020-06-03 12:55:57 +10:00
Shannon c6481bdabb Migrates another methods of authentication controller over along with calculating the ticket's remaining seconds 2020-06-03 12:47:40 +10:00
Shannon 6c59f26c83 Ensures the required ajax headers are sent up in the back office, adds notes. 2020-06-03 11:20:53 +10:00
Shannon e70d98d3d5 Merge branch 'netcore/feature/identity' into netcore/feature/websecurity 2020-06-03 10:53:09 +10:00
Shannon 95ed6d01a2 removes uneeded file 2020-06-03 10:52:11 +10:00
Shannon d1a95b2498 adds notes 2020-06-03 10:29:10 +10:00
Shannon 670d62a2dc Gets cookie authentication actually working along with session validation 2020-06-02 17:48:08 +10:00
Shannon 22c842f2e5 fixes service registration 2020-06-02 14:51:27 +10:00
Shannon 4afaade436 Gets WebSecurity implemented 2020-06-02 14:46:58 +10:00
Shannon ea58dce644 implements logic to log the user in on install 2020-06-02 13:47:58 +10:00
Shannon b75fba71f5 Cleaning up websecurity and implementing it, migrates security stamp and session id validation for cookie auth 2020-06-02 13:28:30 +10:00
Shannon d85fc0d353 fixes last tests 2020-06-01 18:15:57 +10:00
Shannon 3ead22a46a fixes remaining tests and updates views 2020-06-01 17:07:19 +10:00
Shannon 39eebe82cd set the response correctly 2020-06-01 16:42:44 +10:00
Shannon 914e261d86 fix ContentSaveValidationAttribute which does not actually do the permissions check 2020-06-01 16:40:34 +10:00
Shannon f92f34934f fix remaining tests 2020-06-01 16:40:04 +10:00
Shannon 793bbbab5b Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/identity-temp 2020-06-01 15:51:56 +10:00
Shannon 1d11b78c32 fixing tests 2020-06-01 15:42:57 +10:00
Bjarke Berg 58c70c3a90 Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
# Conflicts:
#	src/Umbraco.Web.UI.NetCore/Umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI.NetCore/Umbraco/config/lang/en_us.xml
2020-05-29 13:02:27 +02:00
Bjarke Berg dca04b3dd7 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
#	src/Umbraco.PublishedCache.NuCache/PublishedSnapshotService.cs
#	src/Umbraco.Web.UI.Client/src/views/users/user.controller.js
#	src/Umbraco.Web/Models/Trees/MenuItemList.cs
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
#	src/Umbraco.Web/Trees/RelationTypeTreeController.cs
#	src/Umbraco.Web/UmbracoApplication.cs
2020-05-29 12:59:42 +02:00
Bjarke BergandGitHub 441b83dae8 Merge pull request #8184 from umbraco/netcore/feature/move-more-controllers
Netcore: Move more controllers
2020-05-29 09:10:32 +02:00
Bjarke Berg 95e2262eb1 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Bugfix for ModelState.AddValidationError. Now using correct extension method 2020-05-29 08:29:39 +02:00
Bjarke Berg 878e5056b5 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Cleanup when using typefilters 2020-05-29 08:05:45 +02:00
Shannon 90e6dc0ad0 Merge branch 'netcore/feature/identity-temp' into netcore/feature/identity 2020-05-29 15:25:00 +10:00
Bjarke Berg a7a9b8204e https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Build fix 2020-05-28 20:01:18 +02:00
Shannon be84969ad7 removes comments/notes 2020-05-28 23:35:09 +10:00
Shannon a9bf0572eb remove unneeded file 2020-05-28 23:31:48 +10:00
Shannon 0ed9d1bd91 renames to LegacyPasswordSecurity 2020-05-28 23:24:32 +10:00
Bjarke Berg c3606b31ce https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Clean up and fixed issue with Ambiguous actions 2020-05-28 15:20:02 +02:00
Shannon c1e891400d adds antiforgery tests 2020-05-28 23:19:31 +10:00
Shannon b456ed08f1 Fixes tests 2020-05-28 18:45:52 +10:00
Shannon 9904dc6cc2 Merge commit '6dcaa986cda8c8bbca06df8030299d5901d31ceb' into netcore/feature/identity-temp 2020-05-28 17:29:35 +10:00
Bjarke Berg 1034e980b5 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved TemplateController 2020-05-28 07:59:36 +02:00
Bjarke Berg 956252f82d https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved StylesheetController 2020-05-28 07:50:56 +02:00
Bjarke Berg 49923cef5e https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved RelationTypeController 2020-05-28 07:28:46 +02:00
Bjarke Berg b67bff94a5 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved RelationController 2020-05-28 07:20:06 +02:00
Bjarke Berg 0dbf182d97 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved PublishedStatusController amd RedirectUrlManagementController 2020-05-28 07:19:45 +02:00
Bjarke Berg 00b7c2d13b https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved PublishedSnapshotCacheStatusController 2020-05-27 14:14:32 +02:00
Bjarke Berg 0108db553c https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Removed OnlyLocalRequestsAttribute from Umbraco.Web 2020-05-27 13:31:18 +02:00
Bjarke Berg 3e238e92da Merge remote-tracking branch 'origin/netcore/feature/move-more-controllers' into netcore/feature/move-more-controllers
# Conflicts:
#	src/Umbraco.Web/Editors/BackOfficeServerVariables.cs
2020-05-27 12:39:29 +02:00
Bjarke Berg bfff08e98e https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Build fix 2020-05-27 12:38:53 +02:00
Bjarke Berg 10e66f04f2 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved PackageInstallController + Handled the fileupload in a new (aspnet core) way. So no need to clean up from a temp location anymore as we read from the stream. 2020-05-27 12:17:46 +02:00
Shannon f323c67dff remove note 2020-05-27 18:51:47 +10:00
Shannon 1cfc490751 More signinmanager, signin now works and we set the user principal in the correct place on login 2020-05-27 18:27:49 +10:00
Bjarke Berg 31dc9b079b https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved PackageController and added VersionConverter on AngularJsonMediaTypeFormatter, instead of having single attribute only used for PackageController 2020-05-27 08:30:00 +02:00
Bjarke Berg 8de3551166 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved KeepAliveController to backoffice url 2020-05-27 08:19:48 +02:00
Shannon e47f81efdc Gettting password formats and hashing sorted, ensuring the password format on the user is used 2020-05-27 13:48:26 +10:00
Shannon ac57aeb066 clean up antiforgery 2020-05-27 11:28:25 +10:00
Shannon ef02571c8d changes port number/non ssl 2020-05-27 10:27:41 +10:00
Bjarke Berg 99c2fd7f81 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - LogViewerController 2020-05-26 19:26:10 +02:00
Bjarke Berg 8d39de55cd https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - LogController 2020-05-26 19:01:37 +02:00
Bjarke Berg 0bc7e88757 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Migrated KeepAliveController and LanguageController 2020-05-26 18:50:32 +02:00
Bjarke Berg 71a8cb6d35 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Migrated DataTypeController + Fixed injection of services to UmbracoApplicationAuthorizeAttribute 2020-05-26 14:42:19 +02:00
Shannon 6a4c277fdc gets anti-forgery working (needs more testing) 2020-05-26 22:21:22 +10:00
Bjarke Berg e879c5c7d9 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Migrated CodeFileController 2020-05-26 13:08:20 +02:00
Shannon 7f47540341 ensure bg image is set in config so it shows up 2020-05-26 18:21:00 +10:00
Shannon 3c23561f00 moves image files to where they're supposed to be 2020-05-26 18:20:34 +10:00
Shannon d726ca4e36 fixes build, introduce more back office server vars 2020-05-26 17:42:51 +10:00
Shannon eedef91749 commits sln file that keeps changing because of acceptance tests 2020-05-26 17:42:31 +10:00
Shannon ab6a967a4e Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/identity
# Conflicts:
#	src/Umbraco.Infrastructure/Composing/CompositionExtensions/CoreMappingProfiles.cs
2020-05-26 17:37:07 +10:00
Shannon DeminickandGitHub dc6113ffdb Merge pull request #8168 from umbraco/netcore/feature/move-more-controllers
Netcore: Move/Migrate more controllers
2020-05-26 17:14:21 +10:00
Shannon 9dcad544a9 Implements more BackOfficeController and AuthenticationController, some web security and more, gets the back office UI almost rendering 2020-05-25 23:15:32 +10:00
Bjarke Berg 2c2d70c500 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved controllers: HealthCheckController + All localization files + fixed issues with MapPath from wwwroot to content root 2020-05-25 14:50:51 +02:00
Bjarke Berg ee3615e36d https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Moved controllers: TagsDataController, RteEmbedController, RichTextPreValueController, NestedContentController, WebProfilingController + Moved compose of MapDefinitionCollectionBuilder into core, and uncommented missing map definitions 2020-05-25 13:41:05 +02:00
Shannon 0730867d74 Gets default.cshtml rendering what should work, had to update quite a few things to get to this point, now need to figure out why it doesn't start booting angular. 2020-05-25 19:37:16 +10:00
Bjarke Berg e4c8e2009c Moved BackOfficeNotificationsController to netcore 2020-05-22 07:26:46 +02:00
Shannon d89337e3d5 Cleans up IdentityAuditEventArgs and handling of the current user since we cannot resolve it from the thread. 2020-05-21 16:33:24 +10:00
Shannon cf58782093 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/identity
# Conflicts:
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
#	src/Umbraco.Web/Editors/BackOfficeController.cs
2020-05-21 15:46:43 +10:00
Shannon f47ceb8bbe Implements more of identity and makes it more specific to the back office (less intrusive), starts adding cookie auth 2020-05-21 15:43:33 +10:00
Shannon DeminickandGitHub b5df81fca2 Merge pull request #8135 from umbraco/netcore/feature/AB6586-migrate_controllers
Netcore: Migrate Controllers
2020-05-21 15:00:54 +10:00
Bjarke Berg 28c4f87236 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - Migrated ImageUrlGeneratorController + Made usage some strings into the enums in the ImageUrlGenerationOptions 2020-05-20 17:39:07 +02:00
Bjarke Berg 0d65fccd52 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - Migrated ImagesController 2020-05-20 13:51:21 +02:00
Bjarke Berg a94af8db03 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - Migrated HelpController 2020-05-20 13:35:55 +02:00
Bjarke Berg ea300f61ce Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB6586-migrate_controllers 2020-05-20 13:30:02 +02:00
Bjarke Berg aa63ce5ed9 Merge branch 'netcore/dev' into netcore/netcore
# Conflicts:
#	src/Umbraco.Tests/Web/Controllers/AuthenticationControllerTests.cs
#	src/Umbraco.Tests/Web/Controllers/UsersControllerTests.cs
#	src/Umbraco.Web.UI.NetCore/appsettings.json
#	src/Umbraco.Web/Editors/AuthenticationController.cs
#	src/Umbraco.Web/Editors/UsersController.cs
2020-05-20 12:43:13 +02:00
Bjarke Berg 490ae37b28 #8142 - Added smtp authentication if username or password provided 2020-05-20 12:38:21 +02:00
Bjarke BergandGitHub a120b9cffb Merge pull request #8142 from umbraco/netcore/feature/AB6507-reimplement-email-service
Netcore: Re-implementing Email Service
2020-05-20 12:29:21 +02:00
Bjarke Berg 2b4dfbca9d #8142 - Small cleanup, and bugfix 2020-05-20 11:42:23 +02:00
Bjarke Berg 1c220b4925 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - Removed uncommented code, that was removed due to the container needs only a single valid constructor 2020-05-20 08:44:02 +02:00
Shannon 558bde8596 Migrates back office variables and a couple methods for the BackOfficeController 2020-05-20 16:43:06 +10:00
Bjarke Berg a8f5d21eeb https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - removed old OutgoingEditorModelEventAttribute and EditorModelEventManager 2020-05-20 08:39:27 +02:00
Bjarke Berg ca399c7e89 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - removed old tourcontroller 2020-05-20 08:33:00 +02:00
Shannon 9818b4a14b Moves what is possible for identity back office to Core, configures backoffice identity with IOptions and our password settings 2020-05-20 15:25:42 +10:00
Shannon 4e62573fce Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/identity 2020-05-20 15:09:40 +10:00
Shannon 057aa9bc66 Move more models: template, macro, ObjectTypes 2020-05-20 12:10:17 +10:00
Shannon 8134a35fe0 Moves ContentType, MemberType, MediaType, etc... less casting, less internals 2020-05-20 11:59:41 +10:00
Shannon d444dfd441 Moves ContentTypeBase, Member, ContentTypeComposition, etc... removes the casting 2020-05-20 11:33:10 +10:00
Shannon 9e8bfd039e Ensures the correct version of Microsoft.AspNet.Identity.Core is used consistently, moves Media 2020-05-20 11:01:45 +10:00
Shannon 82ebda256b Fixes merge issues with Umbraco.Web.UI and ensures we are using a consistent version of System.ComponentModel.Annotations 2020-05-20 10:59:09 +10:00
Shannon 3f67e1be7d Move Content, Property, PropertyCollection, PropertyType 2020-05-20 10:50:37 +10:00
Shannon 7bea165597 Moves UserGroup and UserGroupExtensions to core 2020-05-20 10:37:11 +10:00
Shannon 86f60677a1 moves UserExtensions and ContentPermissionsHelper 2020-05-20 10:29:53 +10:00
Shannon 96e006e8b9 Moves user to Core models and removes backwards compat hacks and casting 2020-05-20 10:22:48 +10:00
Shannon 4b5777a747 adds code docs to ext methods 2020-05-20 09:58:05 +10:00
Shannon DeminickandGitHub 6381907134 Merge pull request #8129 from scottbrady91/netcore/feature/aspnetcoreidentity
Added ASP.NET Core Identity to Umbraco.Web.UI.NetCore
2020-05-20 09:54:21 +10:00
Elitsa Marinovska 65fa1efc9c Changing a var name for better reflection on the origin of its value 2020-05-20 00:54:28 +02:00
Elitsa Marinovska 16d805e6f5 Adding Smtp section in appsettings, registering IEmailSender as an email service and ofc the MailKit nuget in Infrastructure proj 2020-05-20 00:24:55 +02:00
Elitsa Marinovska ad31db9f4a Adding DeliveryMethod option which we make use of in EmailSender.cs 2020-05-20 00:21:45 +02:00
Elitsa Marinovska e85ccb0dab Removing TODOs with the actual implementation 2020-05-20 00:20:25 +02:00
Elitsa Marinovska ea380985db Moving files using MailKit nuget package (Smtp successor) as SmtpClient has been marked as obsolete by Microsoft 2020-05-20 00:19:43 +02:00
Bjarke Berg bff9477c31 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - Migrated ExamineManagementController 2020-05-19 14:02:12 +02:00
Scott Brady 6dcaa986cd Removed unnecessary TODO and code duplication 2020-05-19 12:18:47 +01:00
Bjarke Berg 35680bba46 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - Migrated DashboardController and BackOfficeAssetsController 2020-05-19 09:52:58 +02:00
Mikulas Tomanka df2d1fb4da use sql main dom lock when linux and ignore config setting 2020-05-19 09:45:31 +02:00
Bjarke BergandGitHub e7354c9b45 Merge pull request #8124 from umbraco/netcore/feature/boot-failed-exception
boot failed exception handling
2020-05-19 07:50:06 +02:00
Shannon 95d695594a Ensure we capture boot failed exception earlier and ensure that composers registered to run on boot failed are executed 2020-05-19 14:51:05 +10:00
Bjarke Berg 4ca6868553 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - Migrated TourController 2020-05-18 15:19:52 +02:00
Scott Brady a44dde9432 Added IdentityExtensions 2020-05-18 13:00:32 +01:00
Scott Brady 091712e5de Merge remote-tracking branch 'Umbraco/netcore/netcore' into netcore/feature/aspnetcoreidentity 2020-05-18 12:52:03 +01:00
Scott Brady 6f75fe6cc4 Reintroduced missing OWIN user manager functionality 2020-05-18 12:51:24 +01:00
Scott Brady 7b1ce5bbe7 Removed duplication with user store and manager 2020-05-18 12:06:26 +01:00
Bjarke Berg 52035c043d https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - Migrated UmbracoWebApiRequireHttpsFilter 2020-05-18 12:40:01 +02:00
Bjarke Berg 0cfd40747c Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB6586-backofficecontroller 2020-05-18 12:01:48 +02:00
Bjarke Berg 287f379c1b Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore 2020-05-18 12:01:18 +02:00
Bjarke BergandGitHub a198d4a37c Merge pull request #8122 from AndyButland/feature/7799-netcore-web-api-component-migration
Netcore: Implemented various Web API components
2020-05-18 12:00:07 +02:00
Bjarke Berg 5e131ebafb Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
# Conflicts:
#	src/Umbraco.Web.UI.Client/package-lock.json
#	src/Umbraco.Web.UI.NetCore/Startup.cs
2020-05-18 11:51:55 +02:00
Bjarke Berg cda531e34e Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	.gitignore
#	src/Umbraco.Web/Editors/ContentController.cs
2020-05-18 10:37:28 +02:00
Andy Butland 0e4d8506fb Updated following PR review. 2020-05-18 09:36:56 +02:00
Scott Brady c92c633edb Reduced duplicated code 2020-05-18 08:21:34 +01:00
Shannon 06ce62d922 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/boot-failed-exception 2020-05-18 16:20:25 +10:00
Shannon DeminickandGitHub c36c2f6a33 Merge pull request #8099 from umbraco/netcore/feature/auto-routing
Netcore/feature/auto routing
2020-05-18 16:19:18 +10:00
Shannon 1cf8fb376c Merge branch 'netcore/feature/auto-routing' of https://github.com/umbraco/Umbraco-CMS into netcore/feature/auto-routing 2020-05-18 15:35:34 +10:00
Shannon a84bcdd6ae fix ctor, fix usages of GetBackOfficeUrl 2020-05-18 15:35:20 +10:00
Shannon 027b449cb6 fixes virtual path 2020-05-18 15:16:09 +10:00
074a174139 Update src/Umbraco.Web.Common/Extensions/LinkGeneratorExtensions.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2020-05-18 15:15:53 +10:00
5dc0dfb5ad Update src/Umbraco.Web.Common/Extensions/LinkGeneratorExtensions.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2020-05-18 15:12:30 +10:00
Shannon 0973e49fcf removes test controller 2020-05-18 15:12:07 +10:00
Bjarke Berg 1f51d667e9 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6586 - Migrated UmbracoWebApiRequireHttpsFilter 2020-05-18 06:43:33 +02:00
Scott Brady c6210ba7f2 Working installation. Use of Thread.CurrentPrincipal removed for now 2020-05-17 10:39:30 +01:00
Scott Brady d12c6ddf62 Cleanup 2020-05-17 08:59:40 +01:00
Scott Brady 4627627350 Moved .NET standard back office identity code into infrastructure (lowest common dependency) 2020-05-17 08:48:36 +01:00
Scott Brady 8317518b4c Resolvable user manager. Removed password configuration and generation for now 2020-05-17 07:56:59 +01:00
Andy Butland ed8f65b74e Migrated AppendUserModifiedHeaderAttribute into netcore 2020-05-17 08:52:28 +02:00
Andy Butland 60c5c15fdf Migrated ValidationFilterAttribute into netcore 2020-05-16 19:35:45 +02:00
Andy Butland b2e12f400c Migrated OnlyLocalRequestsAttribute into netcore 2020-05-16 19:17:08 +02:00
Andy Butland c681b4a835 Migrated HttpQueryStringModelBinder into netcore. 2020-05-16 09:41:54 +02:00
Scott Brady e872ba1a64 Resolvable user store 2020-05-15 16:52:51 +01:00
Scott Brady c9f9706523 Initial DI attempt 2020-05-15 15:21:15 +01:00
Scott Brady 6a801a3542 Merge remote-tracking branch 'Umbraco/netcore/netcore' into netcore/feature/aspnetcoreidentity 2020-05-15 14:42:46 +01:00
Bjarke Berg dd986d4f73 Post merge + fix in views 2020-05-15 14:22:10 +02:00
Bjarke Berg 515d43e11b Merge branch 'netcore/netcore' into netcore/feature/auto-routing
# Conflicts:
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
2020-05-15 14:10:03 +02:00
Bjarke BergandGitHub 5c1bacd944 Merge pull request #8080 from AndyButland/feature/7991-netcore-content-model-binder
Netcore: Implemented content model binder.
2020-05-15 13:34:15 +02:00
Bjarke BergandGitHub 7532453dc5 Merge pull request #8093 from umbraco/netcore/feature/AB6455-migrate-surfacecontroller
Netcore: Migration of SurfaceController
2020-05-15 13:33:00 +02:00
Bjarke Berg 87a26f7b6f AB6455 - Cleanup and added TODO to ensure we get this tested 2020-05-15 12:24:37 +02:00
Andy Butland 8ae0e12512 Removed global setting of content model binder and used encoded URL in model binding exception filter redirect. 2020-05-15 10:33:09 +02:00
Bjarke Berg c7a9f56295 AB6455 - Moved SurfaceControllerTests to unit tests 2020-05-15 10:05:29 +02:00
Scott Brady 2c78f2f1d7 More migration of back office identity. Blocked by password validator 2020-05-14 22:21:19 +01:00
Shannon 3d9603e669 Migrates more logic from the umb module over to netcore 2020-05-14 22:50:27 +10:00
Shannon 88f6d09ef9 Enables the boot failed exception logic 2020-05-14 22:14:00 +10:00
Shannon 3ebf8a969c naming 2020-05-14 21:20:06 +10:00
Shannon dced6dc791 2 diff areas for the back office so views can be stored in a nice place, updates tests to verify controllers are attributed with correct areas 2020-05-14 21:12:41 +10:00
Shannon ac6f691208 Adds tests for all routes and fixes up some of the issues 2020-05-14 20:59:29 +10:00
Shannon 18a1a72349 writes tests for endpoint routes 2020-05-14 18:08:59 +10:00
Shannon e3591923c3 Gets auto-routing back office api controllers working, lots of notes 2020-05-14 17:04:16 +10:00
Shannon 64b78676da fix namespace 2020-05-14 14:47:59 +10:00
Scott Brady 332946dbd8 Duplicated user store across to Umbraco.Web.BackOffice 2020-05-13 18:30:57 +01:00
Shannon 3bacba3ecd Streamlines, simplifies and makes all routing consistent, fixes catch all route by installer 2020-05-13 17:14:09 +10:00
Shannon 768d95588f Moves the PreviewController to netcore, ports the UmbracoAuthorizeAttribute to netcore, routes the minimal back office controllers and dynamically routes based on runtime. 2020-05-13 16:09:54 +10:00
Shannon 4d6df1405f Moves routing into IAreaRoutes, ensures back office is redirected if installed 2020-05-13 14:49:00 +10:00
Bjarke Berg 317edabf02 AB6455 - Fix issue with ITempDataDictionary 2020-05-12 21:04:55 +02:00
Bjarke Berg cd48adc7af AB6455 - Stub'ed WebSecurity, cleanup and fix issue with content root vs web root 2020-05-12 20:28:40 +02:00
Bjarke Berg f586883da1 AB6455 Fix issue with ITempDataDictionary 2020-05-12 19:58:51 +02:00
Bjarke Berg d3b15c4a41 AB6455 Fix missing umbracoContextAccessor in ctors 2020-05-12 19:12:57 +02:00
Elitsa Marinovska 86cef94566 Re-implementing SurfaceControllerTests 2020-05-12 16:11:11 +02:00
Elitsa Marinovska 6ddb103782 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB6455-migrate-surfacecontroller 2020-05-12 13:43:22 +02:00
Bjarke BergandGitHub 2e51b11f7c Merge pull request #8095 from umbraco/netcore/feature/redirect-installer
Redirect to installer and ext method/startup cleanup
2020-05-12 10:58:49 +02:00
Bjarke Berg cfcdcae64a Cleanup and fixed issue with permanent redirect 2020-05-12 10:51:59 +02:00
Shannon 54769e2416 doh fix build 2020-05-12 17:25:30 +10:00
Shannon 42c347dc21 doh fix build 2020-05-12 17:19:19 +10:00
Shannon 1607045347 fix namespace 2020-05-12 17:16:42 +10:00
Shannon a34d94845c Fixes tests 2020-05-12 17:14:39 +10:00
Shannon f427059d41 Fixes routing for installer to use an area, fixes URL generation 2020-05-12 17:10:02 +10:00
Elitsa Marinovska cbf7f5ccc3 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB6455-migrate-surfacecontroller 2020-05-12 08:29:39 +02:00
Elitsa Marinovska 95dd55506a Merge remote-tracking branch 'origin/netcore/feature/AB6352-migrate-action-results' into netcore/feature/AB6455-migrate-surfacecontroller 2020-05-12 08:17:02 +02:00
Elitsa Marinovska 3672e61104 Resolving service dependency 2020-05-12 08:10:32 +02:00
Shannon 8a7bc5d3d2 Removes null writer 2020-05-12 15:45:59 +10:00
Shannon 4464980b4a Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/redirect-installer 2020-05-12 15:44:56 +10:00
Shannon 1f25e28e08 Move install ext methods to it's own class, adds catch all redirect when we need to install 2020-05-12 15:44:14 +10:00
Bjarke BergandGitHub 9e6ed6fb6f Merge pull request #8094 from umbraco/netcore/feature/mvc-application-model
Don't modify global MVC options (and more)
2020-05-12 07:38:19 +02:00
Elitsa Marinovska 33768e3806 Adding missing import 2020-05-12 07:26:03 +02:00
Shannon bcaede22f1 Cleans up ext methods and where they are located and what they call to ensure dependencies are taken care of, cleans up Startup, moves routing appropriately 2020-05-12 15:18:55 +10:00
Shannon 4107ccdb12 cleanup unneeded code , adds notes 2020-05-12 14:20:43 +10:00
Shannon 3add4746fe Gets body model binders working per controller and figures out how the application model works 2020-05-12 12:29:03 +10:00
Shannon 39fed867c1 Cleans up some routing, mvc base classes, gets controller specific model binding working, applies our own application model to our controllers 2020-05-12 10:21:40 +10:00
Elitsa MarinovskaandGitHub 8b047b55a0 Uncommenting testing implementation 2020-05-11 21:24:21 +02:00
Elitsa Marinovska 0eefbfd449 Migrating SurfaceController 2020-05-11 20:29:38 +02:00
Elitsa Marinovska 87ce202a1e Marking actions in old BackOfficeController as migrated. Updating the netcore BackOfficeController after merge 2020-05-11 17:05:57 +02:00
Elitsa Marinovska 412067e11f Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB6455-migrate-surfacecontroller
# Conflicts:
#	src/Umbraco.Web.UI.NetCore/Startup.cs
2020-05-11 16:50:36 +02:00
Elitsa Marinovska 0e47718d0c Migrating 2 actions in relation to testing JsonNetResult action result 2020-05-11 16:44:08 +02:00
Elitsa Marinovska d33aa6cdf5 Updating the way we get UmbracoContext in RedirectToUmbracoPageResult.cs; removing the flushing in JsonNetResult.cs and adding necessary configuration for allowing sync operations needed in JsonNetResult.cs 2020-05-11 16:23:33 +02:00
Elitsa Marinovska 00f4899d94 Merge branch 'netcore/dev' into netcore/feature/AB6352-migrate-action-results 2020-05-11 16:07:59 +02:00
Bjarke Berg be81e927a9 Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore 2020-05-11 12:31:47 +02:00
Bjarke Berg f8c4ac6623 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev 2020-05-11 12:24:45 +02:00
Bjarke Berg 3c622905ba Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Infrastructure/Models/Mapping/ContentTypeMapDefinition.cs
#	src/Umbraco.Web/Editors/BackOfficeServerVariables.cs
2020-05-11 08:23:59 +02:00
Shannon DeminickandGitHub 09a3c4afee Merge pull request #8009 from umbraco/netcore/feature/AB6233-install-steps-in-dotnet-core
Netcore: Install steps in dotnet core executable
2020-05-11 15:59:42 +10:00
Andy Butland 22b7484217 Implemented content model binder in netcore. 2020-05-08 13:23:44 +02:00
Shannon aa25e29e7b removes old machine key things 2020-05-08 17:53:24 +10:00
Shannon 1cc548a031 Adds notes 2020-05-08 17:47:21 +10:00
Shannon 7a185b6e87 reduce duplication 2020-05-08 17:36:59 +10:00
Shannon 12bb68100a Remove ununsed and unneeded DbProviderFactory CreateFactory(); from IDbProviderFactoryCreator, ensure the app doesn't explode if exceptions are thrown and boot fails 2020-05-08 17:30:30 +10:00
Shannon d899e050fe resolves types from the assembly that was loaded, removes unused references, adds notes 2020-05-08 16:35:37 +10:00
Bjarke Berg 6a078ee09e AB#6233 - reorderen routing 2020-05-07 15:24:46 +02:00
Bjarke Berg e121ce136f AB#6233 - Clean up 2020-05-07 10:21:32 +02:00
Bjarke Berg e3f9b94fd0 AB#6233 - Added HttpPost to ensure only posts are possible 2020-05-07 10:13:54 +02:00
Bjarke Berg e4dfdbb504 AB#6233 - renamed extensions namespace to Umbraco.Extensions 2020-05-07 10:08:23 +02:00
Bjarke Berg fa3f52c6d3 AB#6233 - Clean up 2020-05-07 10:00:18 +02:00
Bjarke Berg 1499e4538f AB#6233 - Clear other formatters in AngularJsonOnlyConfigurationAttribute and changed to inject dependencies and use TypeFilter 2020-05-07 09:46:42 +02:00
Bjarke Berg 525df22239 AB#6233 - Clear other formatters in AngularJsonOnlyConfigurationAttribute 2020-05-07 09:39:46 +02:00
Bjarke Berg 8f7c022f2d AB#6233 - Handle ApplicationUrl 2020-05-07 09:34:16 +02:00
Bjarke Berg 269c75e26b AB¤6233 - Reverted changes to typefinder and implemented check for if SqlCE is available in the install process 2020-05-06 20:37:03 +02:00
Bjarke Berg 13197eb5ff AB#6233 - Cleanup / Fixes from review 2020-05-05 14:28:01 +02:00
Bjarke Berg ecc596c483 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB6233-install-steps-in-dotnet-core
# Conflicts:
#	src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs
2020-05-05 12:15:53 +02:00
Bjarke BergandGitHub 4bafa25e23 Merge pull request #8025 from scottbrady91/netcore/feature/users
Migrated back office to ASP.NET Core Identity
2020-05-05 12:14:33 +02:00
Bjarke Berg e8fc2a766b Implemented GetUsersInRoleAsync and reintroduced email check 2020-05-05 11:33:19 +02:00
Scott Brady c58f480d24 Addressed IdentityError changes (it's no longer a collection of string) 2020-05-04 18:49:06 +01:00
Scott Brady 04e9140486 Null checks and property uses 2020-05-04 18:32:57 +01:00
Scott Brady 57ec84cb47 Basic tests & refactor for PostUnlockUsers 2020-05-04 18:19:24 +01:00
Scott Brady 5815bfa15f Merge remote-tracking branch 'Umbraco/netcore/dev' into netcore/feature/users 2020-05-04 14:36:45 +01:00
Bjarke Berg 305ed42b48 Moved the sqlce db to root/App_Data/umbraco.sdf, instead of wwwroot/App_Data/umbraco.sdf 2020-05-04 14:40:11 +02:00
Bjarke BergandGitHub 31cda96ba5 Merge pull request #8008 from electricsheep/feature/netcore-misc-unit-tests
Netcore: #7898 Migrate Misc tests to new test project
2020-05-04 10:20:05 +02:00
Bjarke Berg 217e634093 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB6233-install-steps-in-dotnet-core 2020-05-04 09:38:14 +02:00
Bjarke Berg d83cef5f3d Fix for tests failing 2020-05-04 09:35:48 +02:00
Bjarke Berg 03c68fa638 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB6233-install-steps-in-dotnet-core 2020-05-04 06:55:08 +02:00
Ollie Philpott 07d72d5562 Move OrderedHashSetTests 2020-05-03 16:03:45 +01:00
Ollie Philpott 6693ea0ff7 Move DeepCloneableListTests 2020-05-03 15:57:45 +01:00
Ollie Philpott 72071a536b Move ReflectionUtilitiesTests 2020-05-03 15:51:46 +01:00
Ollie Philpott 045604d339 Move ReflectionTests 2020-05-03 15:28:56 +01:00
Bjarke Berg eb4f9b5fbb Updated Imagesharp to rc1 2020-05-01 15:55:39 +02:00
Bjarne Fyrstenborg 02a8beca27 Replace umb-overlay using overlayService.ysod 2020-05-01 15:40:45 +02:00
Bjarke Berg aa31a8b5dd Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs
#	src/Umbraco.Core/PublishedCache/PublishedSnapshotServiceBase.cs
#	src/Umbraco.Core/PublishedModelFactoryExtensions.cs
#	src/Umbraco.Web.UI.Client/package-lock.json
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/imagecropper/imagecropper.controller.js
#	src/Umbraco.Web.UI.Client/src/views/users/user.controller.js
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
2020-05-01 14:13:15 +02:00
Bjarke Berg f3d81702ac AB#6233 - revert connectionstring 2020-05-01 13:47:44 +02:00
Bjarke Berg b70d7101e3 AB#6233 - Explicit restarts umbraco after install to ensure runtime state is run and umbraco is correct composed. 2020-05-01 13:40:26 +02:00
Bjarke Berg da1e83c0d1 AB#6233 - Added application url on IHostingEnvironment. Still need a way to figure out how to get this value 2020-05-01 08:26:05 +02:00
Scott Brady f3f4537c58 Removed test settings 2020-04-30 15:50:19 +01:00
Scott Brady 077cf57abc PR recommendations: added null checks where FindByX was added, using the same exception as ASP.NET Identity 2 2020-04-30 15:48:32 +01:00
Bjarke Berg 04872857e4 AB#6233 - Removed code that cleared the connection string just after it was inserted 2020-04-30 12:57:17 +02:00
Scott Brady 643c249386 Moved ClaimsIdentityExtensions into Umbraco.Core 2020-04-30 09:28:46 +01:00
Scott Brady 2caab18d29 Reintroduced FindFirstValue extension method 2020-04-30 09:27:34 +01:00
Scott Brady 073b28064a Merge remote-tracking branch 'Umbraco/netcore/dev' into netcore/feature/users 2020-04-30 09:13:20 +01:00
Bjarke Berg fcf37aa80f AB#6233 - Added more to the KnownAssemblyExclusionFilter 2020-04-30 10:07:21 +02:00
123b59506b Apply suggestions from code review
Co-Authored-By: Bjarke Berg <mail@bergmania.dk>
2020-04-30 08:50:56 +01:00
Bjarke Berg 59501eba86 AB#6233 - Cleanup 2020-04-29 16:11:56 +02:00
Bjarke Berg fa740f36b5 fix tests 2020-04-29 08:56:42 +02:00
Bjarke Berg e5224b4fe1 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB6233-install-steps-in-dotnet-core 2020-04-29 08:23:40 +02:00
Bjarke BergandGitHub e6c3c5e36e Merge pull request #7977 from AndyButland/feature/7898-netcore-model-unit-tests-4
Netcore: Further model unit test migrations into new project and builder pattern
2020-04-29 08:22:19 +02:00
Elitsa Marinovska 450226a2c3 Marking classes as "Migrated" 2020-04-28 16:01:11 +02:00
Elitsa Marinovska 652da168db Migrating ActionResults and a dependency class 2020-04-28 16:00:29 +02:00
Scott Brady d08bb08f57 Cleanup 2020-04-28 13:05:40 +01:00
Scott Brady 3584aa9fa3 Fixed naming for login info wrapper 2020-04-28 13:00:02 +01:00
Scott Brady 1862bf033f Normalized int to string conversion 2020-04-28 12:20:04 +01:00
Bjarke Berg 64dfa009f5 #6233 - version in config removed 2020-04-28 12:31:15 +02:00
Andy Butland 1f4030f910 Made more use of defaults in builder based unit tests. 2020-04-28 12:06:01 +02:00
Scott Brady 7947ce16dd Merge remote-tracking branch 'Umbraco/netcore/dev' into netcore/feature/users 2020-04-28 08:42:21 +01:00
Bjarke Berg bc4713a51c #6233- SqlCE stuff 2020-04-28 07:02:14 +02:00
Bjarke Berg 55d9af2b68 #6233- Install steps + MacroRenderer 2020-04-27 13:00:55 +02:00
Bjarke BergandGitHub 0b055cee4b Merge pull request #7963 from emmagarland/feature/netcore-model-unit-tests-settings
Netcore: Migrate UmbracoSettings tests from UnitTests to Integration Tests
2020-04-27 10:34:35 +02:00
Scott Brady 0338c2fc4a Removed null checks from normalizer (breaks Umbraco bootstrap process) 2020-04-24 12:52:49 +01:00
Scott Brady 9c9bd1dd1e Merge fixes 2020-04-24 12:48:29 +01:00
Scott Brady fed9d1c335 Merge remote-tracking branch 'Umbraco/netcore/dev' into netcore/feature/users 2020-04-24 12:46:48 +01:00
Bjarke Berg 9110638ce1 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB6233-install-steps-in-dotnet-core 2020-04-24 12:04:40 +02:00
Bjarke Berg 3e50333a3b Fix for logviewer issue 2020-04-24 11:52:12 +02:00
Ollie Philpott 2b7b9db3a5 Moved and refactored UriUtility tests 2020-04-24 09:27:44 +01:00
Bjarke Berg 56b94b53b1 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Core/Services/UserServiceExtensions.cs
#	src/Umbraco.Infrastructure/Examine/ContentValueSetBuilder.cs
#	src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
#	src/Umbraco.Infrastructure/Search/ExamineComposer.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/DatabaseDataSource.cs
#	src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
2020-04-24 08:34:48 +02:00
Bjarke Berg f79526e46a Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB6233-install-steps-in-dotnet-core
# Conflicts:
#	src/Umbraco.Infrastructure/Runtime/CoreInitialComposer.cs
#	src/Umbraco.Web.Common/Runtime/AspNetCoreComposer.cs
2020-04-24 08:23:55 +02:00
Scott Brady 42efb78fdd Addressed final TODOs 2020-04-23 16:03:12 +01:00
Ollie Philpott c567b11c81 Move builder to correct folder 2020-04-23 15:36:48 +01:00
Ollie Philpott b056719cdc Move XmlHelper tests and add builder 2020-04-23 15:01:17 +01:00
Ollie Philpott 30be5f30ca Move HashGenerator tests 2020-04-23 12:13:08 +01:00
Ollie Philpott 6144c4cb03 Move HashCodeCombiner tests 2020-04-23 12:11:28 +01:00
Ollie Philpott e89b6fe6e7 Move DateTimeExtensions tests 2020-04-23 11:51:12 +01:00
Scott Brady d6036eb9f4 Added ASP.NET Core Identity token providers 2020-04-22 20:28:49 +01:00
Scott Brady 4763c28c4a Completed No-op lookup normalizer and OWIN daa protection token provider 2020-04-22 20:05:12 +01:00
Scott Brady 16a19b941e Merge remote-tracking branch 'Umbraco/netcore/dev' into netcore/feature/users 2020-04-22 15:58:54 +01:00
Scott Brady 8fc2674426 Tests for v7 password hash 2020-04-22 15:58:28 +01:00
Emma Garland c2eb3b0480 Merge branch 'netcore/dev' of https://github.com/umbraco/Umbraco-CMS into feature/netcore-model-unit-tests-settings 2020-04-22 13:53:41 +01:00
Bjarke BergandGitHub 34ae4311d0 Merge pull request #7996 from umbraco/netcore/bugfix/logging-fixing
Fixes up all things logging in netcore
2020-04-22 12:13:10 +02:00
Bjarke Berg fce1df08f9 Fix test 2020-04-22 10:55:13 +02:00
Bjarke Berg f76e638f0d Merge remote-tracking branch 'origin/netcore/dev' into netcore/bugfix/logging-fixing
# Conflicts:
#	src/Umbraco.Tests.Integration/RuntimeTests.cs
#	src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs
#	src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs
2020-04-22 10:54:54 +02:00
Bjarke BergandGitHub 30c877c66b Merge pull request #7982 from umbraco/netcore/feature/ab6232-WebRuntime
Introduced GenericDictionaryRequestAppCache and eliminated the WebRuntime
2020-04-22 09:11:41 +02:00
Bjarke BergandGitHub 3b08028202 Merge pull request #7992 from umbraco/netcore/feature/AB6241-reimplement-action-filters
Netcore: Reimplementing action filters
2020-04-22 08:54:25 +02:00
Bjarke Berg 79e9235338 AB#6233 - Install in .NET Core 2020-04-22 08:17:45 +02:00
Shannon 18b285f088 Splits profiler so it doesn't have to take a dependency since we don't want to pre-resolve. Adds enrichers to the container. 2020-04-22 15:23:51 +10:00
Shannon 2ef8f26b28 removes unneeded extra HostBuilderExtensions 2020-04-22 14:29:01 +10:00
Shannon 46e14f7692 Fixes up all logging. Configures serilog logging to replace MS logging just like serilog does, adds new ILoggerConfiguration so we aren't hard coding things, dynamically adds enrichers when the container is ready to resolve services. 2020-04-22 14:23:56 +10:00
Elitsa Marinovska 062441c650 Passing NoAppCache to CoreRuntime base ctor 2020-04-21 13:48:06 +02:00
Elitsa Marinovska acad9d1f84 Making class public 2020-04-21 11:03:04 +02:00
Bjarke Berg fbe6f6cdd2 AB#6232 - Moved EnablePerWebRequestScope from configure to start 2020-04-21 11:00:30 +02:00
Elitsa Marinovska c185b67ed0 Adding UseStatusCodePages for disabling/enabling status code pages (ex: from IIS) 2020-04-21 10:55:01 +02:00
Elitsa Marinovska 28f5033cb7 Renaming a file for constants. Clarifying the proj for other Constants file 2020-04-21 10:14:03 +02:00
Elitsa Marinovska 16aab7a3cb Refactoring 2020-04-21 09:33:39 +02:00
Elitsa Marinovska 138b8099fc Reimplementing EnsurePartialViewMacroViewContextFilterAttribute and other required classes 2020-04-21 09:28:22 +02:00
Elitsa Marinovska 65b45eb48d Marking classes as moved 2020-04-21 09:25:15 +02:00
Elitsa Marinovska 77a06efa91 Moved filters to Umbraco.Web.Common project 2020-04-21 09:19:18 +02:00
Shannon d0f1ea0e59 Gets logging working in netcore, removes remaining usages of AppDomain.CurrentDomain.BaseDirectory and reduces more IOHelper usages 2020-04-21 13:31:55 +10:00
Shannon ee37d3aa7a Fixes up usage of AppDomain.CurrentDomain.BaseDirectory in log viewer which cannot work in netcore since this is inconsistent with net framework, adds notes, starts configuring serilog with UseUmbraco 2020-04-21 13:07:20 +10:00
Elitsa Marinovska d483f2ccbd Marking asp.net action filters as migrated to net core 2020-04-20 22:56:36 +02:00
Elitsa Marinovska 487e3c54a8 Reimplementing action filters to asp.net core 2020-04-20 22:55:40 +02:00
Scott Brady e90778bd3d Extracted constant for 2FA remember me cookie 2020-04-20 20:20:04 +01:00
Scott Brady 96d9d3bd21 Removed use of Microsoft.AspNet.Identity.Owin, but had to port across some OWIN extensions 2020-04-20 20:14:36 +01:00
Scott Brady 11f5c98206 Finished security stamp validator 2020-04-20 19:45:08 +01:00
Bjarke Berg c0ec1bf6ca Introduced GenericDictionaryRequestAppCache, to use the HttpContext.Items from .NET Core 2020-04-20 13:21:09 +02:00
Ivo Kolář b893dd2c65 - admin czech translation 2020-04-20 11:53:26 +02:00
Andy Butland e561784057 Migrated DictionaryTranslationBuilders into new unit test project and builder format. 2020-04-19 09:39:30 +02:00
Andy Butland 7782457ae5 Created extension methods for creating standard test content types. 2020-04-19 09:21:36 +02:00
Andy Butland b5ef6bb6d1 Migrated CultureImpactTests into new unit tests project. 2020-04-19 09:07:58 +02:00
Andy Butland 9d2bfdc428 Migrated content, media and member type tests into new unit tests project and builder pattern. 2020-04-19 09:05:09 +02:00
Warren BuckleyandGitHub 9335f39495 Update Readme.md in netcore branch to see if LGTM.com will analyze C# 2020-04-18 22:01:39 +01:00
Andy Butland c38c5c39ce Migrated DeepCloneHelper tests into new unit tests project. 2020-04-18 10:06:53 +02:00
Andy Butland 137ee60014 Migrated mapping tests into new unit tests project. 2020-04-18 10:04:52 +02:00
Andy Butland 12b9507007 Aligned user group builder with other builders. 2020-04-18 10:04:28 +02:00
Andy Butland e0ffc4bc07 Migrated ContentScheduleTests into new unit tests project. 2020-04-18 08:59:30 +02:00
Andy Butland d334fef4b6 Migrated DocumentEntitySlim tests into new project and builder pattern. 2020-04-18 08:57:14 +02:00
Bjarke Berg bf1784f9d1 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Core/ContentExtensions.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs
2020-04-17 11:43:04 +02:00
Scott Brady a0e11c49d6 Merge remote-tracking branch 'Umbraco/netcore/dev' into netcore/feature/users 2020-04-17 10:37:13 +01:00
Bjarke BergandGitHub a35b52b46f Merge pull request #7948 from AndyButland/feature/7898-netcore-model-unit-tests-3
Netcore: Further model unit test migrations into new project and builder pattern
2020-04-17 06:17:44 +02:00
Bjarke Berg 295d0b73b3 nuget fix 2020-04-16 20:12:06 +02:00
Bjarke Berg 14072b0c21 nuget fix 2020-04-16 19:54:25 +02:00
Bjarke Berg 9f56aa1358 Merge remote-tracking branch 'origin/netcore/dev' into feature/7898-netcore-model-unit-tests-3 2020-04-16 19:28:05 +02:00
Bjarke Berg 3406bdb40b Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	NuGet.Config
#	src/Umbraco.Core/Models/RelationType.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MediaPickerPropertyEditor.cs
2020-04-16 19:00:51 +02:00
Emma Garland 8a7a0f65b1 Added new test case to show it working 2020-04-16 14:37:06 +01:00
Andy Butland 2278b0d318 Merge branch 'netcore/dev' into feature/7898-netcore-model-unit-tests-3 2020-04-16 12:19:04 +02:00
Andy Butland 33853eee43 Added setup method to instantiate clean builder for all model unit tests within the class. 2020-04-16 12:18:06 +02:00
Scott Brady 989767b053 Merge fixes 2020-04-16 11:16:35 +01:00
Andy Butland 89a419e4d1 Clarified comment. 2020-04-16 11:46:02 +02:00
Andy Butland 068100cc8e Removed resetting of unit test builders. 2020-04-16 11:39:30 +02:00
Scott Brady 52d6c86d8b Merge branch 'netcore/dev' into netcore/feature/users 2020-04-16 09:41:27 +01:00
Emma Garland cc26a7e67b Removed unwanted references to old config and helper location 2020-04-15 15:50:38 +01:00
Emma Garland fcb24abb77 Console.WriteLine as TestContext may not always work in all VS versions 2020-04-15 15:33:37 +01:00
Emma Garland 3e7404eab0 Auto property for default settings. We needed the defaults for testing, but removed comment re appveyor because these tests failed on my local too, since these were not being set accurately as the default settings had no whitelist and therefore the logic was altered from false to true. Write to TestContext not debug. 2020-04-15 15:30:26 +01:00
Bjarke Berg 26e16cee7a Merge remote-tracking branch 'origin/v8/dev' into netcore/dev 2020-04-15 15:52:22 +02:00
Shannon DeminickandGitHub a96b04e0dd Merge pull request #7890 from umbraco/netcore/feature/ab5819-initialize-composers
NetCore: Initialize more services for .net core
2020-04-15 10:17:20 +10:00
Emma Garland 0c77450222 Specified hostingenvironment and databaseproviders after unit tests not picking up Umbraco.Core namespaces
Migrated into integrations project configurations, as files are being read
2020-04-14 16:55:54 +01:00
Bjarke Berg ad4bce3b73 AB#5819 - Cleanup 2020-04-14 16:26:01 +02:00
Emma Garland b4dbe1302c Moved all UmbracoSettings tests into new unit tests configuration project
Added InternalVisibleTo for new Unit Tests project Umbraco.Configuration, so the internals can be tested
Moved TestHelpers for specific case into separate helper file, as independent helper, as this is the only method used. Changed from TestHelperBase to TestHelper.
Subsequently changed path for testing
2020-04-14 14:07:01 +01:00
Bjarke Berg d0135eae2b Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/ab5819-initialize-composers 2020-04-14 07:29:59 +02:00
Andy Butland 597489fba2 Added missing builder property values when building macro properties. 2020-04-13 19:33:39 +02:00
Andy Butland a9a8cb7f6f Migrated macro unit tests to new project and builder pattern. 2020-04-13 19:22:31 +02:00
Andy Butland f961916245 Introduced a reset of the unit test builders to support re-use within a test. 2020-04-12 09:47:44 +02:00
Andy Butland a5aa1e19a5 Fixed failing integration tests following amends to UserBuilder. 2020-04-11 18:37:10 +02:00
Andy Butland 3085ce52f9 Migrated parth validation tests to new project and builder pattern. 2020-04-11 17:21:27 +02:00
Andy Butland 4456a784b0 Migrated user extension tests new project pattern. 2020-04-11 16:41:28 +02:00
Andy Butland b3fd94e023 Migrated user tests into new project and builder pattern. 2020-04-11 16:35:33 +02:00
Bjarke BergandGitHub 030668a8d1 Merge pull request #7896 from AndyButland/feature/netcore-model-unit-tests-2
Netcore: Further model unit test migrations into new project and builder pattern (2)
2020-04-10 18:18:38 +02:00
Andy Butland f4ad8176c4 Removed references to moved projects introduced by merge. 2020-04-10 17:51:57 +02:00
Andy Butland 766826f462 Merge branch 'netcore/dev' into feature/netcore-model-unit-tests-2
# Conflicts:
#	src/Umbraco.Tests.Common/Builders/MemberTypeBuilder.cs
2020-04-10 17:11:41 +02:00
Andy Butland 82feb93243 Merge branch 'netcore/dev' into feature/netcore-model-unit-tests-2 2020-04-10 17:05:46 +02:00
Andy Butland 650126cfc8 Amended PropertyBuilder to return IProperty and removed some unnecessary default properties from built test class. 2020-04-10 17:01:47 +02:00
Bjarke BergandGitHub 8aaff38a6d Merge pull request #7895 from AndyButland/feature/netcore-model-unit-tests
Netcore: Further model unit test migrations into new project and builder pattern
2020-04-10 16:28:19 +02:00
Shannon d56867757c Merge branch 'netcore/dev' into netcore/feature/ab5819-initialize-composers 2020-04-08 15:59:00 +10:00
Shannon f19e18e160 Removes new namespaces: Umbraco.Core.Cookie, Umbraco.Core.Session, Umbraco.Core.Request, these are web things and should be part of one namespace 2020-04-08 15:56:19 +10:00
Shannon DeminickandGitHub b23686e87e Merge pull request #7909 from rustybox/bugfix/case-sensitive-fs-fixes
Netcore: Alter ResXFileRef to match filesystem
2020-04-08 10:21:20 +10:00
Paul Johnson b2f1c728fb Alter resx to match filesystem 2020-04-07 16:54:54 +01:00
Scott Brady e5f3c4a186 Security stamp validator. Removed more references to ASP.NET Identity 2 2020-04-06 17:23:04 +01:00
Andy Butland 09b18c0227 Removed some properties unnecessarily set in tests as they will be set by default by the builder. 2020-04-05 09:31:56 +02:00
Scott Brady 02dfa893e9 Cleanup 2020-04-04 19:58:09 +01:00
Andy Butland d9f9a166a6 Migrated property, property type and property group tests into new project and builder pattern. 2020-04-04 16:49:01 +02:00
Scott Brady 809ead4223 Removed temporary class naming 2020-04-04 12:59:29 +01:00
Scott Brady 851ae1ba0f Initial working back office 2020-04-04 12:36:04 +01:00
Andy Butland f10971efaa Migrated relation tests into new project and builder pattern. 2020-04-04 12:21:41 +02:00
Andy Butland 58a1bc0a8f Migrated stylesheet and template tests into new project and builder pattern. 2020-04-04 09:32:23 +02:00
Bjarke Berg 669ce1629f Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/ab5819-initialize-composers 2020-04-03 10:58:45 +02:00
Bjarke BergandGitHub 59997252a2 Merge pull request #7838 from umbraco/netcore/feature/AB5822-smidge-implementation
Netcore: Smidge implementation
2020-04-03 10:58:08 +02:00
Bjarke Berg 7c87ec3141 Merge remote-tracking branch 'origin/netcore/feature/AB5822-smidge-implementation' into netcore/feature/ab5819-initialize-composers 2020-04-03 10:12:10 +02:00
Bjarke Berg 2c1d94cb11 AB#5822 - removed IIOHelper.DirSepChar and uses Path.DirectorySeparatorChar instead 2020-04-03 10:09:08 +02:00
Bjarke Berg eba1b90976 AB#5822 - removed wrong xmldoc 2020-04-03 10:05:38 +02:00
Bjarke Berg 440ebf6f18 AB#5822 - Small changes 2020-04-03 10:04:43 +02:00
Shannon d711796c59 Fixing tests 2020-04-03 17:05:50 +11:00
Shannon 4920268ec8 combines application builder extensions to one class 2020-04-03 15:56:34 +11:00
Shannon 604797d339 fixes DisableAttribute implementation when looking for a type 2020-04-03 15:54:25 +11:00
Shannon c48f36f6a2 Even more IOHelper reduction, fixes some tests 2020-04-03 15:36:57 +11:00
Shannon b3da9a904b Fix build 2020-04-03 15:24:40 +11:00
Shannon 859546f5a4 Fixes deadlock issues and concurrent index drop issues 2020-04-03 13:54:28 +11:00
Shannon 60abdd60b5 Starts fixing up integration tests 2020-04-03 13:16:01 +11:00
Shannon 4349115f0d Fixes up some errors 2020-04-03 11:47:38 +11:00
Shannon 7e2d0902af Huge IIOHelper cleanup, removes some overlap with IHostingEnvironment, much less usages of IIOHelper and instead just use what is already available on IHostingEnvironment 2020-04-03 11:03:06 +11:00
Shannon 1224c97f07 Don't pass in Root to ToAbsolute there's no need 2020-04-03 09:17:40 +11:00
Shannon fa2e9c3715 Fixing AspNetCoreHostingEnvironment, cleaning up more IOHelper, adds notes 2020-04-03 09:13:55 +11:00
Scott Brady 4e583db68e Added OWIN based token provider. Removed use of IdentityFactoryOptions 2020-04-02 15:55:00 +01:00
Shannon 9d320f79da New IRuntimeHash to fix type scanning in netcore in order to look at the right runtime bits to creaet a hash for 2020-04-03 01:08:52 +11:00
Shannon f0579714e9 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5822-smidge-implementation
# Conflicts:
#	.gitignore
#	src/Umbraco.Core/IO/IIOHelper.cs
2020-04-02 22:32:02 +11:00
Shannon 4fddb94462 Fixes up preview paths, adds more docs and ensures we throw exceptions when not absolute paths 2020-04-02 22:11:57 +11:00
Shannon 4eb116d4ac removes CssInitialization and JsInitialization and merges/simplifies code 2020-04-02 21:29:48 +11:00
Shannon 95a36b3064 Changes namesspace, fixes cdf registrations, fixes bundle registrations, cleanup 2020-04-02 21:19:42 +11:00
Bjarke BergandGitHub f9ce924e85 Merge pull request #7865 from umbraco/netcore/bugfix/integration-tests-running
Getting Integration tests running on Devops
2020-04-02 11:42:21 +02:00
Bjarke Berg 01957b7c64 Merge remote-tracking branch 'origin/netcore/dev' into netcore/bugfix/integration-tests-running 2020-04-02 10:01:57 +02:00
Scott Brady c8afd85bd3 Initial run 2020-04-02 08:08:09 +01:00
Shannon a67bb197b7 Merge branch 'netcore/feature/AB5822-smidge-implementation' of https://github.com/umbraco/Umbraco-CMS into netcore/feature/AB5822-smidge-implementation 2020-04-02 17:41:19 +11:00
Shannon 32deaa12d2 Removes unneeded methods/properties in abstraction, removes unneeded usages of it, changes everything to pre-defined bundles, fixes cdf implementation and reduces reflection, renames namespace 2020-04-02 17:41:00 +11:00
Bjarke Berg 97cf099f9f AB#5819 - Moved composing of core/infrastructure items into CoreInitialComposer 2020-04-01 20:00:27 +02:00
Bjarke Berg 38c41fa0bd Merge branch 'netcore/feature/AB5822-smidge-implementation' into netcore/feature/ab5819-initialize-composers 2020-04-01 15:57:07 +02:00
Bjarke Berg b1d214a13d Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5822-smidge-implementation
# Conflicts:
#	src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs
#	src/Umbraco.Web.UI.NetCore/Startup.cs
#	src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/Gallery.cshtml
2020-04-01 15:52:23 +02:00
Bjarke Berg 3aa849fff2 AB#5819 - Moved composing of core/infrastructure items into CoreInitialComposer 2020-04-01 15:50:46 +02:00
Bjarke Berg 400fa1ccd4 Initialize Current 2020-04-01 14:19:41 +02:00
Bjarke Berg e3ac778fc9 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Core/Cache/WebCachingAppCache.cs
#	src/Umbraco.Core/StringExtensions.cs
#	src/Umbraco.Infrastructure/PropertyEditors/UploadFileTypeValidator.cs
#	src/Umbraco.Tests/Configurations/UmbracoSettings/ContentElementTests.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
#	src/Umbraco.Web.UI.Client/package-lock.json
#	src/Umbraco.Web.UI/Umbraco/js/navigation.controller.js
#	src/Umbraco.Web/Macros/MacroRenderer.cs
#	src/Umbraco.Web/Security/Providers/UsersMembershipProvider.cs
2020-04-01 12:44:53 +02:00
Bjarke BergandGitHub 407d26635c Merge pull request #7872 from umbraco/netcore/feature/builders
NetCore: Aligned User and UserGroup builders to the other builders
2020-04-01 12:09:50 +02:00
Bjarke Berg 944042ad61 Updated builders 2020-04-01 12:07:54 +02:00
Bjarke Berg 6012d6749e Fix views 2020-04-01 11:31:21 +02:00
Bjarke Berg 9e38ed045f Aligned builders 2020-04-01 08:18:56 +02:00
Bjarke BergandGitHub b45c2f9412 Merge pull request #7855 from AndyButland/netcore/unit-test-migration-member-models
Netcore: Migrated member unit tests into new project/builder pattern
2020-04-01 06:33:09 +02:00
Andy Butland 919861bf36 Separated member and member group builder and model unit tests, and other minor updates from PR review. 2020-03-31 17:37:34 +02:00
Bjarke Berg e42c63693f AB#5822 Clean up 2020-03-31 16:43:01 +02:00
Bjarke Berg 6430137fe3 AB#5822 Clean up 2020-03-31 16:35:17 +02:00
Andy Butland 374147d5e8 Merge branch 'netcore/dev' into netcore/unit-test-migration-member-models 2020-03-31 16:35:09 +02:00
Bjarke Berg 8d2aad5f49 AB#5822 Clean up 2020-03-31 16:28:58 +02:00
Bjarke Berg c75c86ab27 AB#5822 Clean up 2020-03-31 16:28:13 +02:00
Bjarke Berg 94f4c6b372 AB#5822 Clean up 2020-03-31 16:15:55 +02:00
Bjarke Berg 55426515c0 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5822-smidge-implementation
# Conflicts:
#	src/Umbraco.Infrastructure/Media/ImageProcessorImageUrlGenerator.cs
#	src/Umbraco.Infrastructure/Models/ImageProcessorImageUrlGenerator.cs
#	src/Umbraco.Infrastructure/Models/ImageSharpImageUrlGenerator.cs
#	src/Umbraco.Web.BackOffice/AspNetCore/AspNetCoreComposer.cs
#	src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs
#	src/Umbraco.Web.UI.NetCore/Startup.cs
#	src/Umbraco.Web.UI.NetCore/appsettings.json
2020-03-31 15:36:25 +02:00
Bjarke BergandGitHub d0938913e9 Merge pull request #7839 from umbraco/netcore/feature/ab5820-webprofiler-aspnetcore
NetCore: Implement the WebProfiler for asp.net core.
2020-03-31 15:10:18 +02:00
Bjarke Berg b9ad6a0b7c AB#5820 - Cleanup 2020-03-31 15:02:02 +02:00
Bjarke Berg ab57b633e0 AB#5820 - Cleanup 2020-03-31 14:53:20 +02:00
Bjarke Berg 2e6b5004f7 AB#5820 - Bugfix 2020-03-31 13:04:21 +02:00
Bjarke Berg 12a957e9b6 AB#5820 - Copy client files into both netcore and framework executables 2020-03-31 12:59:10 +02:00
Bjarke Berg 2a2903f932 AB#5820 - Review fixes / Clean up 2020-03-31 12:22:11 +02:00
Bjarke Berg a6d43f4fd5 AB#8522 - Clean up 2020-03-31 10:57:56 +02:00
Bjarke Berg 117bfd1f12 AB#8522 - Smidge reset updates the version string to the current ticks 2020-03-31 10:47:08 +02:00
Shannon ebdd5e3f69 env var change 2020-03-31 18:13:19 +11:00
Shannon 4ee3cf02d9 Changes integration tests working folder, hopefully this works on azure devops 2020-03-31 18:01:27 +11:00
Shannon 8535d0fbe3 Cleans up IIOHelper and removes methods/props that shouldn't exist, changes test helper to use WorkingDirectory fixes some usages of MapPath 2020-03-31 17:27:51 +11:00
Shannon DeminickandGitHub 31bd20e54a Merge pull request #7669 from AndyButland/netcore/7668-remove-repository-concerns-from-services
.NetCore: Remove direct database queries from services
2020-03-31 14:39:15 +11:00
Shannon DeminickandGitHub 4cf618e358 Merge pull request #7837 from AndyButland/feature/7540-use-image-url-generator-back-office
Netcore: Use API to get Image URLs in BackOffice instead of hardcoded querystrings
2020-03-31 14:38:23 +11:00
Bjarke Berg ffc6ce6553 AB#8522 - Smidge implementation of the Runtime Minifier 2020-03-30 21:27:35 +02:00
Elitsa Marinovska 4ac8ae3b15 Removing specific to each machine file paths from project 2020-03-30 15:29:53 +02:00
Elitsa MarinovskaandGitHub 7e3b3414d5 Merge branch 'netcore/dev' into netcore/feature/ab5820-webprofiler-aspnetcore 2020-03-30 15:26:51 +02:00
Andy Butland 75b216bca5 Removed registerFileResolver methods on image cropper and file upload property editors. 2020-03-30 14:30:50 +02:00
Andy Butland 1760241607 Merge branch 'netcore/dev' into feature/7540-use-image-url-generator-back-office 2020-03-30 14:19:15 +02:00
Andy Butland cdb65762f1 Merge branch 'netcore/dev' into netcore/7668-remove-repository-concerns-from-services 2020-03-30 14:17:16 +02:00
Shannon 7617027c49 Moves most of the UserRepositoryTest 2020-03-30 21:53:30 +11:00
Shannon 3757f722a0 Gets first integration test moved, moves the test options to the common project, ensures that the LocalDb pool is updated on each test 2020-03-30 20:55:13 +11:00
Shannon 9ed925941f Gets DB installation test working with runtime level checking 2020-03-30 17:25:29 +11:00
Andy Butland f6af286e0b Added tests confirming correct building of unit test objects. 2020-03-30 07:42:02 +02:00
Bjarke Berg 219391246d Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5822-smidge-implementation 2020-03-30 07:23:44 +02:00
Bjarke Berg 1e33b3df7a AB#5820 - Clean up 2020-03-30 07:17:56 +02:00
Bjarke Berg 49da01c655 AB#5820 - Clean up 2020-03-30 07:16:55 +02:00
Bjarke Berg 2fc2166767 AB#5820 - Clean up 2020-03-30 07:14:22 +02:00
Bjarke Berg 8ed7ae470a AB#5820 - Clean up 2020-03-30 06:38:39 +02:00
Bjarke Berg ff5d6770d9 AB#5820 - Clean up and remove unnecessary stuff for this task 2020-03-30 06:34:56 +02:00
Bjarke Berg b2799ef901 AB#5820 - Added simple controller and view to test the miniprofiler 2020-03-29 22:35:52 +02:00
Andy Butland dface90de7 Migrated member unit tests to new unit test project using builder pattern. 2020-03-29 16:17:06 +02:00
Andy Butland 50631c2b28 Migrated member group unit tests to new unit test project using builder pattern. 2020-03-28 20:54:10 +01:00
Andy Butland 5a29365063 Revert change to overridden save method on key value repository. 2020-03-28 15:20:17 +01:00
Andy Butland 8958cf90b9 Moved non-scoped retrieval of key value into an extension method in IUmbracoDatabase. 2020-03-28 15:13:50 +01:00
Andy Butland f01ccb49dd Removed key value service initialization logic. 2020-03-28 15:04:36 +01:00
Andy Butland 3e40389819 PR review amends on key value model and repository classes. 2020-03-28 15:04:11 +01:00
Andy Butland bc05370995 Merge branch 'netcore/dev' into netcore/7668-remove-repository-concerns-from-services 2020-03-28 14:31:23 +01:00
Andy Butland 93fd2eb954 Fixed creation of image processing options in grid media controller. 2020-03-28 14:11:24 +01:00
Andy Butland f48a4b0c72 Merge branch 'netcore/dev' into feature/7540-use-image-url-generator-back-office 2020-03-27 21:20:08 +01:00
Bjarke Berg 681a25b861 Moved files from backoffice into Common + Introduced AspNetCoreComponent to invoke the Umbraco Application Init event 2020-03-27 11:39:17 +01:00
Bjarke Berg fe88662f48 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/ab5820-webprofiler-aspnetcore 2020-03-27 06:04:06 +01:00
Bjarke Berg a72ae2278d Post merge + bugfix 2020-03-26 19:52:40 +01:00
Bjarke Berg 44e9df949d Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Infrastructure/Models/Property.cs
#	src/Umbraco.Tests/Models/ContentTests.cs
2020-03-26 19:22:09 +01:00
Bjarke Berg 8964ef1c48 Register missing interface 2020-03-26 19:14:02 +01:00
Andy Butland 30567d34d5 Merge branch 'netcore/dev' into feature/7540-use-image-url-generator-back-office
# Conflicts:
#	src/Umbraco.Tests/Testing/UmbracoTestBase.cs
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
2020-03-26 10:53:24 +01:00
Bjarke Berg 312e1e99b0 Merge remote-tracking branch 'origin/netcore/feature/ab5820-webprofiler-aspnetcore' into netcore/feature/ab5820-webprofiler-aspnetcore 2020-03-26 07:11:58 +01:00
Bjarke Berg 86fe83ca16 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/ab5820-webprofiler-aspnetcore
# Conflicts:
#	src/Umbraco.Web.BackOffice/AspNetCore/UmbracoCoreServiceCollectionExtensions.cs
#	src/Umbraco.Web.Common/AspNetCore/AspNetCoreUmbracoApplicationLifetime.cs
#	src/Umbraco.Web.UI.NetCore/Startup.cs
2020-03-26 07:10:23 +01:00
Bjarke Berg 402e994e89 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/ab5820-webprofiler-aspnetcore
# Conflicts:
#	src/Umbraco.Web.BackOffice/AspNetCore/UmbracoCoreServiceCollectionExtensions.cs
#	src/Umbraco.Web.Common/AspNetCore/AspNetCoreUmbracoApplicationLifetime.cs
#	src/Umbraco.Web.UI.NetCore/Startup.cs
2020-03-26 07:04:38 +01:00
Bjarke Berg 405fca7e51 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5822-smidge-implementation 2020-03-26 06:55:58 +01:00
Bjarke Berg 6858739086 Fix for old references in new test project 2020-03-26 06:54:21 +01:00
Bjarke Berg 629be33357 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5822-smidge-implementation
# Conflicts:
#	src/Umbraco.Web.BackOffice/AspNetCore/UmbracoCoreServiceCollectionExtensions.cs
#	src/Umbraco.Web.UI.NetCore/Startup.cs
#	src/Umbraco.Web/Editors/PackageInstallController.cs
#	src/Umbraco.Web/UrlHelperExtensions.cs
2020-03-26 06:53:05 +01:00
Shannon DeminickandGitHub 99c6ca7c7b Merge pull request #7840 from umbraco/netcore/feature/booting-netcore-db
Netcore - Runtime booting and shutting down (and more)
2020-03-26 15:40:18 +11:00
Shannon f24cae51d8 Renames IHostingEnvironmentLifetime to IApplicationShutdownRegistry 2020-03-26 15:39:20 +11:00
29293bd25a Update src/Umbraco.Tests.Integration/Implementations/TestHelper.cs
Co-Authored-By: Bjarke Berg <mail@bergmania.dk>
2020-03-26 15:32:39 +11:00
9bb9997288 Update src/Umbraco.Tests.Integration/Implementations/HostBuilderExtensions.cs
Co-Authored-By: Bjarke Berg <mail@bergmania.dk>
2020-03-26 15:31:27 +11:00
fee1f6f0ab Update src/Umbraco.Tests.Integration/Implementations/HostBuilderExtensions.cs
Co-Authored-By: Bjarke Berg <mail@bergmania.dk>
2020-03-26 15:30:25 +11:00
Shannon DeminickandGitHub 8b531b7aea Merge pull request #7820 from umbraco/netcore/feature/unit-test-project
NetCore: Introduces a seperate UnitTest project
2020-03-26 15:24:19 +11:00
Bjarke Berg 1c53405d75 AB#5822 - Abstraction of runtime minifier 2020-03-25 20:42:02 +01:00
Bjarke Berg a0b0802b8d Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5822-smidge-implementation
# Conflicts:
#	src/Umbraco.Web.BackOffice/AspNetCore/UmbracoBackOfficeServiceCollectionExtensions.cs
2020-03-25 13:31:27 +01:00
Bjarke Berg 8a0f031d6d AB#5822 - Moved config 2020-03-25 13:29:40 +01:00
Shannon a5d728cc51 Reduce the usage of BuildServiceProvider 2020-03-25 18:21:44 +11:00
Shannon 1a8f422dce another note 2020-03-25 17:40:52 +11:00
Shannon 926b0662e7 another note 2020-03-25 17:39:36 +11:00
Shannon 77ce21b0e3 Adds notes/test about pre building the netcore container 2020-03-25 17:35:43 +11:00
Shannon 2d506c1fd0 Adds container test showing how we can pre-resolve a service and ensures its the same on that gets used. 2020-03-25 17:23:31 +11:00
Shannon 07966b5225 more unused code 2020-03-25 17:19:12 +11:00
Shannon c988004762 fixes test 2020-03-25 17:18:36 +11:00
Shannon a0acc8126d oops change namespace back to Umbraco.net 2020-03-25 16:52:42 +11:00
Bjarke Berg 92afbfc6fc AB#5820 - Initialize the webprofiler in asp.net core 2020-03-25 05:39:25 +01:00
Shannon 612a47b16b Splits interfaces into separate ones, removes overlap between interfaces, injects the necessary bits, and much more 2020-03-25 15:06:22 +11:00
Shannon 900505704c Committing a namespaces change 2020-03-25 14:54:45 +11:00
Bjarke Berg 397b25f9ae Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/ab5820-webprofiler-aspnetcore
# Conflicts:
#	src/Umbraco.Web.UI.NetCore/Startup.cs
2020-03-24 19:38:44 +01:00
Bjarke Berg 9cca16d31b Rollback of changes not related to this issue 2020-03-24 19:37:04 +01:00
Bjarke Berg e8095b1a36 Merge remote-tracking branch 'origin/netcore/feature/ab5820-webprofiler-aspnetcore' into netcore/feature/ab5820-webprofiler-aspnetcore
# Conflicts:
#	src/Umbraco.Web.Common/Runtime/Profiler/WebProfiler.cs
#	src/Umbraco.Web.Common/Runtime/Profiler/WebProfilerProvider.cs
2020-03-24 18:57:29 +01:00
Bjarke Berg 9339e1d999 AB#5820 - Introduced WebProfiler for asp.net core 2020-03-24 18:56:45 +01:00
Bjarke Berg d577452aff AB#5820 - Introduced WebProfiler for asp.net core 2020-03-24 18:18:25 +01:00
Elitsa Marinovska b23c508c54 Using Smidge inline bundle creation in view 2020-03-24 17:35:55 +01:00
Elitsa Marinovska ccfaebb09f More of the Smidge initial implementation. Adding TODOs for next steps 2020-03-24 17:34:34 +01:00
Andy Butland 519fd22cea Changed hard-coded processed images URLs in back-office to use configured image URL generation. 2020-03-24 12:29:16 +01:00
Andy Butland e66c92d032 Added controller method to ImagesController and client-side method to mediahelper to retrieve URL for processed image. 2020-03-24 12:19:04 +01:00
Andy Butland c16965319a Amended processed image URL building to use checks for empty as well as null, and refactored null checks to use HasValue. 2020-03-24 12:17:41 +01:00
Elitsa Marinovska 85730eadb0 Setting up Smidge 2020-03-24 10:51:53 +01:00
Andy Butland b67c3dfa04 Moved IImageUrlGenerator and implementation into more appropriate enamespace 2020-03-24 09:37:46 +01:00
Shannon d0a204b984 Cleans up some unused code, fixes a merge issue causing duplicate runtimes to be created, register essential does what it's supposed to do, don't mix things with the webruntime. 2020-03-24 14:48:32 +11:00
Shannon 59f0edc074 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/booting-netcore-db
# Conflicts:
#	src/Umbraco.Tests.Integration/RuntimeTests.cs
#	src/Umbraco.Web.BackOffice/AspNetCore/UmbracoBackOfficeServiceCollectionExtensions.cs
2020-03-24 14:47:10 +11:00
Shannon DeminickandGitHub bcc8dff862 Merge pull request #7811 from umbraco/netcore/feature/booting-netcore
Puts in place the code to 'boot' Umbraco Core in netcore
2020-03-24 12:12:24 +11:00
Shannon 2f8a85abe5 resolves remaining PR comments 2020-03-24 12:11:46 +11:00
Shannon 139cd3935f oops 2020-03-24 12:00:48 +11:00
Shannon 2bbdb699f2 reduces code duplication 2020-03-24 11:59:42 +11:00
Shannon 919d418920 Gets the DB installing in integration tests, changes integratino tests to use Generic Host builder 2020-03-24 11:53:56 +11:00
Elitsa Marinovska 94a0f62525 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5822-smidge-implementation 2020-03-23 14:32:28 +01:00
Bjarke Berg 8986783cbc Parse connection string provider 2020-03-23 14:31:21 +01:00
Bjarke Berg a3930b1b70 Merge branch 'netcore/dev' into netcore/feature/unit-test-project 2020-03-23 13:56:18 +01:00
Bjarke Berg 919271b2c6 Post merge fix 2020-03-23 13:03:02 +01:00
Elitsa Marinovska 5293a3c1b5 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5490-abstract-clientdependency 2020-03-23 12:50:16 +01:00
Bjarke Berg 73a1058dd1 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Core/Models/Property.cs
2020-03-23 12:48:56 +01:00
Elitsa Marinovska b833279534 Left out changes 2020-03-23 12:46:19 +01:00
Shannon 679b88a2fb more asserts 2020-03-23 17:35:04 +11:00
Shannon 5761381bc3 adds notes 2020-03-23 17:25:45 +11:00
Shannon 7900179abd oops fix build 2020-03-23 17:16:33 +11:00
Shannon 6013d856b7 Changes back TestHelperBase, we'll just allocate new configs each time. 2020-03-23 17:15:32 +11:00
Shannon 427c44468f Changes methods to properties since we don't return new instances each time. 2020-03-23 16:41:39 +11:00
Shannon 299e9eb209 fixing tests and merges 2020-03-23 16:39:27 +11:00
Shannon 1658fced23 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/booting-netcore
# Conflicts:
#	src/Umbraco.Core/IO/IOHelper.cs
#	src/Umbraco.Infrastructure/Runtime/WebRuntime.cs
#	src/Umbraco.Tests.Common/TestHelperBase.cs
#	src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs
#	src/Umbraco.Tests/Runtimes/StandaloneTests.cs
#	src/Umbraco.Web.BackOffice/AspNetCore/UmbracoBackOfficeServiceCollectionExtensions.cs
#	src/Umbraco.Web.UI.NetCore/Program.cs
#	src/Umbraco.Web.UI.NetCore/Startup.cs
#	src/Umbraco.Web/UmbracoApplication.cs
2020-03-23 15:50:01 +11:00
Shannon DeminickandGitHub 91ae2d63da Merge pull request #7822 from umbraco/netcore/feature/ab3671-webruntime-netstandard
NetCore: Make WebRuntime netstandard compatible
2020-03-23 15:09:02 +11:00
Bjarke Berg 4d7952b068 Clean up 2020-03-20 07:00:34 +01:00
Bjarke BergandGitHub 1270d03b76 Merge pull request #7813 from umbraco/netcore/feature/aspnetcore-config
NetCore: Config implementations for .NET Core
2020-03-19 19:52:33 +01:00
Bjarke Berg f3e3ac8969 Removed Machine key stuff 2020-03-19 19:11:57 +01:00
Bjarke Berg 7c011e5b57 Removed UseLegacyEncoding option from config 2020-03-19 19:09:33 +01:00
Bjarke Berg dd012db594 Introduced constants for config 2020-03-19 19:06:05 +01:00
Bjarke Berg b93b4f7c4f Changed CharCollection input to not special case : 2020-03-19 18:43:39 +01:00
Bjarke Berg f84798322c AB3671 - Moved WebRuntime into infrastracutre, and removed typefinder reference in AppCaches (Replaced with string input with Type)..
- Move initialized of Current.Factory out of webruntime
2020-03-19 08:53:18 +01:00
Bjarke Berg 00418959f2 Extracted IConfigManipulator from IConnectionStrings, and implemented a XML (legacy) and JSON version. 2020-03-18 19:17:51 +01:00
Bjarke Berg 814ab3e63f Aligned default values for configs 2020-03-18 11:29:29 +01:00
Bjarke Berg 2aac7e627f Provider name fix 2020-03-18 09:05:31 +01:00
Bjarke Berg 8c8a9764cd Post merge + Added new SmtpSettingsBuilder 2020-03-18 07:42:35 +01:00
Bjarke Berg 9bf2d650ec Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/unit-test-project 2020-03-18 07:03:03 +01:00
Bjarke Berg 3e54d96f77 Bugfix 2020-03-18 06:36:52 +01:00
Bjarke Berg fb15da61aa build fixes 2020-03-17 20:13:16 +01:00
Bjarke Berg c2805a5067 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/aspnetcore-config
# Conflicts:
#	src/Umbraco.Configuration/ConfigsFactory.cs
#	src/Umbraco.Core/Configuration/ConfigsExtensions.cs
#	src/Umbraco.Tests/TestHelpers/TestObjects.cs
#	src/Umbraco.Web.BackOffice/AspNetCore/UmbracoBackOfficeServiceCollectionExtensions.cs
#	src/Umbraco.Web/UmbracoApplicationBase.cs
2020-03-17 18:33:10 +01:00
Bjarke Berg 3e75c889ab Imaging settings 2020-03-17 17:56:00 +01:00
Bjarke BergandGitHub f671fea998 NetCore: Refactor config/setting to not use dependencies (#7810)
* Avoid usage of IOHelper in GlobalSettings

* Avoid usage of IOHelper in ModelsBuilderConfig.cs

* Avoid usage of IOHelper in ConnectionStrings.cs

* Simplified more config

* Fix for ModelsBuilderConfig

* Moved GetUmbracoMvcAreaNoCache to IOHelperExtensions
2020-03-17 16:26:56 +01:00
Elitsa Marinovska 3dc5e438d0 Refactoring logic for updating ClientDependency version and deleting its temp directories 2020-03-17 15:45:34 +01:00
Bjarke Berg 0efc335e4f Merge branch 'netcore/feature/imagesharp-config' into netcore/feature/aspnetcore-config 2020-03-17 15:38:35 +01:00
Bjarke Berg 64ba5b6879 Clean up 2020-03-17 15:36:48 +01:00
Elitsa Marinovska 30516bfa12 Creating JavaScriptHelper class and taking some of the logic from the JsInitialization class 2020-03-17 15:36:38 +01:00
Elitsa Marinovska ae4b9c3f42 Moving CDF related files into its own folder 2020-03-17 15:35:18 +01:00
Elitsa Marinovska 755b52e136 Abstracting more CDF methods 2020-03-17 15:33:40 +01:00
Elitsa Marinovska 0eb194cd66 Removing dependency registration from WebInitialComposer as it is done in ClientDependencyComposer 2020-03-17 14:53:40 +01:00
Elitsa Marinovska 55f02f6d3f Refactoring the prop for getting the CDF version and its usages. Getting the HttpContext from httpContextAccessor. Removing FileMapDefaultFolder prop as it will be added in a new file 2020-03-17 14:52:06 +01:00
Bjarke Berg 1457e98554 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev 2020-03-17 14:11:39 +01:00
Bjarke Berg b2d529dea6 Merge branch 'netcore/feature/simplify-config' into netcore/feature/aspnetcore-config 2020-03-17 14:10:06 +01:00
Bjarke Berg 1c7187e2ee Moved GetUmbracoMvcAreaNoCache to IOHelperExtensions 2020-03-17 14:06:06 +01:00
Bjarke Berg 6d8a23504e Remove resize parameters if larger than 5000 2020-03-17 11:39:55 +01:00
Elitsa Marinovska 7d2f5aee49 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5490-abstract-clientdependency
# Resolved Conflicts:
#	src/Umbraco.Web.UI/Umbraco/Views/AuthorizeUpgrade.cshtml
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
#	src/Umbraco.Web/Composing/Current.cs
#	src/Umbraco.Web/Editors/BackOfficeController.cs
#	src/Umbraco.Web/Editors/BackOfficeServerVariables.cs
#	src/Umbraco.Web/Editors/PreviewController.cs
#	src/Umbraco.Web/HtmlHelperBackOfficeExtensions.cs
2020-03-17 11:01:32 +01:00
Elitsa Marinovska da24b03b3b Changing to the new types and referencing the abstraction methods 2020-03-17 10:35:06 +01:00
Elitsa Marinovska 4b7d823aca Injecting the abstraction whenever necessary 2020-03-17 10:28:03 +01:00
Elitsa Marinovska df0f75c98f Creating a ClientDependencyComponent and Composer for taking out ConfigureClientDependency() 2020-03-17 10:25:55 +01:00
Elitsa Marinovska ca5acbe24b Creating abstraction and its implementation for untangling CDF from the code 2020-03-17 10:24:11 +01:00
Elitsa Marinovska de9d82777f Introducing ReplaceFirst() as string extension instead of using the CDF one 2020-03-17 10:21:43 +01:00
Elitsa Marinovska 0df497fd95 Creating our own types because we don't want to reference CDF 2020-03-17 10:17:53 +01:00
Bjarke Berg a96bcc05f5 Use the new ConfigsFactory 2020-03-16 19:14:04 +01:00
Bjarke Berg 449d534701 Fix buf in Healthchecksettings 2020-03-16 19:00:18 +01:00
Bjarke Berg 877339e7db Implemented most of the configs for asp.net core 2020-03-16 18:51:35 +01:00
Bjarke Berg bb89eec04f Merge branch 'netcore/feature/simplify-config' into netcore/feature/aspnetcore-config 2020-03-16 14:57:11 +01:00
Scott Brady db87a9dd40 Compiling with minimal Microsoft.AspNet.Identity references 2020-03-16 13:53:03 +00:00
Bjarke Berg de0a578dc8 Fix for ModelsBuilderConfig 2020-03-16 14:48:41 +01:00
Bjarke Berg 51879c0b80 Implemented config for asp.net core 2020-03-16 14:02:08 +01:00
Shannon 7e679f34c4 fixes sln 2020-03-16 22:41:55 +11:00
Bjarke Berg c1f42a9258 Simplified more config 2020-03-13 20:37:15 +01:00
Scott Brady 2e7e6bc4a9 Initial side by side implementation 2020-03-13 15:15:14 +00:00
Bjarke Berg 263b986ced Avoid usage of IOHelper in ConnectionStrings.cs 2020-03-13 12:45:22 +01:00
Bjarke Berg 1c03b470d9 Avoid usage of IOHelper in ModelsBuilderConfig.cs 2020-03-13 12:16:20 +01:00
Bjarke Berg ea15fdb14e Avoid usage of IOHelper in GlobalSettings 2020-03-13 10:00:03 +01:00
Shannon cb749242ff name change 2020-03-13 19:12:52 +11:00
Shannon 44fd18d787 Gets AddUmbracoBackOffice working 2020-03-13 19:10:21 +11:00
Shannon 9ded4c7ddb Wires up DI for cross wiring correctly ensuring that it occurs at the very end of ConfigureServices, updates tests accordingly, fixes a few other things. 2020-03-13 18:44:58 +11:00
Shannon c9913f45a0 Moves LightInjectValidation to common and validates the container as part of new tests 2020-03-13 15:59:04 +11:00
Shannon f57a2ec576 less allocations 2020-03-13 14:45:54 +11:00
Shannon 41163c3c78 Gets CoreRuntime loading/booting in integration project 2020-03-13 14:43:41 +11:00
Shannon fea65897ba Merge branch 'netcore/dev' into netcore/feature/booting-netcore 2020-03-13 12:50:08 +11:00
Shannon 6fafe0408d oops fixes build 2020-03-13 12:47:09 +11:00
Shannon 94c9057119 Moves some stub test objects to the common test lib 2020-03-13 12:44:42 +11:00
Shannon 32a27be206 fixing tests 2020-03-13 12:33:28 +11:00
Shannon 54727ca0fd Ensures package versions are all streamlined 2020-03-13 12:24:43 +11:00
Shannon 4e4df96140 Creates new Umbraco.Tests.Common netstandard project to host the common testing functionality between netframework and netcore, this will be ongoing work (doesn't need to be done all at once) 2020-03-13 12:08:25 +11:00
Shannon a01b06fc64 fix build after merge 2020-03-13 11:17:16 +11:00
Shannon 6c4acfca31 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/booting-netcore 2020-03-13 11:15:28 +11:00
Shannon ef99d434d8 update ignore 2020-03-13 11:15:02 +11:00
Shannon 4cc20b06bc updates lightinject, adds method to create an LI container from an MSDI collection, updates a test 2020-03-13 11:13:47 +11:00
Shannon DeminickandGitHub 7f8c7e472f Merge pull request #7778 from umbraco/netcore/feature/typefinder-netstandard
Creates a netstandard compliant TypeFinder
2020-03-13 11:11:50 +11:00
Shannon DeminickandGitHub f9d29b17e2 Merge pull request #7800 from umbraco/netcore/feature/cleanup-config
NetCore: Granulate the Config/Settings
2020-03-13 11:09:15 +11:00
Bjarke Berg 5f13dde1cd Moved functionality to write to the connection strings into the configuration area 2020-03-12 16:56:39 +01:00
Bjarke Berg c486444eda Cleaned up config for Content settings 2020-03-12 15:30:22 +01:00
Bjarke Berg cb0994a929 Cleaned up config for Security settings 2020-03-12 14:36:25 +01:00
Shannon da58b7a743 Adds integration test project for netcore3 and poc for crosswiring di container with msdi 2020-03-12 23:28:24 +11:00
Bjarke Berg e27a05c3e8 Cleaned up config for RequestHandler settings 2020-03-12 12:46:08 +01:00
Bjarke Berg e2dfc68718 Cleaned up config for WebRouting settings 2020-03-12 09:52:34 +01:00
Bjarke Berg e4ff481053 Cleaned up config for Keep Alive settings 2020-03-12 08:28:31 +01:00
Bjarke Berg f446e52d8f Cleaned up condig for Logging and Tours 2020-03-12 08:24:02 +01:00
Shannon 84847267ba updates CoreRuntime with notes and fallback 2020-03-12 15:26:06 +11:00
Bjarke Berg e07c9abd58 Updated js code in UI project 2020-03-11 12:54:33 +01:00
Bjarke Berg da7552204d Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Web/Models/RegisterModel.cs
#	src/Umbraco.Web/UmbracoHelper.cs
2020-03-11 07:44:17 +01:00
Shannon e3997a4ab2 adds notes 2020-03-11 15:32:26 +11:00
Shannon 3bfa2e76cb Adjust type finder and adds benchmark 2020-03-11 15:28:08 +11:00
Shannon 66cd25d8f5 Adds notes 2020-03-11 13:10:34 +11:00
Shannon 5ee2286436 Removes build manager type finder and friends 2020-03-11 12:43:46 +11:00
Bjarke Berg 9d6762fb6a Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Core/Models/PropertyType.cs
#	src/Umbraco.Examine.Lucene/BackOfficeExamineSearcher.cs
#	src/Umbraco.Infrastructure/Models/Mapping/EntityMapDefinition.cs
#	src/Umbraco.Tests/Models/PropertyTypeTests.cs
2020-03-10 08:25:43 +01:00
Scott Brady 4e69e1abe6 Initial user store 2020-03-09 16:01:57 +00:00
Bjarke BergandGitHub be753754a4 Merge pull request #7740 from AndyButland/netcore/77007-replace-no-nodes
NetCore: Replaced nonodes.aspx with MVC controller and view, with configurable view location
2020-03-09 12:07:06 +01:00
Shannon 8cb39ba583 Fixes tests and some issues discovered 2020-03-09 21:23:38 +11:00
Shannon fce27fd42d Ensures all assemblies at the same location as the entry point assemblies are queried. 2020-03-09 14:15:02 +11:00
Shannon d92fc8736a More cleanup, cleans up tests, cleans up the BuildManagerAssemblyProvider (even though it's not used) 2020-03-09 13:31:56 +11:00
Shannon 0c8426f308 Cleans up POC code (still more to do) 2020-03-09 13:14:16 +11:00
Shannon 41c2d01078 initial POC code 2020-03-09 11:03:42 +11:00
Andy Butland 8e3967c596 Merge branch 'netcore/dev' into netcore/77007-replace-no-nodes
# Conflicts:
#	src/Umbraco.Core/Configuration/IGlobalSettings.cs
#	src/Umbraco.Core/Constants-Web.cs
2020-03-06 07:28:13 +01:00
Andy Butland 3d20653310 Aligned files with new project structure and fixed failing unit tests. 2020-03-05 07:53:27 +01:00
Andy Butland e21d0870a7 Merge branch 'netcore/dev' into netcore/7668-remove-repository-concerns-from-services
# Conflicts:
#	src/Umbraco.Infrastructure/Composing/CompositionExtensions/Repositories.cs
2020-03-05 07:36:14 +01:00
Shannon DeminickandGitHub fbe3925b54 Merge pull request #7705 from umbraco/netcore/feature/executable-backoffice
NetCore: Executable in .NET Core
2020-03-05 15:20:47 +11:00
Shannon 4a01cfe754 changes to class libraries 2020-03-05 15:20:08 +11:00
Bjarke Berg 290e5b58a0 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/executable-backoffice
# Conflicts:
#	src/Umbraco.Web/Runtime/WebRuntime.cs
2020-03-04 10:10:03 +01:00
Bjarke BergandGitHub d53dd71204 Merge pull request #7750 from umbraco/netcore/feature/untangle-membership
Netcore: Untangle membership helper and trim Web even more
2020-03-04 08:20:25 +01:00
Bjarke Berg 152fcf7d1b Fixed based on review findings 2020-03-04 07:50:37 +01:00
Bjarke BergandGitHub fec9c44433 Merge pull request #7751 from cyberdot/temp-7667
NetCore: Abstract ConfigurationManager references
2020-03-03 14:39:21 +01:00
Bjarke Berg 2d175ffb86 - Moved ModelsBuilder constant into Core under constants
- Move the registration of configs into the factory
- Moved extension methods of ModelsMode into Umbraco.Core
- Removed references to Umbraco.Configuration from Umbraco.Infrastructure and Umbraco.ModelsBuilder.Embedded
2020-03-03 14:15:30 +01:00
Bjarke Berg 341ac1c46b Removed the abstractions project file 2020-03-03 13:46:02 +01:00
Bjarke Berg bce196353e Fix view 2020-03-03 13:43:53 +01:00
Bjarke Berg 53953338d8 Merged Umbraco.Abstractions into Umbraco.Core 2020-03-03 13:42:07 +01:00
cyberdotandGitHub efd8e37f34 Merge branch 'netcore/dev' into temp-7667 2020-03-03 12:05:31 +00:00
cyberdot 01362d0dd0 NetCore: Abstract ConfigurationManager references 2020-03-03 11:18:54 +00:00
Bjarke Berg a4003ad799 Clean up 2020-03-03 12:09:15 +01:00
Bjarke Berg 53769b42b3 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/untangle-membership 2020-03-03 12:01:54 +01:00
84f19e093a NetCore: Refactor internal usages of UmbracoHelper (#7744)
* Removing properties related to IPublishedContentQuery, ITagQuery, ICultureDictionaryFactory, IUmbracoComponentRenderer from UmbracoHelper and using the corresponding private fields instead. Removing Media related methods

* Removed UmbracoHelper from UmbracoApiControllerBase

* Removed UmbracoHelper references

* Inject the needed Interfaces to classes that previously used UmbracoHelper to get the same functionality

* Fixed tests referencing UmbracoHelper

* Adding Media methods back

* Cleanup and moved UmbracoHelper from more base classes, when not used + simplified tests

* Reintroduced some methods..

* Reintroduced some methods..

* Reintroducing last missing bits

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2020-03-03 11:59:17 +01:00
Bjarke Berg e9f7034365 Moved compoenents and composers 2020-03-03 07:29:51 +01:00
Andy Butland 5fb23951cf Amended as per PR comments to support replacement of no nodes functionality via customising the route table. 2020-03-02 17:17:14 +01:00
Bjarke Berg 81c975381f Merge branch 'netcore/dev' into netcore/feature/untangle-membership
# Conflicts:
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
2020-03-02 13:19:38 +01:00
Bjarke Berg 6f5e7b9617 Replace the favicon with the U-logo 2020-03-02 09:08:14 +01:00
Bjarke Berg 07238e277b Merge branch 'netcore/dev' into netcore/feature/executable-backoffice 2020-03-02 09:07:25 +01:00
Bjarke Berg 4d3e9601f9 post merge fix 2020-03-02 09:07:05 +01:00
Bjarke Berg 1ea39f2762 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs
#	src/Umbraco.Core/Models/PublishedContent/PublishedContentBase.cs
#	src/Umbraco.Core/Models/PublishedContent/PublishedContentWrapped.cs
#	src/Umbraco.Core/Packaging/ConflictingPackageData.cs
#	src/Umbraco.Core/Packaging/PackagesRepository.cs
#	src/Umbraco.Core/PublishedCache/PublishedMember.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MacroRepository.cs
#	src/Umbraco.Infrastructure/PropertyEditors/RichTextEditorPastedImages.cs
#	src/Umbraco.PublishedCache.NuCache/PublishedContent.cs
#	src/Umbraco.Tests/Persistence/Repositories/MacroRepositoryTest.cs
#	src/Umbraco.Tests/PublishedContent/SolidPublishedSnapshot.cs
#	src/Umbraco.Web/Macros/PublishedContentHashtableConverter.cs
#	src/Umbraco.Web/PublishedContentExtensions.cs
#	src/Umbraco.Web/Trees/MediaTypeTreeController.cs
2020-03-02 08:34:52 +01:00
Bjarke BergandGitHub cd44935b1c Merge pull request #7722 from umbraco/netcore/feature/move-more-install-stuff
NetCore: Moved install steps + dashboards
2020-03-02 08:28:01 +01:00
Bjarke Berg b5171fae30 Introduced GetRequiredUmbracoContext extension on IUmbracoContextAccessor 2020-03-02 07:58:02 +01:00
Bjarke Berg ef16321265 Break cycular dependency, by injecting IUmbracoDatabaseFactory instead of ISqlContext Directly 2020-03-02 07:50:55 +01:00
Andy Butland e6a55a215a Replaced nonodes.aspx with MVC controller and view, with configurable view location. 2020-02-29 14:26:35 +01:00
Bjarke Berg 7daee53c64 Isolated more web usages - Membership and Request stuff
- Moved a few more files
2020-02-28 11:15:25 +01:00
Bjarke Berg 953c3a667a More logic in AspNetCoreHostingEnvironment 2020-02-27 11:48:38 +01:00
Bjarke Berg bf2e8c90ed Merge branch 'netcore/feature/move-more-install-stuff' into netcore/feature/executable-backoffice 2020-02-27 11:16:17 +01:00
Bjarke Berg c3fcbc0a72 Moved functionality from HostingEnvironment into IUmbracoApplicationLifetime, to not have duplicated logic 2020-02-27 11:13:57 +01:00
Bjarke Berg 2a16ebee0b Added more aspnet core implementation of interfaces 2020-02-27 11:10:43 +01:00
Bjarke Berg 178a172be1 Merge branch 'netcore/feature/move-more-install-stuff' into netcore/feature/executable-backoffice 2020-02-27 10:58:48 +01:00
Bjarke Berg 0c56437ddd Merge branch 'netcore/dev' into netcore/feature/move-more-install-stuff
# Conflicts:
#	src/Umbraco.Web/Composing/Current.cs
2020-02-27 10:55:26 +01:00
Bjarke Berg f0dee45069 Refactored UmbracoApplication.Restart 2020-02-27 10:55:07 +01:00
Bjarke Berg dc36fa1290 Fix issues in views 2020-02-27 10:43:09 +01:00
Bjarke Berg 765f50a301 Merge branch 'netcore/feature/move-more-install-stuff' into netcore/feature/executable-backoffice 2020-02-27 10:04:30 +01:00
Bjarke Berg 6b9042de7d Merge branch 'netcore/dev' into netcore/feature/move-more-install-stuff
# Conflicts:
#	src/Umbraco.Web/UmbracoHelper.cs
2020-02-27 10:03:13 +01:00
Bjarke Berg 8e3cb8f3e6 Removed MembershipHelper from UmbracoHelper 2020-02-27 09:56:35 +01:00
Bjarke Berg ba97598044 - Moved dashboards to Core
- Introduced IUserAgentProvider, instead of using HttpContext directly
- Introduced IUmbracoApplicationLifetime, instead of using UmbracoApplication directly
- Introduced IMachineKeyConfig instead of using WebConfigurationManager directly
- Move information about dbProvider to the SqlSyntax
- Moved install steps
2020-02-26 13:52:06 +01:00
Bjarke Berg c7a45eff1d Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/executable-backoffice 2020-02-26 10:39:11 +01:00
Bjarke Berg 8d76499969 Separated TreeNode stuff from the commonMapper to allow move of more mappers 2020-02-26 10:33:05 +01:00
Bjarke BergandGitHub 57aa93959a Merge pull request #7717 from umbraco/netcore/feature/migrate-more-property-editors
Netcore: Move property editors to Infrastructure
2020-02-26 07:49:36 +01:00
Bjarke BergandGitHub 35eb67dd10 Merge pull request #7712 from umbraco/netcore/feature/AB5168-migrate-macros
Netcore: Move macros to Abstractions and Infrastructure
2020-02-26 07:39:06 +01:00
Bjarke Berg 5e1ac76e5f Bugfix: Sometimes the httpcontext is null here 2020-02-25 21:11:17 +01:00
Scott Brady a05a45bb64 Added identity stores. TODOs 2020-02-25 18:21:07 +00:00
Scott Brady 38ea741d78 Removed use of Identity.Owin extension methods. Replaced security stamp constant 2020-02-25 18:06:11 +00:00
Scott Brady 3294ee8e18 Addd ASP.NET Core Identity 2020-02-25 17:32:39 +00:00
elitsa 42db16b430 Moving the last few Property Editors to Infrastructure proj 2020-02-25 16:06:14 +01:00
Scott Brady 70232be288 Merge branch 'netcore/dev' into netcore/feature/users 2020-02-25 14:05:47 +00:00
e0b9219528 Update MacroContent.cs to use is operator for comparison to null
Co-Authored-By: Bjarke Berg <mail@bergmania.dk>
2020-02-25 14:27:58 +01:00
elitsa 02fbf0f9e7 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5168-migrate-macros 2020-02-25 13:44:48 +01:00
elitsa 0bdf03bda2 Removing the last references to MacroTypes and removing the references to pageElements coming from old legacy (PublishedContentHashtableConverter), which is deleted as well 2020-02-25 13:43:08 +01:00
elitsa 65e719cfa6 Migrating more Macro files to Abstractions or Infrastructure 2020-02-25 13:40:22 +01:00
elitsa 0a130d6bbd Removing MacroType enum as we only have one type - PartialView. Refactoring all its references and fixing tests 2020-02-25 13:38:36 +01:00
elitsa c3d3e6e27d As GetAsText() had no other purpose when WebForm Controls were removed, it is now replaced with the populated Text property 2020-02-25 13:33:22 +01:00
elitsa 10563577d9 Eliminating WebForms Controls from MacroContent and migrating the file from Web to Abstractions/Core project 2020-02-25 13:29:03 +01:00
Bjarke Berg 85df997486 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/executable-backoffice 2020-02-25 12:00:40 +01:00
Bjarke Berg bf4023afa7 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Infrastructure/PropertyEditors/DataValueReferenceFactoryCollection.cs
#	src/Umbraco.Web/Models/Mapping/ContentMapDefinition.cs
#	src/Umbraco.Web/PropertyEditors/ValueConverters/MarkdownEditorValueConverter.cs
2020-02-25 11:57:11 +01:00
Bjarke Berg 814e74b5c5 removed reference to non existing project 2020-02-25 10:58:53 +01:00
Bjarke Berg d140723b22 Cleanup legacy stuff in Umbraco.Web.csproj 2020-02-25 10:56:33 +01:00
Bjarke Berg 95a27b82a2 Fix for jobject casting issue 2020-02-25 10:40:39 +01:00
Bjarke Berg f5a1981ea5 Moved dashboards 2020-02-25 10:18:31 +01:00
Bjarke Berg 4aac898e08 Worked on AspNetCoreHostingEnvironment.cs 2020-02-25 10:18:07 +01:00
Scott Brady 80a15c5785 Merge branch 'netcore/dev' into netcore/feature/users 2020-02-25 09:12:25 +00:00
Bjarke Berg 8f5ffb8da6 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/executable-backoffice 2020-02-25 09:03:52 +01:00
Bjarke Berg 9a8ecea8a6 Updated copyright year 2020-02-25 08:56:58 +01:00
Bjarke Berg 04caec842a Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/executable-backoffice
# Conflicts:
#	src/Umbraco.Examine/Umbraco.Examine.csproj
2020-02-25 08:38:15 +01:00
Bjarke BergandGitHub 06af62d87d Merge pull request #7691 from umbraco/netcore/feature/move-mappings-after-httpcontext
NetCore: Move more files
2020-02-25 08:26:39 +01:00
Bjarke Berg 6bb920b457 Added comments, and replaced a static helper with extension methods 2020-02-25 07:57:59 +01:00
Bjarke Berg 14eb630cc3 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/move-mappings-after-httpcontext
# Conflicts:
#	src/Umbraco.Examine/Umbraco.Examine.csproj
2020-02-24 16:19:14 +01:00
Bjarke Berg 36b68f2966 Creating composition root 2020-02-24 16:18:47 +01:00
Bjarke Berg 20201fb6be Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/executable-backoffice 2020-02-24 14:58:58 +01:00
Bjarke BergandGitHub 4425c3d5c0 Merge pull request #7708 from umbraco/netcore/feature/csharp-8
Netcore: Updated projects to have C# 8 support
2020-02-24 14:58:42 +01:00
Bjarke Berg aad8cba039 Updated projects to have C# 8 support 2020-02-24 13:37:27 +01:00
Bjarke Berg e74c22ec87 Merge branch 'netcore/feature/move-mappings-after-httpcontext' into netcore/feature/executable-backoffice 2020-02-24 11:46:58 +01:00
Bjarke Berg 1d6e423b98 Added Imagesharp to the website stuff 2020-02-24 11:37:51 +01:00
Bjarke BergandGitHub c9b970e872 Using the ServiceContext from the baseclass instead of Current.Services in tests (#7644) 2020-02-24 11:27:02 +01:00
Bjarke Berg 329ad4324e Removed file 2020-02-24 10:53:54 +01:00
Bjarke Berg 5517186cb7 Added Web.Website 2020-02-24 10:51:48 +01:00
Bjarke Berg f398f578ea Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/executable-backoffice 2020-02-24 10:40:16 +01:00
Bjarke Berg de59d499a9 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/move-mappings-after-httpcontext 2020-02-24 10:39:39 +01:00
Bjarke Berg 133b194d7e Roll back to c# 7 on core 2020-02-24 10:14:16 +01:00
Bjarke Berg de95a1c712 Roll back to c# 7 on core 2020-02-24 10:10:25 +01:00
Bjarke Berg 20a7a6be42 Merge branch 'netcore/dev' into netcore/feature/move-mappings-after-httpcontext 2020-02-24 10:06:59 +01:00
Bjarke Berg c975162e14 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/executable-backoffice 2020-02-24 09:57:27 +01:00
Bjarke Berg 683c0b8732 Merge branch 'netcore/dev' into netcore/feature/move-mappings-after-httpcontext 2020-02-24 08:24:19 +01:00
Bjarke Berg 90c2381c86 Renamed Umbraco.Abstractions to Umbraco.Core 2020-02-24 08:21:53 +01:00
Bjarke Berg e497079a89 Merge branch 'netcore/feature/move-mappings-after-httpcontext' into netcore/feature/executable-backoffice 2020-02-20 10:16:24 +01:00
Bjarke Berg 8c0e50ccd6 Fix issue in Test project still referencing Umbraco.Examine 2020-02-20 09:25:26 +01:00
Bjarke Berg bbe9aa1848 Fix issue with NuCache knowing the web project 2020-02-20 09:05:42 +01:00
Bjarke Berg 46a68d1b86 Rename file to align with class name 2020-02-20 09:00:50 +01:00
Bjarke Berg d1c39a813a Merge branch 'netcore/dev' into netcore/feature/move-mappings-after-httpcontext
# Conflicts:
#	src/Umbraco.Infrastructure/Runtime/CoreInitialComposer.cs
#	src/Umbraco.Web/Install/InstallHelper.cs
2020-02-20 08:46:54 +01:00
Bjarke Berg 46f00cf960 Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2020-02-20 08:34:01 +01:00
Bjarke Berg 79ee20a45b Post merge - Move files into correct locations 2020-02-20 08:33:28 +01:00
Bjarke BergandGitHub b8b31e7814 Merge pull request #7639 from emmagarland/netcore/feature/7369-removeservices-unittests
Replaced instances of Current.Services.MediaService in more Unit Tests
2020-02-20 08:31:34 +01:00
Bjarke Berg e96d094c71 Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2020-02-20 08:26:04 +01:00
Shannon DeminickandGitHub ba2c0da379 Merge pull request #7646 from AndyButland/netcore/fix-circular-dependency-data-type-repository
Removed circular dependency between data type service and repository
2020-02-20 18:11:01 +11:00
Bjarke Berg e6c315ff69 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Core/Umbraco.Core.csproj
#	src/Umbraco.Infrastructure/Runtime/CoreInitialComposer.cs
#	src/Umbraco.Web/Editors/UpdateCheckController.cs
#	src/Umbraco.Web/Install/InstallHelper.cs
2020-02-20 08:06:37 +01:00
Bjarke Berg ce821ee2bf worked on HostingEnvironment 2020-02-20 07:55:24 +01:00
Shannon DeminickandGitHub ac6cf7be6b Merge pull request #7664 from umbraco/netcore/feature/move-files-after-umbraco-context-abstractions
Netcore: Removed `UrlProvider` from `UmbracoContext`
2020-02-20 17:51:08 +11:00
Bjarke Berg 942bb0d585 Merge branch 'netcore/feature/move-mappings-after-httpcontext' into netcore/feature/executable-backoffice
# Conflicts:
#	src/Umbraco.Abstractions/CompositionExtensions.cs
2020-02-19 14:44:22 +01:00
emma burstow 2a277eec6b Merge branch 'v8/contrib' into pr/7231 2020-02-19 13:35:22 +00:00
Bjarke Berg e69ef327a9 Moved Editor stuff that was not controllers 2020-02-19 13:33:04 +01:00
Bjarke Berg 9f5da7f5a8 Merge branch 'netcore/feature/move-files-after-umbraco-context-abstractions' into netcore/feature/move-mappings-after-httpcontext 2020-02-19 13:11:46 +01:00
Bjarke Berg aa918716d8 Removed possibility to inject HttpContextBase directly. - Refactored last occurence 2020-02-19 12:56:55 +01:00
Bjarke Berg ca4f0a8057 Merge branch 'netcore/feature/move-files-after-umbraco-context-abstractions' into netcore/feature/move-mappings-after-httpcontext
# Conflicts:
#	src/Umbraco.Web/Install/InstallHelper.cs
#	src/Umbraco.Web/Models/Mapping/CommonMapper.cs
2020-02-19 11:40:25 +01:00
Bjarke Berg b964ff1d3e Introduced an extension method on IHttpContextAccessor that return the HttpContext or throws if null. 2020-02-19 10:18:27 +01:00
Bjarke Berg 610d807006 Fixed integration tests by composing the MediaUrlGenerators 2020-02-19 10:17:49 +01:00
Bjarke Berg 750b6f6a18 Move more files and fixed circular dependency 2020-02-19 09:29:10 +01:00
Shannon 13a56eb085 Renames and refactors the MediaUrlGeneratorCollection and ensure that this collection is used wherever IMediaUrlGenerator is needed instead of relying property editors possibly being the implementation. 2020-02-19 16:37:00 +11:00
Shannon 04c620d76e Reverts how UmbracoContextReference works 2020-02-19 15:46:54 +11:00
Shannon 5cb5585574 Removes ICurrentUserAccessor since we don't need it, fixes editorconfig (for now) 2020-02-19 15:38:22 +11:00
Bjarke Berg fb5d4fcb2f Merge branch 'netcore/feature/move-files-after-umbraco-context-abstractions' into netcore/feature/move-mappings-after-httpcontext
# Conflicts:
#	src/Umbraco.Infrastructure/Runtime/CoreInitialComposer.cs
2020-02-18 14:22:30 +01:00
Bjarke Berg 5a61b27366 Break cycle by introducing DataEditorWithMediaPathCollection 2020-02-18 13:56:31 +01:00
Bjarke Berg accef6d96a Merged Umbraco.Examine and Umbraco.Infrastructure and moved more files into Infrastructure 2020-02-18 13:34:31 +01:00
Bjarke Berg ecaa3be637 Merge branch 'netcore/feature/move-files-after-umbraco-context-abstractions' into netcore/feature/move-mappings-after-httpcontext 2020-02-18 11:40:05 +01:00
Bjarke Berg e6e3fc39fb Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/move-files-after-umbraco-context-abstractions
# Conflicts:
#	src/Umbraco.Infrastructure/Runtime/CoreInitialComposer.cs
2020-02-18 11:39:34 +01:00
Bjarke Berg 51f6d30dbc Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/move-mappings-after-httpcontext
# Conflicts:
#	src/Umbraco.Infrastructure/Runtime/CoreInitialComposer.cs
2020-02-18 11:38:51 +01:00
Bjarke Berg f254d3754b Moved files from Backoffice to application + clean up 2020-02-18 11:32:31 +01:00
Bjarke Berg 5e79585149 Introduced Umbraco.Web.UI.Backoffice 2020-02-18 08:32:06 +01:00
Andy Butland 0bba475533 Amends to key value service/repository to better match existing repository patterns. 2020-02-17 22:12:42 +01:00
Bjarke Berg 43b33f9e6b Move features
- Introduced IUmbracoFeature
Move Install
Move Tree Items
 - Introduced IMenuItemCollectionFactory - to insure injection of ActionCollection
2020-02-17 14:58:34 +01:00
Bjarke Berg 7a6ded2f6e Merge branch 'netcore/feature/move-files-after-umbraco-context-abstractions' into netcore/feature/move-mappings-after-httpcontext 2020-02-17 13:23:02 +01:00
Bjarke Berg aeca49dddb Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/move-files-after-umbraco-context-abstractions
# Conflicts:
#	src/Umbraco.Abstractions/PublishedContentExtensions.cs
#	src/Umbraco.Abstractions/Routing/AliasUrlProvider.cs
#	src/Umbraco.Abstractions/Routing/DefaultMediaUrlProvider.cs
#	src/Umbraco.Abstractions/Routing/DefaultUrlProvider.cs
#	src/Umbraco.Abstractions/Routing/UrlProvider.cs
#	src/Umbraco.Abstractions/Routing/UrlProviderExtensions.cs
#	src/Umbraco.Infrastructure/Runtime/CoreInitialComposer.cs
#	src/Umbraco.Tests/Cache/DistributedCacheBinderTests.cs
#	src/Umbraco.Tests/Routing/GetContentUrlsTests.cs
#	src/Umbraco.Tests/Routing/MediaUrlProviderTests.cs
#	src/Umbraco.Tests/Routing/UmbracoModuleTests.cs
#	src/Umbraco.Tests/Routing/UrlProviderTests.cs
#	src/Umbraco.Tests/Routing/UrlsProviderWithDomainsTests.cs
#	src/Umbraco.Tests/Routing/UrlsWithNestedDomains.cs
#	src/Umbraco.Tests/Security/BackOfficeCookieManagerTests.cs
#	src/Umbraco.Tests/TestHelpers/TestHelper.cs
#	src/Umbraco.Tests/TestHelpers/TestObjects-Mocks.cs
#	src/Umbraco.Tests/Testing/Objects/TestUmbracoContextFactory.cs
#	src/Umbraco.Tests/Testing/UmbracoTestBase.cs
#	src/Umbraco.Tests/Web/Mvc/RenderIndexActionSelectorAttributeTests.cs
#	src/Umbraco.Tests/Web/Mvc/SurfaceControllerTests.cs
#	src/Umbraco.Web/Models/Mapping/ContentMapDefinition.cs
#	src/Umbraco.Web/PublishedContentExtensions.cs
#	src/Umbraco.Web/UmbracoContext.cs
#	src/Umbraco.Web/UmbracoContextFactory.cs
#	src/Umbraco.Web/UmbracoInjectedModule.cs
2020-02-17 13:07:59 +01:00
Bjarke BergandGitHub 2b8be2cf00 Netcore: Move files from Web/Routing to Abstractions/Routing (#7642)
* AB4951 - Move routing files to abstractions

* Changed UriUtility from static to instance

* Moved more files from Routing in web to Abstractions

* Moved UrlProvider to Abstractions

* Moved PublishedRequest to Abstractions
2020-02-17 12:07:51 +01:00
Bjarke Berg e7e4dc8441 Clean up 2020-02-17 10:07:18 +01:00
Bjarke Berg 402867f115 Moved lots of mapping files 2020-02-17 09:15:48 +01:00
Bjarke Berg f2b1558cb1 Review fixes from comments on https://github.com/umbraco/Umbraco-CMS/pull/7664 2020-02-17 09:04:15 +01:00
Bjarke Berg 7a55852cbb Update editor config to not force private constants to be named _camelCase 2020-02-17 09:02:27 +01:00
Shannon a69cffffce Merge branch 'netcore/dev' into netcore/feature/move-files-after-umbraco-context-abstractions 2020-02-17 11:53:08 +11:00
Shannon DeminickandGitHub 707e11ed69 Merge pull request #7619 from umbraco/netcore/feature/AB4919-untable-umbraco-context
NetCore: Untangle and abstract UmbracoContext
2020-02-17 10:29:18 +11:00
Andy Butland f92b43260a Added unit tests for new KeyValueRepository. 2020-02-15 12:17:48 +01:00
Andy Butland ac91b9ef5e Removed usage of obsoleteted method in UserService. 2020-02-15 11:10:25 +01:00
Andy Butland 40d7baca79 Migrated database concerns from KeyValueService to new repository. 2020-02-15 11:08:32 +01:00
Andy Butland 0b49c2d84e Removed a few duplicated comments. 2020-02-15 09:37:57 +01:00
Andy Butland 1f8d4b1db7 Moved implementation of check for existance of username on creating user from user service to repository. 2020-02-15 09:20:59 +01:00
Bjarke Berg 738e374061 Cleanup 2020-02-14 14:03:05 +01:00
Bjarke Berg 0bbd82b262 Removed Url stuff from UmbracoContext 2020-02-14 13:52:51 +01:00
Bjarke Berg ddfa57e57a Merge remote-tracking branch 'origin/netcore/feature/move-files-after-umbraco-context-abstractions' into netcore/feature/move-files-after-umbraco-context-abstractions 2020-02-14 13:18:10 +01:00
Bjarke BergandGitHub 0372b13495 Merge branch 'netcore/dev' into netcore/feature/move-files-after-umbraco-context-abstractions 2020-02-14 13:17:55 +01:00
Bjarke Berg c6e1e7b3e5 Untangled UrlProvider from UmbracoContext 2020-02-14 13:06:10 +01:00
Bjarke Berg dceb6c80f5 Merge branch 'netcore/feature/AB4919-untable-umbraco-context' into netcore/feature/move-files-after-umbraco-context-abstractions
# Conflicts:
#	src/Umbraco.Web/Security/WebSecurity.cs
#	src/Umbraco.Web/UmbracoContextFactory.cs
2020-02-14 09:00:50 +01:00
Bjarke Berg 6ccd63694d Fix merge issue 2020-02-14 08:51:17 +01:00
Bjarke Berg 293a5fbe33 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4919-untable-umbraco-context
# Conflicts:
#	src/Umbraco.Web/Templates/TemplateRenderer.cs
2020-02-14 08:34:04 +01:00
Bjarke Berg 463a081968 Merge remote-tracking branch 'origin/netcore/feature/AB4919-untable-umbraco-context' into netcore/feature/AB4919-untable-umbraco-context 2020-02-14 08:05:42 +01:00
Shannon e89096eeb6 Dont call Thread.GetDomain() more than needed 2020-02-14 12:36:22 +11:00
Shannon 31d71ad86e Removes methods/props from interfaces that don't need to be there, removes unused code, obsoletes some code we need to refactor 2020-02-14 12:30:56 +11:00
Shannon DeminickandGitHub 54af158012 Merge pull request #7650 from umbraco/netcore/feature/clean-up-legacy-alternative-template-stuff
NetCore: Removed legacy way of handling alternative templates..
2020-02-14 11:07:55 +11:00
Bjarke Berg 53a9e75a48 Refactor UmbracoContext to inject IHttpAccessor instead of HttpContext 2020-02-13 15:13:38 +01:00
Bjarke Berg 31130be85a Move files 2020-02-13 12:58:05 +01:00
Bjarke Berg 392828fcb2 Merge branch 'netcore/feature/use-request-cache-instead-of-httpcontext-items' into netcore/feature/move-files-after-umbraco-context-abstractions 2020-02-13 12:28:50 +01:00
Bjarke Berg b57a7690f5 Moved More files to infrastructure/abstractions 2020-02-13 11:21:20 +01:00
Bjarke Berg a69b985002 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4919-untable-umbraco-context 2020-02-13 09:50:19 +01:00
Bjarke Berg 6ae1f79b5f Moved IUmbracoContextAccessor 2020-02-13 09:44:13 +01:00
Bjarke Berg 04b1e37348 Reintroduced some code that could not be removed 2020-02-13 09:38:16 +01:00
Bjarke Berg 99045eaaa4 Reintroduced some code that could not be removed 2020-02-13 09:17:57 +01:00
Bjarke Berg a329fb1a92 Replaced HttpContextBase injection with HttpContextAccessor injection 2020-02-13 08:52:58 +01:00
Bjarke Berg 215cb60b15 Refactored usages of HttpContext.IsDebuggerEnabled to use the IHostingEnvironment.IsDebugMode 2020-02-13 07:56:50 +01:00
Bjarke Berg 85afde0ea1 Replaced usages of HttpContext.Items with usages of IRequestCache 2020-02-13 07:46:49 +01:00
Bjarke Berg 0f6c945fe0 Fix tests 2020-02-12 11:12:09 +01:00
Bjarke Berg 6c395db5a5 Removed legacy way of handling alternative templates.. Today we use ContentFinderByUrlAndTemplate 2020-02-12 10:56:23 +01:00
Andy Butland 1b7554c5ce Fixed failing unit test. 2020-02-12 09:05:31 +01:00
Benjamin Carleski bcd26b9243 Merge remote-tracking branch 'umbraco/temp-7538-image-url-generator' into netcore/dev
# Conflicts:
#	src/Umbraco.Abstractions/IImageUrlGenerator.cs
#	src/Umbraco.Abstractions/ImageUrlGenerationOptions.cs
#	src/Umbraco.Core/Composing/Current.cs
#	src/Umbraco.Core/Models/UserExtensions.cs
#	src/Umbraco.Core/PropertyEditors/ValueConverters/ImageCropperValue.cs
#	src/Umbraco.Core/Umbraco.Core.csproj
#	src/Umbraco.Tests/PropertyEditors/ImageCropperTest.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs
#	src/Umbraco.Tests/Runtimes/StandaloneTests.cs
#	src/Umbraco.Tests/Testing/UmbracoTestBase.cs
#	src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
#	src/Umbraco.Web/Templates/TemplateUtilities.cs
2020-02-11 16:53:13 -08:00
Andy Butland 927b7c0f75 Removed circular dependency between data type service and repository, by moving the creation of labels for missing property editors to the service. 2020-02-11 23:17:39 +01:00
Bjarke Berg 6f32470fdf Cleanup 2020-02-11 11:27:43 +01:00
Emma Garland 7afcbd5ec3 Replaced instances of MediaService with ServiceContext or existing injected mediaservice 2020-02-11 10:23:28 +00:00
Bjarke Berg ec1d829a3e Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4919-untable-umbraco-context
# Conflicts:
#	src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivatorBase.cs
#	src/Umbraco.Web/Macros/MacroRenderer.cs
2020-02-11 10:30:41 +01:00
Bjarke Berg 9449ed9a4d Fix views 2020-02-11 10:28:34 +01:00
Bjarke BergandGitHub c76fff9d04 Merge pull request #7618 from AndyButland/netcore/7617-published-content-element-property-extension-methods
Netcore: Migrate various extension methods on IPublishedContent, IPublishedElement and IPublishedProperty to Umbraco.Abstractions
2020-02-11 10:20:10 +01:00
Bjarke Berg 4d15c8c044 Bug fixes for macros 2020-02-10 19:59:47 +01:00
Bjarke Berg e94921b384 Introduced interface on PublishedRequest and moved interfaces to abstractions 2020-02-10 19:23:42 +01:00
Bjarke Berg 4b9d0941a4 Fix if httpContext is null we cannot wrap it 2020-02-10 15:05:35 +01:00
Bjarke Berg 3dcff69d34 Clean up 2020-02-10 14:40:24 +01:00
Bjarke Berg d151503dbf Started replacing UmbracoContext.HttpContext with injection of IHttpContextAccessor 2020-02-10 14:22:18 +01:00
ef7af69731 https://github.com/umbraco/Umbraco-CMS/issues/7138 - Injected IIOHelper (#7581)
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2020-02-10 11:23:23 +01:00
Bjarke Berg aa6a70efba Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4919-untable-umbraco-context 2020-02-10 09:45:14 +01:00
Bjarke BergandGitHub b850b3c8fe AB4950 - Created new Umbraco.Web.BackOffice project. Moved dashboards into this new project (#7615) 2020-02-10 09:06:29 +01:00
Bjarke Berg 5784449fce Started replacing UmbracoContext.HttpContext with injection of IHttpContextAccessor 2020-02-10 07:03:50 +01:00
Bjarke Berg 794e2ccdac Introduced interface on UrlProvider (Can't be named IUrlProvider) 2020-02-09 20:20:13 +01:00
Bjarke Berg 2658dae649 Introduced interface on WebSecurity 2020-02-09 20:10:49 +01:00
Bjarke Berg c335a8dbb5 Introduced interface on UmbracoContext 2020-02-09 19:05:39 +01:00
Bjarke Berg 99e011dc01 Moved search files to abstractions and infrastructure 2020-02-09 18:09:01 +01:00
Bjarke Berg 5491037d10 Removed CSharpTest.Net.Collections from nuspec 2020-02-09 10:39:11 +01:00
Bjarke Berg 1d25caaf14 Removed unused nuget from Umbraco.Web 2020-02-09 10:27:32 +01:00
Andy Butland c72b6649bf Fixed failing unit tests. 2020-02-08 11:33:49 +01:00
Andy Butland 0c0b94b10f Migrate various extension methods on IPublishedContent, IPublishedElement and IPublishedProperty to Umbraco.Abstractions 2020-02-08 10:02:33 +01:00
Bjarke Berg 3f7fae7369 Fix merge issues 2020-02-07 12:56:54 +01:00
Bjarke Berg 35a736e6cd Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Core/IO/SystemDirectories.cs
#	src/Umbraco.Core/Udi.cs
#	src/Umbraco.Core/Umbraco.Core.csproj
2020-02-07 10:04:28 +01:00
Bjarke BergandGitHub d721ab2e25 Merge pull request #7542 from AndyButland/feature/netcore-publish-cache
Moved PublishedCache from Umbraco.Web into .Net standard project (#7551)
2020-02-07 06:47:46 +01:00
Bjarke Berg 81bbd201ea Removed internal visible tos 2020-02-07 06:16:27 +01:00
Bjarke Berg add34e4f6b Removed unused interface 2020-02-07 06:13:59 +01:00
Niels Lyngsø a9732cb233 corrected button style to match new style 2020-02-06 14:57:25 +01:00
Bjarke Berg d147b182ee Renamed the project to Umbraco.PublishedCache.NuCache - and move non NuCache related stuff to abstractions and infrastructure. 2020-02-06 14:40:46 +01:00
Shannon 88df0fe691 Adds new methods to MembershipHelper for dealing with checking bulk paths for access 2020-02-07 00:17:21 +11:00
Bjarke Berg 0bc843b06d Merge remote-tracking branch 'origin/netcore/dev' into feature/netcore-publish-cache 2020-02-06 14:09:23 +01:00
Bjarke Berg a018315404 Removed references from web and Models builder.. Moved some classes to do so 2020-02-06 14:09:16 +01:00
Bjarke Berg c0a59cbad7 Renamed SqlCe Project 2020-02-06 08:49:02 +01:00
Bjarke BergandGitHub ebe7445a58 Merge pull request #7580 from umbraco/netcore/feature/examine-lucene-as-new-csproj-style
NetCore: Replaced the Umbraco.Examine.Lucene.csproj with the new format
2020-02-06 05:53:57 +01:00
Bjarke BergandGitHub 4e3980dd71 Merge pull request #7491 from benjaminc/netcore/feature/7368-CleanupObsoletes
Remove obsolete Stylesheet constant and references
2020-02-05 11:36:08 +01:00
Benjamin CarleskiandGitHub 0e150161f7 Add audit messages back 2020-02-05 01:52:10 -08:00
Bjarke Berg 27cae2bbde Genererate xmldoc on release 2020-02-05 08:47:59 +01:00
Bjarke Berg e13c17b02d Updated and aligned nuget package versions 2020-02-05 08:43:23 +01:00
Bjarke Berg a3867d93dd Replaced the Umbraco.Examine.Lucene.csproj with the new format (PackageReferences) 2020-02-05 08:17:30 +01:00
Andy Butland 41fde9318d Restored accidental change of csproj 2020-02-04 19:19:51 +01:00
Andy Butland b0c752bc5c Removed concrete type checks for back-office published cache details, so now working from interface. Renamed controller and FE assets to more generic name. 2020-02-04 19:18:35 +01:00
Andy Butland 28267087ef Merge branch 'feature/netcore-publish-cache' of https://github.com/AndyButland/Umbraco-CMS into feature/netcore-publish-cache
# Conflicts:
#	src/Umbraco.Web/PublishedContentExtensions.cs
2020-02-04 18:55:52 +01:00
Bjarke Berg bc6f79ef5b Fixed views after moving extension methods 2020-02-04 09:50:32 +01:00
Bjarke Berg 420d8d2ba8 Merge remote-tracking branch 'origin/netcore/dev' into feature/netcore-publish-cache 2020-02-04 07:14:41 +01:00
Shannon 0c619b184e remove comments 2020-02-04 12:39:03 +11:00
Shannon DeminickandGitHub 48e2f84b71 Merge pull request #7529 from umbraco/netcore/feature/3679-examine-netstandard
Updating solution to use netstandard abstractions of Examine
2020-02-04 12:35:12 +11:00
Bjarke BergandGitHub 714ef684b2 Merge pull request #7547 from emmagarland/netcore/feature/7369-removeservices-unittests
Unit tests update to replace Current.Service references
2020-02-03 15:51:23 +01:00
Bjarke Berg 47ca4a0207 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/3679-examine-netstandard 2020-02-03 14:18:27 +01:00
Andy Butland b8bfdf1441 Restored type check for NuCache status controller.
Added service located extension method for retrieving creator and writer name.
2020-02-01 18:19:50 +01:00
Andy Butland 50c309e613 Removed type check for dashboard status URL from published status controller and moved to interface. 2020-01-31 15:52:08 +01:00
Andy Butland 9e89e18492 Migrated various IPublishedContent extension methods from web to core, removin use of service location.
Kept the original methods passing through to the core ones, providing the service located dependencies.
Used one of these migrated methods in the Umbraco.Infrastructure.PublishedCache project.
2020-01-31 15:33:31 +01:00
Emma Garland e303d9e4f4 Mock IMediaService and IUserService 2020-01-31 13:57:23 +00:00
Emma Garland 8cb11de18c Replaced member service and user service with mocks 2020-01-31 13:51:22 +00:00
Andy Butland 45ee8a985d Add disambiguity otherwise flagged by build checks. 2020-01-31 13:36:14 +01:00
Andy Butland 5ebade460f Removed language features not recognised by build checks. 2020-01-31 13:21:53 +01:00
Andy Butland d1373862e5 Removed Url property from IPublishedContent and amended usages to use the existing Url() extension method. 2020-01-31 13:09:33 +01:00
Andy Butland f13abca1ac Removed WriterName and CreatorName from IPublished content and replaced functionality with an extension methods requiring an instance of IUserService. 2020-01-31 11:28:52 +01:00
Andy Butland 171fce2ecb Moved PublishedCache from Umbraco.Web into .Net standard project.
Returned to compiling state with a number of things to check and some temporarily commented out functionality.
2020-01-30 20:08:03 +01:00
Bjarke Berg 5259b19eef Fix reference to umbraco.core 2020-01-30 19:19:19 +01:00
Bjarke Berg f1daa125e6 Fix for merge issue with ports 2020-01-29 19:54:05 +01:00
Bjarke BergandGitHub b4d0620886 Merge pull request #7523 from umbraco/netcore/feature/AB4687-move-healthchecks-from-web
Netcore: Move healthchecks and healthcheck scheduling to Abstractions and Infrastructure
2020-01-29 14:07:50 +01:00
Bjarke Berg ddead752e2 Fixed merge issue 2020-01-29 13:19:39 +01:00
Bjarke Berg 14f0005345 Fixed issue with the smtp settings.. Found when testing smtp healthcheck 2020-01-29 13:15:31 +01:00
Bjarke Berg cbf02d7b16 Merge remote-tracking branch 'origin/netcore/feature/AB4687-move-healthchecks-from-web' into netcore/feature/AB4687-move-healthchecks-from-web 2020-01-29 11:55:32 +01:00
Bjarke BergandGitHub 3b3d616647 Merge branch 'netcore/dev' into netcore/feature/AB4687-move-healthchecks-from-web 2020-01-29 11:55:00 +01:00
Bjarke Berg 617e2a42e8 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4687-move-healthchecks-from-web 2020-01-29 11:54:28 +01:00
Bjarke Berg bdade02164 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4687-move-healthchecks-from-web 2020-01-29 11:52:28 +01:00
Bjarke BergandGitHub 0d34468f20 Merge pull request #7522 from umbraco/netcore/feature/AB4685-move-scheduling-from-web
Netcore: Move scheduling to Abstractions and Infrastructure
2020-01-29 11:51:07 +01:00
Bjarke Berg 03f1faf20d Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Web/Editors/UsersController.cs
#	src/Umbraco.Web/Models/ChangingPasswordModel.cs
#	src/Umbraco.Web/Templates/HtmlImageSourceParser.cs
2020-01-29 09:22:45 +01:00
Shannon c4b9a62e3b Fixes netstandard references 2020-01-29 15:29:28 +11:00
Shannon 958118fc7f removes duplicate lines in csproj 2020-01-29 14:20:17 +11:00
Shannon ecf5a5efbc reverts accidental change 2020-01-29 12:46:16 +11:00
Shannon a19d9b2a9b removes empty file 2020-01-29 12:42:50 +11:00
Shannon 1dffffcf11 changes namesapces 2020-01-29 12:36:57 +11:00
Shannon 76d868d46d Moves file 2020-01-29 12:31:06 +11:00
Shannon 5b5aa4c499 All Lucene based logic is part of Umbraco.Examine.Lucene, no other part of Umbraco now knows about Lucene at all. 2020-01-29 12:24:57 +11:00
elitsa bd8ba35ff3 Fixing a boot error in FilePermissionHelper 2020-01-28 15:22:14 +01:00
elitsa 5ce8e29aa6 Moving Scheduling classes dependent on the recently moved HealthCheck classes - changing class accessibility level, installing needed nuget into Infrastructure proj 2020-01-28 14:38:18 +01:00
elitsa 550568dda6 Creating an interface for FilePermissionHelper, making the implementation (in Umbraco.Web) singleton and adding the interface to Umbraco.Abstractions. Changing static methods in FilePermissionHelper to instance ones and fixing old way of referencing those methods. Removing the usage of Current in FolderAndFilePermissionsCheck. Fixing tests - mocking the newly created IFilePermissionHelper 2020-01-28 13:48:44 +01:00
elitsa 6707ac4d5f Getting the IISVersion through HostingEnvironment, rather than directly calling HttpRuntime, fixing base ctor signature 2020-01-28 13:41:54 +01:00
elitsa aab8b58067 csprojs with moved files and added package 2020-01-28 13:34:19 +01:00
elitsa ca863fce8d Fixing modified method signature, using a magic string rather than using CustomErrorsMode (System.Web.Configuration) 2020-01-28 13:32:32 +01:00
elitsa 394377f20a Moving classes from Web to Infrastructure without modifications - a unused usings are removed and HealthCheckNotificationMethodCollectionBuilder is made public 2020-01-28 13:25:38 +01:00
elitsa 1d79ab4877 Moving classes from Web to Abstractions without modifications - a few unused usings are removed 2020-01-28 13:22:33 +01:00
elitsa 559b6641a1 Moving last classes in Security folder - removing the usage of Current, refactoring var name, fixing modified method signature 2020-01-28 13:14:50 +01:00
Shannon 4183514b52 Renames Examine2 to Examine as the netstandard part 2020-01-28 17:11:43 +11:00
Shannon 69f4ea5484 Renames Umbraco.Examine project to Umbraco.Examine.Lucene for the Lucene implementation part 2020-01-28 17:09:45 +11:00
Shannon 0695d308c2 Moves remaining non-lucene stuff 2020-01-28 17:07:06 +11:00
Shannon 0343b302f3 Moving stuff to Examine2 (temp name) as a netstandard project, updates to latest Examine netstandard, moves constants to separate class. 2020-01-28 16:37:55 +11:00
Shannon 4cf4952a7e Umbraco.Web still needs refs to Examine.Lucene for now. Going to try to split Umbraco.Examine into 2x projects 2020-01-28 15:38:23 +11:00
Shannon 58537ce11a Updates to newer 2.0 version of Examine which has Examine.Core as netstandard 2020-01-28 15:21:58 +11:00
elitsa c624919710 Moving Security HealthChecks to Abstractions proj 2020-01-27 16:38:02 +01:00
elitsa 8c6281cb6d Merge branch 'netcore/dev' into netcore/feature/AB4687-move-healthchecks-from-web 2020-01-27 15:11:51 +01:00
Bjarke Berg 5ed900f276 Bugfix - Aparently the UmbracoApplicationBase constructor is called twice.. 2020-01-27 14:55:43 +01:00
elitsa 9b371273b5 Refactoring SmtpCheck to use the new GlobalSettings to get smtp host and port instead of WebConfigurationManager 2020-01-27 14:36:29 +01:00
Bjarke Berg a1ed2eb135 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/SolutionInfo.cs
2020-01-27 14:22:04 +01:00
elitsa 770c4beb95 Moving Scheduling classes from Web to Abstractions and Infrastructure. 2020-01-27 12:56:00 +01:00
Bjarke BergandElitsa Marinovska 3b7825b30d Netcore: Moves services and dependencies from Web to Abstractions (#7497)
* Moves the services and dependencies from web,

* Fix bug with Empty collection not being a property (new one for each access)

* remvoed moved files from web csproj

* Fix spelling
2020-01-27 09:31:24 +01:00
Bjarke BergandElitsa Marinovska 09b9c01f94 Netcore: Make composition root available as current in abstrations (#7500)
* Added all the essential parts of umbraco available on the Current from Abstractions.
These are created when Current is initialized.

* Moved some of the composers and components into Infrastructure - And removed unused Settings Files

* Init current with null logger

* Avoid multiple init of Current
2020-01-27 09:12:52 +01:00
Bjarke BergandGitHub a9e6919420 Merge pull request #7496 from benjaminc/netcore/feature/7369-remove-current-services
Replace Current.Services references with DI where possible
2020-01-23 13:39:59 +01:00
Bjarke Berg fd2524bcc5 Need to make lazy injection of IEntityService to break cycle after merge :( 2020-01-23 13:33:10 +01:00
Bjarke Berg 1bfb64bdd8 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Abstractions/Constants-AppSettings.cs
#	src/Umbraco.Abstractions/ContentVariationExtensions.cs
#	src/Umbraco.Abstractions/IMainDom.cs
#	src/Umbraco.Abstractions/PropertyEditors/MultiUrlPickerConfiguration.cs
#	src/Umbraco.Abstractions/Runtime/IMainDom.cs
#	src/Umbraco.Abstractions/Runtime/MainDom.cs
#	src/Umbraco.Core/IMainDom.cs
#	src/Umbraco.Core/MainDom.cs
#	src/Umbraco.Core/Umbraco.Core.csproj
#	src/Umbraco.Infrastructure/MainDom.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Infrastructure/Runtime/CoreRuntime.cs
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web/Models/Mapping/ContentTypeMapDefinition.cs
#	src/Umbraco.Web/PublishedCache/NuCache/ContentStore.cs
#	src/Umbraco.Web/UmbracoApplication.cs
#	src/Umbraco.Web/UmbracoComponentRenderer.cs
2020-01-23 13:16:49 +01:00
Bjarke Berg 0d84bfb42e Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2020-01-23 10:34:06 +01:00
Shannon DeminickandGitHub 3b63d9baa3 Merge pull request #7486 from umbraco/netcore/feature/AB4635-move-cache-refreshers
NetCore:  Moved CacheRefreshers to abstractions
2020-01-23 20:18:48 +11:00
Shannon 877e0cca93 removes unneeded ctor param 2020-01-23 20:06:02 +11:00
Shannon c7b0bf20b0 Removes RefreshByJson and changes macro cache refreshing to use objects 2020-01-23 19:48:15 +11:00
Shannon a020c52ff6 Simplifies IdKeyMap interface, moves the weird add mapping logic in PublishedSnapshotService to a composer. 2020-01-23 18:10:21 +11:00
Benjamin Carleski a379e01578 Replace Current.Services references with DI where possible 2020-01-22 21:43:25 -08:00
Bjarke Berg 47c211907a AB4635 - Fixed up some of the review comments - Removed static (de)serializers and get the CacheRefresher from the collection 2020-01-22 14:09:20 +01:00
Bjarke Berg d8427779ea Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2020-01-22 11:58:20 +01:00
Bjarke BergandGitHub 3bdfe84717 Merge pull request #7490 from benjaminc/netcore/feature/7370-inject-config-interfaces
Use dependency injection for config classes
2020-01-22 11:52:50 +01:00
Bjarke Berg 3e7c6c12b0 Removed support for vbhtml views 2020-01-22 11:45:18 +01:00
Bjarke Berg 2e0299cf7b Removed used things 2020-01-22 11:44:56 +01:00
Benjamin Carleski c9bbb158be Remove obsolete Stylesheet constant and references 2020-01-21 17:50:20 -08:00
Shannon DeminickandGitHub 656585b2dc Merge pull request #7438 from umbraco/netcore/feature/AB4385-move-content-apps-to-abstractions
Netcore:  Move content apps to abstractions
2020-01-22 12:43:56 +11:00
Benjamin CarleskiandGitHub ae25845f2b Correct cut-and-paste error 2020-01-21 17:40:13 -08:00
Benjamin Carleski fd3ef48367 Use dependency injection for config classes 2020-01-21 17:25:03 -08:00
elitsa 1bf1a86f94 Commenting out the Starter Kit installation for now as it isn't compatible 2020-01-21 15:41:35 +01:00
Bjarke Berg f95b99676a Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4385-move-content-apps-to-abstractions 2020-01-21 14:29:27 +01:00
Bjarke Berg 17ee7796f4 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4635-move-cache-refreshers 2020-01-21 14:24:53 +01:00
Bjarke BergandGitHub 258dcef773 Merge pull request #7460 from umbraco/netcore/feature/AB4549-Move-models-from-web
Netcore: Move models from web to abstractions and infrastructure
2020-01-21 14:22:20 +01:00
elitsa 9ef5f74d67 Removing unnecessary namespace from in-line file reference 2020-01-21 13:50:37 +01:00
elitsa bda64d75ba Removing the usage of Current 2020-01-21 13:47:21 +01:00
Bjarke Berg 0cdd6ba29d AB4635 - Moved CacheRefreshers to abstractions 2020-01-21 13:40:23 +01:00
Bjarke Berg f3107c6f55 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4385-move-content-apps-to-abstractions 2020-01-21 11:07:42 +01:00
Bjarke Berg 68e3fe275a Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4549-Move-models-from-web
# Conflicts:
#	src/Umbraco.Web/Editors/ContentTypeController.cs
#	src/Umbraco.Web/Editors/PackageInstallController.cs
2020-01-21 11:05:48 +01:00
Bjarke Berg 928f774bfd Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2020-01-21 10:51:43 +01:00
Bjarke Berg d533631dff Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2020-01-21 10:51:36 +01:00
Bjarke Berg bdf29f315f Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2020-01-21 10:51:16 +01:00
Bjarke Berg d7377bd9b4 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.ModelsBuilder.Embedded/Compose/ModelsBuilderComposer.cs
#	src/Umbraco.ModelsBuilder.Embedded/Configuration/ModelsBuilderConfig.cs
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/web.Template.Debug.config
#	src/Umbraco.Web/Editors/ContentController.cs
#	src/Umbraco.Web/Editors/DataTypeController.cs
#	src/Umbraco.Web/Editors/MacrosController.cs
#	src/Umbraco.Web/Models/Mapping/ContentPropertyBasicMapper.cs
#	src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
2020-01-21 10:51:04 +01:00
Bjarke Berg 3978ad95df Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.ModelsBuilder.Embedded/Compose/ModelsBuilderComposer.cs
#	src/Umbraco.ModelsBuilder.Embedded/Configuration/ModelsBuilderConfig.cs
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/web.Template.Debug.config
#	src/Umbraco.Web/Editors/ContentController.cs
#	src/Umbraco.Web/Editors/DataTypeController.cs
#	src/Umbraco.Web/Editors/MacrosController.cs
#	src/Umbraco.Web/Models/Mapping/ContentPropertyBasicMapper.cs
#	src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
2020-01-21 10:50:26 +01:00
Bjarke BergandGitHub 8b4c291d44 Merge pull request #7472 from benjaminc/netcore/feature/7368-CleanupObsoletes
Netcore/feature/7368 cleanup obsoletes
2020-01-21 10:04:36 +01:00
Bjarke Berg 1ee09af4f3 7368 - Updated view to use the new name of ReplaceLineBreaksForHtml 2020-01-21 09:01:11 +01:00
Benjamin Carleski 25e58665ba Merge remote-tracking branch 'umbraco/netcore/dev' into netcore/feature/7368-CleanupObsoletes 2020-01-20 14:26:58 -08:00
Benjamin Carleski fceac19f04 Update controllers to include UmbracoMapper 2020-01-20 14:15:54 -08:00
Benjamin Carleski 7284ab0400 Remove obsolete UmbracoApiControllerBase constructor 2020-01-20 11:55:49 -08:00
Benjamin Carleski 421ed582da Remove obsolete UmbracoIndexesCreator methods 2020-01-20 11:50:08 -08:00
Benjamin Carleski d35b3468e2 Remove obsolete RebuildIndexes method 2020-01-20 11:46:03 -08:00
Benjamin Carleski cd4f646ed0 Remove obsolete PublishedContentQuery constructor 2020-01-20 11:45:44 -08:00
Benjamin Carleski f463fae047 Fix BuilderTests reference 2020-01-20 11:26:18 -08:00
Benjamin Carleski 628373f7a4 Remove obsoletes Umbraco.Infrastructure 2020-01-20 11:26:01 -08:00
Benjamin Carleski 0c1d54ba4d Remove unused obsoletes from Umbraco.Web.UI.Client 2020-01-20 11:07:13 -08:00
Benjamin Carleski 66e32148b2 Remove unused obsoletes from Umbraco.Abstractions 2020-01-20 11:06:29 -08:00
Bjarke Berg 3279098f02 AB4549 - Moved mappers 2020-01-20 15:48:03 +01:00
Bjarke Berg e45ff0b63d Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4549-Move-models-from-web 2020-01-20 15:44:15 +01:00
Bjarke BergandGitHub f4caf75ced Merge pull request #7476 from umbraco/netcore/feature/AB4519-move-more-property-editors-to-infrastructure
Netcore: Move property editors to Infrastructure or Abstractions (2nd part)
2020-01-20 15:43:14 +01:00
Bjarke Berg 9fa18fe9a3 AB4549 - Moved more models 2020-01-20 15:20:21 +01:00
elitsa beb55ccd23 Moving property editors to Abstractions project 2020-01-20 15:11:54 +01:00
elitsa 3f6e14c065 Moving files from ParameterEditors and ValueConverters folders under PropertyEditors 2020-01-20 13:05:20 +01:00
elitsa d88dbbb0cd Moving some more PropertyEditors From Umbraco.Web to Umbraco.Infrastructure 2020-01-20 11:45:40 +01:00
Bjarke Berg 5a67e5b395 AB4549 - Moved more models 2020-01-20 11:37:19 +01:00
Benjamin Carleski 3320e1a2f0 Remove unused obsoletes from Umbraco.Web 2020-01-17 17:22:55 -08:00
Benjamin Carleski 94f42c3223 Update package references to fix compilation error 2020-01-17 17:21:50 -08:00
Bjarke Berg 7a6ec6bfa4 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4385-move-content-apps-to-abstractions
# Conflicts:
#	src/Umbraco.Abstractions/ContentApps/ContentAppFactoryCollectionBuilder.cs
#	src/Umbraco.Tests/Testing/UmbracoTestBase.cs
2020-01-17 06:57:09 +01:00
Bjarke Berg 2c8d53ed71 AB3986 - fix from merge 2020-01-16 07:25:18 +01:00
Bjarke Berg 087702334d Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4549-Move-models-from-web 2020-01-16 07:20:13 +01:00
Shannon DeminickandGitHub 0577877a41 Merge pull request #7432 from umbraco/netcore/feature/AB3986-handle-iregistedobject-and-remove-core-project
Netcore: Handle IRegisteredObject and remove Umbraco.Core project
2020-01-16 14:57:32 +11:00
Bjarke Berg 4ff0f2f51a Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4549-Move-models-from-web 2020-01-15 13:42:55 +01:00
Bjarke BergandGitHub 17609b70de Merge pull request #7459 from umbraco/netcore/feature/AB4519-move-property-editors-to-infrastructure
Netcore: Move property editors to infrastructure (1st part)
2020-01-15 10:33:08 +01:00
Bjarke Berg ea398e1b80 AB3986 - Changed dictionary to be concurrent to ensure thread safety. 2020-01-15 09:31:09 +01:00
Bjarke Berg 1e5c00878b AB4549 - Moved models from web to abstractions and infrastructure 2020-01-15 09:05:52 +01:00
Shannon 29c2110b0a Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3986-handle-iregistedobject-and-remove-core-project 2020-01-15 14:17:38 +11:00
Shannon DeminickandGitHub 59812f887f Merge pull request #7427 from umbraco/netcore/feature/AB4231-Move-SqlCe-stuff-to-seperate-project
Netcore: Move SqlCe classes to separate project
2020-01-15 13:59:27 +11:00
Shannon 11f5d2f800 Fixes startup - no need for using "Current" which wasn't set at that point but shouldn't have been used anyways. 2020-01-15 13:53:21 +11:00
Shannon c18b6e6c82 Don't eagerly create an IBulkSqlInsertProvider (fixes install boot), this is now created with the IDbProviderFactoryCreator which simplifies a bunch of ctors. 2020-01-15 13:40:35 +11:00
Shannon cf818b2268 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4231-Move-SqlCe-stuff-to-seperate-project 2020-01-15 12:48:42 +11:00
Shannon DeminickandGitHub 6900842d12 Merge pull request #7426 from umbraco/netcore/feature/AB4234-Move-Indentity-struff-to-web
Netcore: Move indentity struff from core to web
2020-01-15 12:45:50 +11:00
elitsa c588fc085b Migrating FileUploadPropertyEditor and its PropertyEditor dependencies. Fixing its tests due to the changes 2020-01-14 16:53:20 +01:00
elitsa 8655be1b28 Moving more PropertyEditors to Umbraco.Infrastructure 2020-01-14 16:50:22 +01:00
elitsa 2646a20647 Moving a bunch PropertyEditors From Umbraco.Web to Umbraco.Infrastructure 2020-01-14 16:35:50 +01:00
Bjarke Berg 51d0f7da94 AB4234 - Fixes namespaces and removed old unused property on user 2020-01-14 07:47:47 +01:00
Shannon 094f1c2539 Merge branch 'netcore/dev' into netcore/feature/AB4234-Move-Indentity-struff-to-web 2020-01-14 12:41:58 +11:00
Shannon DeminickandGitHub 2c7c556c5f Merge pull request #7425 from umbraco/netcore/feature/AB3677-remove-current-from-core
Netcore: Removed Current (Core)
2020-01-14 12:37:41 +11:00
Bjarke Berg 2b0e9e8450 Added more options on the test builders 2020-01-13 07:29:12 +01:00
Kenn Jacobsen c3937d6e62 Disable the actions menu button until there are actions available 2020-01-10 12:58:58 +01:00
elitsa 7656072bd5 Fixing namespaces and usings 2020-01-09 16:45:46 +01:00
elitsa f8a1e4491b Fixing merge conflict 2020-01-09 16:43:02 +01:00
elitsa 0748fede86 Adding tests for RelationType 2020-01-09 16:39:28 +01:00
elitsa 3dbe0c2847 Fixing indentation 2020-01-09 16:38:31 +01:00
elitsa 76ed4ccc6c Updating namespaces 2020-01-09 16:37:24 +01:00
Bjarke Berg b786dd185b Clean up 2020-01-09 15:48:28 +01:00
Bjarke Berg 728799b036 using extension methods to enforce consistency 2020-01-09 15:32:19 +01:00
Bjarke Berg 9d6d43c2d0 Added language tests 2020-01-09 14:49:11 +01:00
Bjarke Berg 997796758e Added Builders 2020-01-09 14:24:20 +01:00
Bjarke Berg a33d1b4fef Added UnitTest project 2020-01-09 13:04:27 +01:00
Bjarke Berg 29140bc7ea AB4375 - Moved ITagQuery and TagModel to Umbraco.Abstractions 2020-01-08 15:39:07 +01:00
Bjarke Berg 4bca006e86 AB4385 - Moved Content Apps to Infrastructure - Introduced ICurrentUserAccessor in Abstractions 2020-01-08 14:46:20 +01:00
Bjarke Berg bdf0f32a70 AB4375 - Moved Actions to Umbraco.Abstractions 2020-01-08 13:39:47 +01:00
Bjarke Berg 447e1ee1f0 AB4375 - Moved Sections to Umbraco.Abstractions 2020-01-08 13:36:48 +01:00
Bjarke Berg 39b7cb4201 AB4375 - Moved Tour to Umbraco.Abstractions 2020-01-08 13:35:05 +01:00
Bjarke Berg 33525f3ea9 AB4375 - Moved Media from Umbraco.Web to Umbraco.Infrastructure and added reference to System.Drawing.Common 2020-01-08 13:31:14 +01:00
Bjarke Berg c7f60d8312 AB3986 - Wrapped System.Web.Hosting.IRegisteredObject in the AspNetHostingEnvironment. Updated Maindom to use our own new interface and the wrapper and moved to infrastructure. Removed the Umbraco.Core project now that it was empty. 2020-01-08 09:01:58 +01:00
Bjarke Berg cdfd3df98a AB4231 - Moved SqlCe classes to separate project 2020-01-07 14:52:59 +01:00
Bjarke Berg 586b9c37f8 AB4234 - Moved stuff from core into web, that used identity. 2020-01-07 13:51:03 +01:00
Bjarke Berg c6c0d7df54 AB4234 - Moved stuff from core into web, that used identity. 2020-01-07 13:50:38 +01:00
Bjarke Berg d2443ea4c0 AB3677 - Removed the Core.Composing.Current.. Moved stuff to Web.Composing.Current and injected more stuff. 2020-01-07 13:08:21 +01:00
Bjarke Berg 58f9b48e16 Merge branch 'netcore/dev' into netcore/feature/AB3677-remove-current-from-core
# Conflicts:
#	src/Umbraco.Abstractions/UriExtensions.cs
#	src/Umbraco.Tests/Web/Controllers/ContentControllerTests.cs
#	src/Umbraco.Web/Editors/Filters/MemberSaveModelValidator.cs
#	src/Umbraco.Web/Editors/MediaController.cs
#	src/Umbraco.Web/Editors/TemplateController.cs
#	src/Umbraco.Web/Models/Mapping/PropertyTypeGroupMapper.cs
#	src/Umbraco.Web/PropertyEditors/FileUploadPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/ListViewPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/UserPickerPropertyEditor.cs
#	src/Umbraco.Web/UmbracoDefaultOwinStartup.cs
2020-01-07 09:46:42 +01:00
Bjarke Berg c82772228c Minor changes.. Moved files and clean up 2020-01-07 09:36:40 +01:00
Bjarke BergandGitHub 439048bc4f Merge pull request #7380 from AndyButland/feature/7371-short-string-helper
.NET Core transition: Removed (almost) all instances of Current.ShortStringHlper and replaced with constructor injection (#7371)
2020-01-07 09:05:28 +01:00
Bjarke Berg e1b06498c6 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs
2020-01-07 08:06:36 +01:00
Bjarke Berg 09b480919b Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Web.UI/config/umbracoSettings.Release.config
2020-01-07 07:35:34 +01:00
Bjarke Berg 0c7cc8e002 Merge pull request #7356 from umbraco/netcore/feature/AB4227-move-files-to-infrastructure
Netcore/feature/ab4227 move files to infrastructure
2020-01-06 15:43:00 +01:00
Bjarke Berg 6d719a2ecc Merge remote-tracking branch 'origin/v8/dev' into netcore/dev 2020-01-06 14:59:42 +01:00
Bjarke Berg 44a36227f9 Merge pull request #7356 from umbraco/netcore/feature/AB4227-move-files-to-infrastructure
Netcore/feature/ab4227 move files to infrastructure
2020-01-06 14:59:17 +01:00
Shannon DeminickandGitHub a68d1af2ca Merge pull request #7384 from AndyButland/feature/7367-netcore-password-config
.NET Core transition: Populated user and member password configuration from settings file (#7367)
2020-01-06 22:07:55 +11:00
Andy Butland bd5b344a57 Merge branch 'netcore/dev' into feature/7371-short-string-helper
# Conflicts:
#	src/Umbraco.Core/StringExtensions.cs
#	src/Umbraco.Core/TypeExtensions.cs
#	src/Umbraco.Infrastructure/Packaging/PackageDataInstallation.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/DataTypeFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeRepository.cs
#	src/Umbraco.ModelsBuilder.Embedded/Compose/ModelsBuilderComponent.cs
#	src/Umbraco.ModelsBuilder.Embedded/UmbracoServices.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs
#	src/Umbraco.Tests/Persistence/Repositories/DocumentRepositoryTest.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs
#	src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs
#	src/Umbraco.Tests/Strings/StringExtensionsTests.cs
#	src/Umbraco.Tests/Web/Controllers/ContentControllerTests.cs
#	src/Umbraco.Tests/Web/Controllers/UsersControllerTests.cs
#	src/Umbraco.Web/Editors/CodeFileController.cs
#	src/Umbraco.Web/Editors/ContentController.cs
#	src/Umbraco.Web/Editors/ContentControllerBase.cs
#	src/Umbraco.Web/Editors/ContentTypeController.cs
#	src/Umbraco.Web/Editors/CurrentUserController.cs
#	src/Umbraco.Web/Editors/DashboardController.cs
#	src/Umbraco.Web/Editors/EntityController.cs
#	src/Umbraco.Web/Editors/MacroRenderingController.cs
#	src/Umbraco.Web/Editors/MacrosController.cs
#	src/Umbraco.Web/Editors/MediaController.cs
#	src/Umbraco.Web/Editors/MemberController.cs
#	src/Umbraco.Web/Editors/RelationTypeController.cs
#	src/Umbraco.Web/Editors/TinyMceController.cs
#	src/Umbraco.Web/Editors/UsersController.cs
#	src/Umbraco.Web/Macros/PublishedContentHashtableConverter.cs
#	src/Umbraco.Web/Models/Mapping/UserMapDefinition.cs
#	src/Umbraco.Web/Mvc/RenderRouteHandler.cs
#	src/Umbraco.Web/PropertyEditors/RichTextEditorPastedImages.cs
#	src/Umbraco.Web/Runtime/WebInitialComponent.cs
#	src/Umbraco.Web/Templates/TemplateRenderer.cs
2019-12-24 09:08:47 +01:00
Andy Butland 32e46b0f0c Added user and member password configuration to release config. 2019-12-24 08:05:33 +01:00
Andy Butland 0e8f1887bd Completed setup to fix failing unit tests. 2019-12-23 15:28:05 +01:00
Andy Butland 0670caee15 Populated user and member password configuration from settings file. 2019-12-23 14:35:39 +01:00
Shannon DeminickandGitHub 8aa6fff801 Merge pull request #7356 from umbraco/netcore/feature/AB4227-move-files-to-infrastructure
Netcore/feature/ab4227 move files to infrastructure
2019-12-23 17:35:54 +11:00
Shannon db596a40da Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB4227-move-files-to-infrastructure 2019-12-23 17:06:31 +11:00
Shannon DeminickandGitHub 67928b61db Merge pull request #7350 from umbraco/netcore/feature/AB3791-Move-scoping-to-infrastructure-and-replace-callcontext
Netcore/feature/ab3791 move scoping to infrastructure and replace callcontext
2019-12-23 17:04:09 +11:00
Shannon 9dd258320a Adds notes, fixes tests 2019-12-23 16:04:17 +11:00
Andy Butland d469a2153b Removed (almost) all instances of Current.ShortStringHlper and replaced with constructor injection. 2019-12-20 17:36:44 +01:00
Shannon 95d3a87bb2 Simplifies ScopeProvider now that we are using AsyncLocal we don't need to worry about the weird constraints of CallContext which was being worked around with the static object dictionary 2019-12-20 16:19:29 +11:00
Shannon ef5a6a1db6 Adds notes changes some logic 2019-12-20 15:12:54 +11:00
Shannon bcc0fa391a adds notes, changes to use AsyncLocal<Guid> then will look at full refactor 2019-12-20 12:50:33 +11:00
Bjarke Berg 0a4cfcd3bc Merge remote-tracking branch 'origin/netcore/feature/AB3791-Move-scoping-to-infrastructure-and-replace-callcontext' into netcore/feature/AB4227-move-files-to-infrastructure 2019-12-19 15:59:19 +01:00
Bjarke Berg dbf0581cb1 AB3791 - Removed unnessasary [Apartment(ApartmentState.STA)] 2019-12-19 15:55:01 +01:00
Bjarke Berg dfeb97caa4 AB3677 - Moved usages of Current (Core) to Current (Web) 2019-12-19 15:53:50 +01:00
Shannon DeminickandGitHub d624005355 Merge pull request #7309 from umbraco/netcore/feature/move-files
Netcore/feature/move files
2019-12-19 22:35:55 +11:00
Bjarke Berg 0e4ac7f7d1 Merge remote-tracking branch 'origin/netcore/feature/AB4227-move-files-to-infrastructure' into netcore/feature/AB3677-remove-current-from-core
# Conflicts:
#	src/Umbraco.Tests/TestHelpers/TestHelper.cs
2019-12-19 12:27:51 +01:00
Bjarke Berg cfacc4912d AB4227 - Made some classes internal 2019-12-19 12:24:30 +01:00
Bjarke Berg 2ed6b11b6f Merge remote-tracking branch 'origin/netcore/feature/AB3791-Move-scoping-to-infrastructure-and-replace-callcontext' into netcore/feature/AB4227-move-files-to-infrastructure
# Conflicts:
#	src/Umbraco.Tests.Benchmarks/BulkInsertBenchmarks.cs
#	src/Umbraco.Tests/TestHelpers/TestHelper.cs
#	src/Umbraco.Web/Editors/UsersController.cs
2019-12-19 11:34:08 +01:00
Bjarke Berg 2fd6e8d617 Merge remote-tracking branch 'origin/netcore/feature/move-files' into netcore/feature/AB3791-Move-scoping-to-infrastructure-and-replace-callcontext 2019-12-19 11:30:25 +01:00
Bjarke Berg 4a2ecef369 Merge remote-tracking branch 'origin/netcore/feature/move-files' into netcore/feature/move-files 2019-12-19 11:23:43 +01:00
Bjarke Berg 67c54bec50 AB4227 - Review fixes - Added null logger + clean up 2019-12-19 11:23:31 +01:00
Bjarke Berg d5527f0485 AB3677 - Removed lot of stuff from Current (Core) and uses Current (Web) instead 2019-12-19 10:43:34 +01:00
Shannon a8f006e36e Removes the useNativeBulkInsert parameter, it's super old and useless 2019-12-19 17:56:48 +11:00
Shannon aae5fc0048 Removes BulkInsertRecordsWithTransaction and changes tests 2019-12-19 17:45:28 +11:00
Bjarke Berg 7f9fbe9877 AB4227 - Removed StringExtensions from core.. 2019-12-18 18:55:00 +01:00
Bjarke Berg b3c06be83a AB4227 - Moved a mix of files 2019-12-18 13:42:34 +01:00
Bjarke Berg 6c923bc9b4 AB4227 - Moved a mix of files 2019-12-18 13:42:33 +01:00
Bjarke Berg 38519b2bab AB4227 - Moved Logging 2019-12-18 13:42:32 +01:00
Bjarke Berg 897cb63ad6 AB4227 - Moved Packaging, Compose, Dictionary, Manifest and Sync 2019-12-18 13:42:31 +01:00
Bjarke Berg da1cf259c6 AB4227 - Moved Services and Migration 2019-12-18 13:42:29 +01:00
Bjarke Berg a22824e33a AB4227 - Moved Persistence Repository implementations 2019-12-18 13:42:27 +01:00
Bjarke Berg 03631a1731 AB4227 - Moved Persistence Root 2019-12-18 13:42:26 +01:00
Bjarke Berg 7a0e0f7782 AB4227 - Moved Persistence.Factories 2019-12-18 13:42:25 +01:00
Bjarke Berg 7c1e81db0d AB4227 - Moved persistence mappers 2019-12-18 13:42:24 +01:00
Bjarke Berg 17a586ed0c AB4227 - Moved dtos and made some public to let then be known by the web project 2019-12-18 13:42:22 +01:00
Bjarke Berg 9a6c976f6e AB3791 - Moved scoping to infrastructure, implemented our own CallContext 2019-12-17 15:06:51 +01:00
Bjarke Berg f0d1c38aa8 AB3791 - Moved scoping to infrastructure, implemented our own CallContext 2019-12-17 15:03:14 +01:00
Bjarke Berg 70adb70afd Bugfix 2019-12-12 13:49:17 +01:00
Bjarke Berg 2578e51f43 Added specific version to infrastructure 2019-12-12 13:20:49 +01:00
Bjarke Berg d36ff6d509 Refactored such that the a IBulkSqlInsertProvider can be used, to diff. between SqlCe and SqlServer 2019-12-12 12:55:17 +01:00
Bjarke Berg f9286d1eda Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/move-files
# Conflicts:
#	src/Umbraco.Tests/Published/NestedContentTests.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs
#	src/Umbraco.Web/PropertyEditors/ContentPickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/MediaPickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/MultiNodeTreePickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/NestedContentPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
2019-12-12 09:13:40 +01:00
Bjarke Berg 2574811b58 Handle SqlCE outside of core/abstractions 2019-12-12 09:09:26 +01:00
Bjarke BergandGitHub ec6b86bbea Merge pull request #7276 from umbraco/netcore/feature/iohelper-cannot-use-system-web
Netcore: IOHelper cannot use System.Web
2019-12-12 09:07:40 +01:00
Bjarke Berg 21902620fd Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/iohelper-cannot-use-system-web
# Conflicts:
#	src/Umbraco.Tests/Published/NestedContentTests.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs
#	src/Umbraco.Tests/Web/TemplateUtilitiesTests.cs
#	src/Umbraco.Web/PropertyEditors/ContentPickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/MediaPickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/MultiNodeTreePickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/MultiUrlPickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/NestedContentPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
2019-12-12 08:33:58 +01:00
Bjarke Berg c94b65d76b Moved scope and persistence 2019-12-12 08:11:23 +01:00
Bjarke Berg 9e5494cc14 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/move-files
# Conflicts:
#	src/Umbraco.Core/Persistence/Repositories/Implement/ContentRepositoryBase.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/DocumentBlueprintRepository.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/DocumentRepository.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/MediaRepository.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/MemberRepository.cs
#	src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/DocumentRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/DomainRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/PublicAccessRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/TagRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/TemplateRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
#	src/Umbraco.Tests/Published/NestedContentTests.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs
#	src/Umbraco.Tests/Services/ContentServicePerformanceTest.cs
#	src/Umbraco.Tests/Services/ContentServiceTests.cs
#	src/Umbraco.Tests/Web/TemplateUtilitiesTests.cs
#	src/Umbraco.Web/PropertyEditors/ContentPickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/MediaPickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/MultiNodeTreePickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/MultiUrlPickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/NestedContentPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
2019-12-11 09:29:36 +01:00
Bjarke Berg 76e1f30594 Fixed broken view 2019-12-10 15:01:11 +01:00
Bjarke Berg aa15f89275 Merge remote-tracking branch 'origin/v8/feature/media-tracking' into netcore/dev
# Conflicts:
#	src/Umbraco.Abstractions/Models/IDataValueEditor.cs
#	src/Umbraco.Abstractions/Models/RelationType.cs
#	src/Umbraco.Core/Contants-UdiEntityType.cs
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Core/Udi.cs
#	src/Umbraco.Tests/Models/RelationTests.cs
#	src/Umbraco.Tests/Models/RelationTypeTests.cs
#	src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
#	src/Umbraco.Tests/Published/NestedContentTests.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs
#	src/Umbraco.Tests/Services/ContentServicePerformanceTest.cs
#	src/Umbraco.Tests/Testing/UmbracoTestBase.cs
#	src/Umbraco.Tests/Web/TemplateUtilitiesTests.cs
#	src/Umbraco.Web/Editors/MediaController.cs
#	src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/NestedContentPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
#	src/Umbraco.Web/Templates/TemplateUtilities.cs
#	src/Umbraco.Web/UmbracoComponentRenderer.cs
2019-12-10 14:44:42 +01:00
Bjarke Berg 67536a49a7 Moved Models from Umbraco.Core to Umbraco.Infrastructure 2019-12-10 08:37:19 +01:00
Bjarke Berg becce7800b Moved Models from Umbraco.Core to Umbraco.Infrastructure 2019-12-09 14:12:06 +01:00
Bjarke Berg 2ea8e7cdd0 Moved PropertyEditors from Umbraco.Core to Umbraco.Infrastructure 2019-12-09 10:44:22 +01:00
Bjarke Berg d90534769c Moved Serialization from Umbraco.Core to Umbraco.Infrastructure and added reference to Newtonsoft.Json 2019-12-09 08:40:49 +01:00
Bjarke Berg 86574c5e11 Moved more files to abstractions 2019-12-06 12:09:47 +01:00
Bjarke Berg 82bb1f00fc AB4079 - Review fixes 2019-12-06 09:49:28 +01:00
Bjarke Berg 5c6dcc900e Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/iohelper-cannot-use-system-web 2019-12-05 14:03:28 +01:00
Bjarke Berg fb562817bc Moved more files to abstractions and eliminated the use of JObject 2019-12-05 14:03:09 +01:00
Shannon DeminickandGitHub 03a59bc2e2 Merge pull request #7193 from umbraco/netcore/feature/core-cannot-use-system-web
Netcore: Abstract System.Web stuff
2019-12-05 23:52:51 +11:00
Bjarke Berg 816baa5eaf Moved SystemFiles to abstractions 2019-12-05 10:43:45 +01:00
Bjarke Berg 204bbd5c46 Moved IOHelper to abstractions 2019-12-05 10:41:58 +01:00
Bjarke Berg 3a7ef42a6c Fixed tests 2019-12-05 08:54:37 +01:00
Bjarke Berg 147626fc08 Refactored the hosting settings out of global settings 2019-12-05 08:31:06 +01:00
Bjarke Berg 566f9a09fe Committed missing file changes 2019-12-05 07:58:21 +01:00
Bjarke Berg df80694df8 Let ManifestWatcher use IHostingEnvironment to unload app domain 2019-12-05 07:53:40 +01:00
Shannon 7bea36d628 fixes comment 2019-12-05 16:17:17 +11:00
Bjarke Berg 28ecb355dd Let IOHelper use IHostingEnvironment 2019-12-04 21:30:18 +01:00
Bjarke Berg d2bf64195e Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/core-cannot-use-system-web
# Conflicts:
#	src/Umbraco.Tests/Membership/MembershipProviderBaseTests.cs
#	src/Umbraco.Tests/Testing/TestingTests/MockTests.cs
#	src/Umbraco.Web/Security/AppBuilderExtensions.cs
#	src/Umbraco.Web/Security/BackOfficeUserManager.cs
#	src/Umbraco.Web/UmbracoDefaultOwinStartup.cs
2019-12-04 11:51:12 +01:00
Bjarke BergandGitHub 13e04bcfe8 Merge pull request #7263 from umbraco/netcore/feature/AB3970-membership-providers
Removing more membership providers from being used
2019-12-04 11:44:29 +01:00
Bjarke Berg 886a298b3d AB3981 - Review fixes - Moved abstractions into namespace folders, removed code that was commented out, removed unused code, added xml doc 2019-12-04 10:39:49 +01:00
Bjarke Berg 42ef37f0a3 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/core-cannot-use-system-web
# Conflicts:
#	src/Umbraco.Tests/Components/ComponentTests.cs
#	src/Umbraco.Tests/TestHelpers/TestHelper.cs
#	src/Umbraco.Tests/TestHelpers/TestObjects.cs
2019-12-04 09:43:22 +01:00
Bjarke BergandGitHub ca07e68db2 Merge pull request #7234 from umbraco/netcore/feature/AB3980-replace-httpcontext-items-in-scopeprovider
NetCore: Replaces the usages of HttpContext.Items ScopeProvider
2019-12-04 09:41:47 +01:00
Bjarke Berg 5f5a6e460c NoAppCache must return false in "IsAvailable" 2019-12-04 09:11:57 +01:00
Shannon 898167f8c6 Adds IsAvailable to IRequestCache and re-implements the DEBUG_SCOPES flag, fixes core proj build issue with DEBUG_SCOPES enabled 2019-12-04 13:30:46 +11:00
Shannon 29908dee44 Removes the remaining bits of membership providers stuff from being used in the back office, simplifies how properties are mapped and removes the legacy weirdness of mapping membership provider properties 2019-12-04 12:50:05 +11:00
Bjarke Berg 3d6bc9f161 fix core csproj missing files 2019-12-03 14:11:26 +01:00
Bjarke Berg e7c85daa2e Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3970-membership-providers
# Conflicts:
#	src/Umbraco.Web/Editors/Filters/MemberSaveModelValidator.cs
#	src/Umbraco.Web/Editors/Filters/MemberSaveValidationAttribute.cs
2019-12-03 08:58:49 +01:00
Bjarke Berg f7404064be AB3980 Cleanup tests 2019-12-03 08:43:09 +01:00
Shannon 97ad7a0239 removes more membership provider and System.Web.Security from being used in the back office 2019-12-03 16:16:33 +11:00
Shannon d7fa5f0b66 Removes membership providers stuff from back office, removes all old legacy rules for passwords and membership providers. 2019-12-03 15:28:55 +11:00
Shannon 6410a83ca8 Fixes issue with empty connection string on startup 2019-12-03 14:16:05 +11:00
Bjarke Berg f39324b732 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/core-cannot-use-system-web 2019-12-02 14:13:33 +01:00
Bjarke Berg 3906f3aa6b Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3980-replace-httpcontext-items-in-scopeprovider 2019-12-02 14:12:50 +01:00
Bjarke Berg 1da4429177 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Abstractions/Exceptions/ConnectionException.cs
#	src/Umbraco.Abstractions/Exceptions/DataOperationException.cs
#	src/Umbraco.Abstractions/Exceptions/InvalidCompositionException.cs
#	src/Umbraco.Abstractions/IO/MediaFileSystem.cs
#	src/Umbraco.Abstractions/IO/PhysicalFileSystem.cs
#	src/Umbraco.Abstractions/Migrations/DataLossException.cs
#	src/Umbraco.Abstractions/Models/Entities/EntitySlim.cs
#	src/Umbraco.Abstractions/Xml/UmbracoXPathPathSyntaxParser.cs
#	src/Umbraco.Abstractions/Xml/XmlHelper.cs
#	src/Umbraco.Core/Manifest/ManifestParser.cs
#	src/Umbraco.Core/Models/ContentRepositoryExtensions.cs
#	src/Umbraco.Core/Models/PropertyType.cs
#	src/Umbraco.Core/Persistence/UmbracoDatabaseFactory.cs
#	src/Umbraco.Core/PropertyEditors/Validators/RegexValidator.cs
#	src/Umbraco.Core/PropertyEditors/Validators/RequiredValidator.cs
#	src/Umbraco.Core/StringExtensions.cs
#	src/Umbraco.Web/Editors/Filters/ContentModelValidator.cs
#	src/Umbraco.Web/Mvc/AreaRegistrationExtensions.cs
2019-12-02 13:51:07 +01:00
Bjarke Berg 6aa23dc371 Simply moved stuff to abstractions without any modifications 2019-12-02 13:26:49 +01:00
Bjarke Berg 41639740d2 AB3980 - Replaced HttpContext.Current.Items with IRequestCache in ScopeProvider 2019-11-27 14:10:48 +01:00
Bjarke Berg b997b40f1d Handled Serilog enrichers..
- Introduced ISessionIdResolver and AspNetSessionIdResolver
2019-11-27 09:01:17 +01:00
Bjarke Berg 452bd299bf Introduced IHtmlEncodedString and HtmlEncodedString as our own abstractions of IHtmlString and HtmlString 2019-11-27 08:38:55 +01:00
Shannon f8e613320b REmoves the term 'Encrypt' from PasswordSecurity 2019-11-27 11:34:32 +11:00
Søren GregersenandGitHub 5b713af96c Removed unused jQuery
MEGA CHANGE! But every bit of jQuery removed from the internet is a good change :)
2019-11-26 21:00:45 +01:00
Bjarke Berg 87b2dc777c Changed System.Web.HttpUtility To System.Net.WebUtility 2019-11-26 13:28:46 +01:00
Bjarke Berg 797e83c2fe Post merge fixes 2019-11-26 12:49:10 +01:00
Bjarke Berg 2fc50c5730 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/core-cannot-use-system-web
# Conflicts:
#	src/Umbraco.Core/Runtime/CoreInitialComposer.cs
#	src/Umbraco.Core/StringExtensions.cs
#	src/Umbraco.Tests/Membership/MembershipProviderBaseTests.cs
#	src/Umbraco.Tests/Membership/UmbracoServiceMembershipProviderTests.cs
#	src/Umbraco.Tests/Services/MemberServiceTests.cs
#	src/Umbraco.Web/Security/AppBuilderExtensions.cs
#	src/Umbraco.Web/Security/BackOfficeUserManager.cs
#	src/Umbraco.Web/Security/MembershipProviderBase.cs
#	src/Umbraco.Web/Security/MembershipProviderExtensions.cs
#	src/Umbraco.Web/Security/Providers/UsersMembershipProvider.cs
#	src/Umbraco.Web/Security/UmbracoMembershipProviderBase.cs
#	src/Umbraco.Web/UmbracoDefaultOwinStartup.cs
2019-11-26 11:51:50 +01:00
Bjarke BergandGitHub d58787e965 Merge pull request #7220 from umbraco/netcore/feature/AB3917-remove-membership-providers
Remove membership providers from Core
2019-11-26 11:38:42 +01:00
Bjarke Berg fd22afd387 AB3917 - Removes unused variable.. 2019-11-26 09:38:24 +01:00
Bjarke Berg 7831d00808 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3917-remove-membership-providers 2019-11-26 08:54:14 +01:00
Bjarke Berg 969832310e Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/core-cannot-use-system-web 2019-11-26 08:47:33 +01:00
Bjarke BergandGitHub 294d9819b4 Merge pull request #7205 from umbraco/netcore/feature/AB3915-remaining-services
Moves remaining service abstractions
2019-11-26 08:21:44 +01:00
Bjarke Berg 323a60fa76 Removed IOHelper.Default, to prepare for injecting 2019-11-26 08:15:00 +01:00
Shannon 3b67731cbc fixes new installation password reset 2019-11-26 17:19:53 +11:00
Shannon 488f6925b8 Fixes tests, removes some magic strings 2019-11-26 12:49:57 +11:00
Shannon a6707cd367 Cleans up some usings with System.Web 2019-11-26 00:13:37 +11:00
Shannon 4fe20bb7c8 Removes references to password question/answer/ProviderUserKey 2019-11-26 00:03:45 +11:00
Shannon b90446ee88 Merge branch 'netcore/feature/AB3915-remaining-services' into netcore/feature/AB3917-remove-membership-providers 2019-11-25 23:55:50 +11:00
Shannon d41d545045 oops fix build 2019-11-25 23:55:14 +11:00
Shannon a458df360f Removes references to password question/answer 2019-11-25 23:53:12 +11:00
Shannon 76b413e527 Removes all references of System.Web.Security from core project 2019-11-25 23:37:30 +11:00
Shannon 3e518a0921 Merge branch 'netcore/feature/AB3915-remaining-services' into netcore/feature/AB3917-remove-membership-providers
# Conflicts:
#	src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs
#	src/Umbraco.Core/Runtime/CoreInitialComposer.cs
2019-11-25 23:19:15 +11:00
Shannon ed9a6d3f22 Moves culture dictionary implementation to Core instead of web since it has nothing to do with Web really, fixes tests
# Conflicts:
#	src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs
#	src/Umbraco.Core/Runtime/CoreInitialComposer.cs
#	src/Umbraco.Web/Editors/AuthenticationController.cs
#	src/Umbraco.Web/Install/InstallSteps/NewInstallStep.cs
2019-11-25 23:16:49 +11:00
Shannon 73bb9e3279 Moves culture dictionary implementation to Core instead of web since it has nothing to do with Web really, fixes tests 2019-11-25 23:10:54 +11:00
Shannon 763b090b4d Fixes up issues with members, now it still works in the UI 2019-11-25 22:08:08 +11:00
Shannon 1136e15a27 kill user membership provider, adds some passwords api abstractions, moves membership provider logic out of Core/services, removes membership scenario and other membership code we don't want anymore. 2019-11-25 21:20:00 +11:00
Shannon 6c5c256e62 ... and down the rabbit hole we go 2019-11-22 13:38:07 +11:00
Shannon 15db9ecbbf start the process of removing membership providers 2019-11-22 13:32:37 +11:00
Shannon 310597ce27 fix build 2019-11-22 13:25:37 +11:00
Shannon 251f1c1f84 Moves ContentTypeChange 2019-11-22 13:15:41 +11:00
Shannon 3dbebfb153 Refactors the usage of ICultureDictionary so its injectable, removes more uses of Current, removes unused methods relying on System.Web 2019-11-22 13:13:19 +11:00
Shannon e51a3efe15 Moves more services and friends, removes more usages of Current 2019-11-22 12:17:26 +11:00
Shannon 719c23c7a2 Fixes build 2019-11-22 11:57:37 +11:00
Shannon DeminickandGitHub 30417034de Merge pull request #7179 from umbraco/netcore/feature/AB3869-move-packages
Netcore: Movement of package abstractions
2019-11-22 11:51:58 +11:00
Bjarke BergandGitHub 199cd75fcc Merge pull request #7172 from umbraco/netcore/feature/AB3734-move-io-stuff
Netcore: Move most of IO into abstractions
2019-11-21 15:24:08 +01:00
Bjarke Berg 3070ce55a8 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3734-move-io-stuff 2019-11-21 14:52:45 +01:00
Bjarke Berg 99fb19b7a3 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3869-move-packages 2019-11-21 14:48:06 +01:00
Shannon DeminickandGitHub 1bbbe53f8f Merge pull request #7176 from umbraco/netcore/feature/AB3789-move-propertyeditors
NetCore: Move PropertyEditor abstractions
2019-11-22 00:36:59 +11:00
Shannon DeminickandGitHub 30c7fe23b6 Merge pull request #7202 from umbraco/netcore/feature/AB3733-moving-icomposer-and-friends
Moving icomposer and friends
2019-11-22 00:33:34 +11:00
Shannon d35040e2eb couple more composer things 2019-11-22 00:32:33 +11:00
Bjarke Berg 75f084002a AB3734 - Review fixes 2019-11-21 14:29:48 +01:00
Shannon 79507c405d moving files 2019-11-22 00:25:26 +11:00
Bjarke Berg 0354fc91bc Removed static ApplicationUrlHelper and introduced IBackOfficeInfo and AspNetBackOfficeInfo 2019-11-21 14:20:27 +01:00
Bjarke Berg 3e360abf15 Removed static ApplicationUrlHelper and introduced IBackOfficeInfo and AspNetBackOfficeInfo 2019-11-21 14:19:56 +01:00
Bjarke Berg 54bd658d41 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/core-cannot-use-system-web 2019-11-21 09:34:14 +01:00
Bjarke Berg d6ba60a2a4 Removed local include 2019-11-21 08:29:32 +01:00
Bjarke Berg e9ea2ce79a Renamed IpResolver to AspNetIpResolver 2019-11-20 15:25:58 +01:00
Bjarke Berg fc22282a59 Injecting IHostingEnvironment 2019-11-20 15:21:09 +01:00
Bjarke Berg bec4205ef5 Introduced a IHostingEnvironment and one implemtation for AspNetHostingEnvironment 2019-11-20 13:38:41 +01:00
Bjarke Berg 94791bcd11 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3734-move-io-stuff
# Conflicts:
#	src/Umbraco.Abstractions/IO/FileSystems.cs
#	src/Umbraco.Abstractions/IO/PhysicalFileSystem.cs
#	src/Umbraco.Abstractions/IO/ShadowWrapper.cs
#	src/Umbraco.Core/Composing/CompositionExtensions/FileSystems.cs
#	src/Umbraco.Tests/IO/PhysicalFileSystemTests.cs
#	src/Umbraco.Tests/IO/ShadowFileSystemTests.cs
#	src/Umbraco.Tests/Persistence/Repositories/PartialViewRepositoryTests.cs
#	src/Umbraco.Tests/Persistence/Repositories/ScriptRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/StylesheetRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/TemplateRepositoryTest.cs
#	src/Umbraco.Tests/Scoping/ScopeFileSystemsTests.cs
#	src/Umbraco.Web/Editors/BackOfficeAssetsController.cs
#	src/Umbraco.Web/Trees/FilesTreeController.cs
2019-11-20 12:31:15 +01:00
Bjarke Berg 0adf295a4f Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3789-move-propertyeditors 2019-11-20 11:38:00 +01:00
Bjarke Berg caa8ccd306 AB3869 - Removed UmbracoVersion from Core Current 2019-11-20 11:36:17 +01:00
Bjarke Berg 259c0263bd Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3869-move-packages
# Conflicts:
#	src/Umbraco.Core/Composing/CompositionExtensions/Services.cs
#	src/Umbraco.Core/Packaging/PackagesRepository.cs
#	src/Umbraco.Tests/TestHelpers/TestObjects.cs
2019-11-20 11:32:57 +01:00
Bjarke Berg 969d8fbedd Introduced a IIpResolver 2019-11-20 11:27:19 +01:00
Bjarke BergandGitHub 44e2019e72 Merge pull request #7190 from crgrieve/7173-crl
Injecting umbraco version
2019-11-20 11:26:36 +01:00
Bjarke Berg 4d5d94d3ed 7173 - Refactored to inject IUmbracoVersion instead of using Current. 2019-11-20 10:50:15 +01:00
Bjarke Berg ec169d17d7 Refactored CoreRuntime to inject a IUmbracoBootPermissionChecker, instead of using system.web to test this it self. Also moved some logging from CoreWebsite into WebRuntime, that used hosting information 2019-11-20 10:20:20 +01:00
Carole Rennie Logan 100d4431dc removing unused using statements 2019-11-19 23:24:08 +00:00
Carole Rennie Logan b69d14da5e IUmbracoVersion updates 2019-11-19 23:15:11 +00:00
Carole Rennie Logan 015d588218 First comimt changing IUmbracoVersion 2019-11-19 22:37:14 +00:00
Bjarke Berg 97ade695a7 Move more code without lot of changes 2019-11-19 14:12:11 +01:00
Bjarke Berg 8ff37564f1 AB3869 - Moved IPackagingService 2019-11-19 13:45:21 +01:00
Bjarke Berg 81b0175cc5 Merge branch 'netcore/dev' into netcore/feature/AB3869-move-packages 2019-11-19 13:42:18 +01:00
Bjarke Berg 0f91870f68 Merge branch 'netcore/dev' into netcore/feature/AB3789-move-propertyeditors 2019-11-19 13:41:18 +01:00
Bjarke Berg 00ce1f389a Simple moved files from core to abstractions 2019-11-19 13:40:38 +01:00
Bjarke Berg 2dad288b93 AB3869 included missing file 2019-11-19 13:10:37 +01:00
Bjarke Berg 133c6b121a AB3869 move packages to abstractions 2019-11-19 13:03:58 +01:00
Bjarke Berg 2c9a1d9735 AB3869 move packages to abstractions 2019-11-19 13:01:00 +01:00
Bjarke Berg 9ab6c5fe7b Injecting RuntimeState instead of using Current 2019-11-19 11:44:34 +01:00
Bjarke Berg b14c01e33d Merge branch 'netcore/dev' into netcore/feature/AB3789-move-propertyeditors 2019-11-19 11:06:13 +01:00
Bjarke Berg a49b313080 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev 2019-11-19 11:05:32 +01:00
Bjarke Berg 7376331761 AB3789 - Moved some of the propertyEditor stuff 2019-11-19 11:00:03 +01:00
Bjarke Berg cd0de24a11 Merge branch 'netcore/dev' into netcore/feature/AB3789-move-propertyeditors 2019-11-19 10:48:37 +01:00
Bjarke Berg 638f05f0b2 Merge remote-tracking branch 'origin/v8/dev' into netcore/feature/AB3789-move-propertyeditors 2019-11-19 10:46:27 +01:00
Bjarke Berg 0484a85f56 Merge remote-tracking branch 'origin/v8/dev' into netcore/feature/AB3789-move-propertyeditors 2019-11-19 10:43:46 +01:00
Bjarke Berg 45b6fcd404 AB3789 - Moved some of the propertyEditor stuff 2019-11-19 10:37:48 +01:00
Bjarke BergandGitHub 5c0f9fb438 Merge pull request #7175 from umbraco/netcore/feature/AB3743-move-remaining-udi-stuff-and-deploy
Netcore: Move remaining Udi stuff
2019-11-19 10:25:37 +01:00
Bjarke Berg d9d267a489 AB3743 - Moved more deploy stuff 2019-11-19 09:50:18 +01:00
Bjarke Berg 3ee18b8975 AB3743 - Moved the remaining Udi stuff and the required deploy stuff 2019-11-19 09:46:51 +01:00
Bjarke BergandGitHub f6ff67aef4 Merge pull request #7170 from soreng/netcore/feature/remove_current_iohelper
Netcore/feature/remove current iohelper
2019-11-19 09:28:25 +01:00
Bjarke Berg 282973f1e2 More injections of IIOHelper 2019-11-19 08:52:39 +01:00
Bjarke Berg ca77c519e9 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/remove_current_iohelper
# Conflicts:
#	src/Umbraco.Abstractions/Configuration/ConfigsExtensions.cs
#	src/Umbraco.Configuration/GlobalSettings.cs
#	src/Umbraco.Tests/Persistence/Repositories/ScriptRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/StylesheetRepositoryTest.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheTests.cs
#	src/Umbraco.Tests/TestHelpers/TestHelper.cs
2019-11-19 08:13:35 +01:00
Bjarke Berg 541e7a3cb5 AB3734 - Post merge fixes 2019-11-19 08:04:24 +01:00
Bjarke Berg c9c4d3acdf Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3734-move-io-stuff
# Conflicts:
#	src/Umbraco.Tests/Persistence/Repositories/ScriptRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/StylesheetRepositoryTest.cs
2019-11-19 07:55:05 +01:00
Bjarke Berg 4f204543e6 AB3734 - Moved alot of stuff from Umbraco.Core.IO into abstractions 2019-11-19 07:53:40 +01:00
Shannon DeminickandGitHub f10a3809ec Merge pull request #7169 from umbraco/netcore/feature/move_icontent_type
NetCore: Move IContentType to abstractions
2019-11-19 17:01:39 +11:00
Shannon e45ea6560d fixes test, adds note 2019-11-19 17:00:58 +11:00
Shannon e366f99105 Cleans up IPropertyType since we don't need the method ConvertAssignedValue as an abstraction 2019-11-19 15:52:56 +11:00
Shannon e537a55181 fix incorrect validation 2019-11-19 15:42:18 +11:00
Shannon 0137996815 Fixes tests, adds notes 2019-11-19 15:38:06 +11:00
Shannon dbd76a903a Cleans up the IPropertyType interface, cleans up how it is constructed 2019-11-19 15:25:04 +11:00
Shannon 1ef5106529 oops fix build 2019-11-19 14:54:03 +11:00
Shannon 645cfcab42 Simplifies the interface inheritance removes SimpleContentTypeMapper (can't be used), improves how mappers are looked up, simplifies other models 2019-11-19 14:10:08 +11:00
Shannon 9f5479d686 Cleans up interface inheritance a bit 2019-11-19 12:28:41 +11:00
Shannon ba35afa494 re, re, re-fixes the merge issues with this stupid csproj file, hopefully it now merges upwards properly. 2019-11-19 12:17:42 +11:00
Shannon 31f51516d2 removes old config transforms for v7 -> v8 no longer needed 2019-11-19 11:53:05 +11:00
Shannon fe2a919573 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/move_icontent_type 2019-11-19 11:52:09 +11:00
Shannon DeminickandGitHub 901e3d1845 Merge pull request #7095 from umbraco/netcore/feature/AB3594_move_exsiting_configuration_to_own_project
Netcore: Move configuration
2019-11-19 11:49:21 +11:00
Shannon f71a54ec8f Adds some comments and fixme 2019-11-19 11:45:21 +11:00
Shannon 8f48df66d5 Refactors Configs and how it acquires a factory, re-internalizes Umbraco.Configuration classes 2019-11-19 11:16:07 +11:00
Søren Gregersen be7c1f6eb1 fixed (almost all) tests 2019-11-18 20:43:38 +01:00
Søren Gregersen 0bdf0ec122 merged 2019-11-18 19:51:42 +01:00
Søren Gregersen b99f2ca25f merged 2019-11-18 19:46:32 +01:00
Søren Gregersen c1ecfbefd5 fix: reverted a few placed, passing tests 2019-11-18 17:40:15 +01:00
Bjarke Berg 2c18dbffeb Clean up 2019-11-18 15:29:04 +01:00
Bjarke Berg 03cb9c0104 Fixed tests 2019-11-18 15:17:18 +01:00
Bjarke Berg 21e9d09ff0 AB3594 - Fixed tests 2019-11-18 14:54:16 +01:00
Bjarke Berg 6af645db95 AB3594 - removed reference to core from configuration 2019-11-18 14:22:11 +01:00
Bjarke Berg 4c05af7b9d AB3594 - Post review fixes.. Also removed the Current class from abstractions, and injected the factory into config 2019-11-18 14:11:50 +01:00
Bjarke Berg 50e61e9227 More usage of IPropertyType, and moved more classes 2019-11-18 13:03:24 +01:00
Bjarke Berg a888b2e4a5 Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2019-11-18 11:04:01 +01:00
Shannon 4338a8f32d Merge branch 'netcore/dev' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project 2019-11-18 20:23:31 +11:00
Shannon cd3a97ce75 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Abstractions/Constants-Conventions.cs
2019-11-18 19:58:42 +11:00
Bjarke Berg c62088aa85 Moved IMember, IPublicAccessService 2019-11-18 09:27:06 +01:00
Bjarke Berg 36e030a2af Moved IContentService, IDataType and PublishResult 2019-11-18 09:21:47 +01:00
Bjarke Berg ac2e8f63ef AB3594 - Post Merge fixes :S 2019-11-15 12:25:09 +01:00
Bjarke Berg 47a0326e9c Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project 2019-11-15 11:43:05 +01:00
Bjarke Berg 603ec0ccfb AB3594 - Moved the composition root out to UmbracoApplicationBase, and injecting the needed parts from there. Also remove usages of ConfigurationManager from Umbraco.Core 2019-11-15 11:41:13 +01:00
Bjarke Berg 126380dcee AB3594 - Removed references from core to configuration 2019-11-14 12:49:56 +01:00
Bjarke Berg 73167029f0 Merge remote-tracking branch 'origin/v8/dev' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project 2019-11-14 08:05:32 +01:00
Shannon DeminickandGitHub 0423ea7bd8 Merge pull request #7152 from umbraco/netcore/feature/AB3761-moving-stuff
Moving whatever can be moved currently to Abstractions project
2019-11-14 17:19:57 +11:00
Shannon f4f440e9f8 Moves a couple more packaging things 2019-11-14 17:16:47 +11:00
Shannon 1db673d544 Moves some packages stuff 2019-11-14 17:10:06 +11:00
Shannon 1f17085801 Merge branch 'netcore/dev' into netcore/feature/AB3761-moving-stuff 2019-11-14 17:00:47 +11:00
Shannon 89f5cec832 Fixes System.ComponentModel.Annotations to keep working with aspnet framework 2019-11-14 17:00:21 +11:00
Shannon 221a0c8d9d Moves more stuff 2019-11-14 16:59:43 +11:00
Shannon 3bd223669f Moves as much as possible from Models/Packaging, Models/PublishedContent, Models/Entities, Models/Membership 2019-11-14 16:19:24 +11:00
Shannon DeminickandGitHub d0f534e2f4 Merge pull request #7120 from umbraco/netcore/feature/AB3649-move-manifest-stuff
Netcore: Move manifest code
2019-11-14 12:10:25 +11:00
Shannon DeminickandGitHub 2012745c13 Merge pull request #7135 from umbraco/netcore/feature/abstract-systemdirectories
Changed SystemDirectories from static to instance,
2019-11-14 12:08:40 +11:00
Søren Gregersen 7b19ab005b first round of refactoring 2019-11-13 21:12:02 +01:00
Bjarke Berg b50ffb11bd post merge 2019-11-13 15:52:18 +01:00
Bjarke Berg 2e200779f9 Merge branch 'netcore/feature/abstract-systemdirectories' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project 2019-11-13 14:20:21 +01:00
Bjarke Berg c9a99f52aa Can't have the path info on IOHelper, because that leads to a cycle between config and IOHelper. Now you need to go directly to config, if you need a path 2019-11-13 14:15:50 +01:00
Bjarke Berg 5edac2a476 Merge branch 'netcore/feature/abstract-systemdirectories' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project
# Conflicts:
#	src/Umbraco.Abstractions/IO/IIOHelper.cs
#	src/Umbraco.Core/IO/IOHelper.cs
2019-11-13 13:26:44 +01:00
Bjarke Berg b721e75cd2 Move the config usage out of IOHelper 2019-11-13 13:22:28 +01:00
Bjarke Berg e7683b7a39 Cleanup and moved some methods from the interface 2019-11-13 12:56:22 +01:00
Bjarke Berg 0be396c4fd Post merge fixes 2019-11-13 12:53:01 +01:00
Bjarke Berg 6dceb9c449 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project 2019-11-13 12:45:34 +01:00
Bjarke Berg 9889967b83 Merge branch 'netcore/feature/abstract-systemdirectories' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project
# Conflicts:
#	src/Umbraco.Abstractions/Configuration/GlobalSettingsExtensions.cs
#	src/Umbraco.Core/ConfigsExtensions.cs
#	src/Umbraco.Core/Configuration/GlobalSettings.cs
#	src/Umbraco.Tests/Configurations/GlobalSettingsTests.cs
2019-11-13 12:38:56 +01:00
Bjarke Berg 683c0da468 Moved stuff from SystemDirectories into constants and IOHelper to avoid a circular dependency 2019-11-13 11:56:32 +01:00
Bjarke Berg ad91b2d9fc More movement 2019-11-13 10:48:51 +01:00
Bjarke Berg 6b0f7ce038 Merge remote-tracking branch 'origin/v8/dev' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project
# Conflicts:
#	src/Umbraco.Abstractions/Constants-Conventions.cs
2019-11-13 08:39:13 +01:00
Shannon DeminickandGitHub 149d128d03 Merge pull request #7144 from umbraco/netcore/feature/AB3742-udi-fixing
Fixing Udi and moving it's components to Abstractions
2019-11-13 17:29:13 +11:00
Shannon 1a6a31e337 Moves more Udi things 2019-11-13 16:51:07 +11:00
Shannon c97b156eaf Moves Udi, UriParser and others to abstractions 2019-11-13 16:44:40 +11:00
Shannon c58c31c6bd Split Udi into UdiParser & UdiParserServiceConnectors, remove GuidUdi and StringUdi Parse methods (makes no sense), adds generic parse method to UdiParser, simplifies tests, removes Current usage 2019-11-13 16:33:40 +11:00
Shannon 995b31b86c Cleans up IProperty 2019-11-13 12:17:09 +11:00
Shannon 319376d157 Cleans up IPropertyCollection 2019-11-13 12:04:50 +11:00
Shannon 850ecf6900 Cleans up IPropertyType 2019-11-13 11:56:35 +11:00
Shannon 46b27d1257 Changes protected field to property, makes Regex/Required valiidators more resilient to testing removes the need for setting up Current in the ManifestParserTests 2019-11-13 11:43:16 +11:00
Shannon 5bcf9ef102 removes IOHelper registration 2019-11-13 11:17:48 +11:00
Bjarke Berg 424260ac2b Merge branch 'netcore/feature/abstract-systemdirectories' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project
# Conflicts:
#	src/Umbraco.Core/ConfigsExtensions.cs
2019-11-12 15:32:45 +01:00
Bjarke Berg 42904d63aa Fixed views 2019-11-12 15:32:03 +01:00
Bjarke Berg 0fcf8325e3 Changed SystemDirectories from static to instance, Added interface in abstractions and create a static property on current. 2019-11-12 15:25:21 +01:00
Bjarke Berg 3ffa7700ff AB3594 - missing xmldoc end 2019-11-12 14:46:56 +01:00
Bjarke Berg 3a9686d56b AB3594 - Moved more config stuff 2019-11-12 14:42:57 +01:00
Bjarke Berg 6d18b3f363 Merge branch 'netcore/feature/AB3649-move-manifest-stuff' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project 2019-11-12 14:11:08 +01:00
Bjarke Berg 9b4c26bf7e AB3649 - Fixed tests 2019-11-12 13:40:07 +01:00
Bjarke Berg c016a48b36 AB3649 - Extracted IManifestParser 2019-11-12 11:06:50 +01:00
Bjarke Berg 94f5894b74 AB3649 - Moved manifest stuff 2019-11-12 10:59:04 +01:00
Bjarke Berg b64b0758e1 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3649-move-manifest-stuff 2019-11-12 10:42:48 +01:00
Bjarke Berg 6da93c6fc3 AB3649 - Refactored services injected into ctor instead of methods 2019-11-12 10:42:39 +01:00
Bjarke Berg b4880944be Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3649-move-manifest-stuff
# Conflicts:
#	src/Umbraco.Core/CompositionExtensions_Essentials.cs
2019-11-12 10:38:33 +01:00
Bjarke BergandGitHub 282220ee39 Merge pull request #7109 from umbraco/netcore/feature/AB3650-TypeFinder-abstraction
ITypeFinder abstraction
2019-11-12 10:37:41 +01:00
Bjarke Berg 267a9af30f Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3650-TypeFinder-abstraction
# Conflicts:
#	src/Umbraco.Core/CompositionExtensions_Essentials.cs
#	src/Umbraco.Core/Runtime/CoreRuntime.cs
#	src/Umbraco.Tests/Runtimes/StandaloneTests.cs
#	src/Umbraco.Tests/Testing/UmbracoTestBase.cs
2019-11-12 10:05:54 +01:00
Shannon DeminickandGitHub 40894c8ed0 Merge pull request #7129 from umbraco/netcore/feature/AB3736-services-models
Moving most repositories and service interfaces (excluding content based ones)
2019-11-12 17:57:19 +11:00
Shannon e0351bc837 fix test 2019-11-12 17:56:47 +11:00
Shannon 0b16d6dee1 fix build 2019-11-12 16:44:13 +11:00
Shannon 161367bb71 fix build 2019-11-12 16:42:53 +11:00
Shannon 2b2db8b8ef Moves most service interfaces, ensure IOHelper is registered 2019-11-12 16:31:08 +11:00
Shannon 40f1a1f6ea More repos 2019-11-12 14:49:41 +11:00
Shannon 91d5029047 moves more repos 2019-11-12 14:43:19 +11:00
Shannon 570e9ca7bd Moves IExternalLoginRepository, abstracts out IUserLoginInfo 2019-11-12 14:39:27 +11:00
Shannon 8cc218f716 Moves more repos 2019-11-12 14:23:53 +11:00
Shannon f3aca158fb Lots of the repo interfaces moved 2019-11-12 14:16:50 +11:00
Shannon 545a427d11 abstracts out IScript, stops casting stuff 2019-11-12 13:49:56 +11:00
Shannon 38986f3bfd Abstracts out IStylesheet, IStylesheetProperty 2019-11-12 13:33:02 +11:00
Shannon DeminickandGitHub df94becbc9 Merge pull request #7128 from umbraco/netcore/feature/AB3735-xml-xpath-moving
Moves all Umbraco.Core.Xml items to the Abstractions project
2019-11-12 13:00:31 +11:00
Shannon e58edd7d5d Moves remaining Umbraco.Core.Xml items to abstractions project 2019-11-12 12:56:17 +11:00
Shannon fce8ac87a2 Moves a bunch of the xml/xpath classes/interfaces and remvoes unused code of XmlHelper 2019-11-12 12:37:21 +11:00
Bjarke Berg f90fc48ca8 AB3649 - Moved IContent and ContentSchedule 2019-11-11 15:42:14 +01:00
Shannon 3242f78aa6 Fixes tests 2019-11-11 21:38:18 +11:00
Shannon d3fb1ae842 fixing tests 2019-11-11 19:46:11 +11:00
Shannon 46b91b7991 no c#8 2019-11-11 19:11:40 +11:00
Shannon dd24d512fd fixes startup order 2019-11-11 19:01:10 +11:00
Shannon f154d9c333 Moves TypeLoader to abstractions 2019-11-11 18:56:14 +11:00
Bjarke Berg 16ff38a456 AB3649 - Moved IPropertyCollection, IMedia, and IContentBase 2019-11-11 08:36:27 +01:00
Shannon d0834ec340 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3650-TypeFinder-abstraction
# Conflicts:
#	src/Umbraco.Abstractions/Composing/TypeFinder.cs
#	src/Umbraco.Tests/Components/ComponentTests.cs
#	src/Umbraco.Tests/Composing/ComposingTestBase.cs
#	src/Umbraco.Tests/Composing/CompositionTests.cs
#	src/Umbraco.Tests/Composing/TypeFinderTests.cs
#	src/Umbraco.Tests/Composing/TypeLoaderTests.cs
#	src/Umbraco.Tests/CoreThings/UdiTests.cs
#	src/Umbraco.Tests/Runtimes/StandaloneTests.cs
#	src/Umbraco.Tests/TestHelpers/BaseUsingSqlCeSyntax.cs
#	src/Umbraco.Tests/Web/TemplateUtilitiesTests.cs
2019-11-11 17:39:56 +11:00
Shannon DeminickandGitHub 297b497e78 Merge pull request #7111 from umbraco/netcore/feature/non-static-iohelper
NetCore: Static IOHelper -> IIOHelper
2019-11-11 17:36:10 +11:00
Shannon a8face2023 Moving TypeHelper ... but now need IOHelper... 2019-11-11 17:30:50 +11:00
Shannon d84963dac5 Uses ITypeFinder abstraction where required 2019-11-11 16:07:47 +11:00
Bjarke Berg e5c3b1f8aa AB3649 - More refactor of Property to IProperty... 2019-11-08 15:10:05 +01:00
Bjarke Berg 4c963d5fb2 AB3649 - ILocalizationService 2019-11-08 14:38:57 +01:00
Bjarke Berg c285a16393 AB3649 - Moved more stuff 2019-11-08 14:30:46 +01:00
Bjarke Berg ed82bd05c6 AB3649 - Abstracted IPropertyType, IProperty and IPropertyValue 2019-11-08 14:27:27 +01:00
Bjarke Berg 118d50671f AB3649 - Moved Manifest stuff 2019-11-08 10:58:31 +01:00
Bjarke Berg 1a4f167b12 Merge branch 'netcore/feature/non-static-iohelper' into netcore/feature/AB3649-move-manifest-stuff 2019-11-08 08:58:24 +01:00
Bjarke Berg 06a153c09f Merge branch 'netcore/feature/non-static-iohelper' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project 2019-11-08 08:56:07 +01:00
Bjarke Berg 0b7422c0d7 AB3653 - Moved IIOHelper interface to abstractions 2019-11-08 08:52:44 +01:00
Bjarke Berg ee29c7e974 Merge branch 'netcore/feature/non-static-iohelper' into netcore/feature/AB3649-move-manifest-stuff 2019-11-08 08:35:50 +01:00
Bjarke Berg 5720fc7465 AB3653 - Fixed IOHelper on Current to be real static.. 2019-11-08 08:35:16 +01:00
Bjarke Berg 80b17e388f Using IIOHelper in ManifestParser 2019-11-08 08:24:34 +01:00
Bjarke Berg 2ce67dcf9a Merge branch 'netcore/feature/non-static-iohelper' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project
# Conflicts:
#	src/Umbraco.Core/Manifest/ManifestParser.cs
#	src/Umbraco.Tests/Composing/CompositionTests.cs
2019-11-08 07:55:23 +01:00
Bjarke Berg 13507c0e13 AB3653 - Static IOHelper -> IIOHelper (Moved into Current as a first step 😭) 2019-11-08 07:51:14 +01:00
Shannon c812e3aec9 fixing tests, reverting change to TypeHelper, just leaving it as is but with caching 2019-11-08 15:31:38 +11:00
Shannon db216e43b7 Moves the WebCachingAppCache to the web project 2019-11-08 15:00:15 +11:00
Shannon 74d12a4d62 Moves more cache items to the abstractions project, decouples the HttpRequestAppCache from System.Web 2019-11-08 14:51:20 +11:00
Shannon 6398f1e216 Creates ITypeFinder interface and simplifies type finder with TypeFinderExtensions, moves GetTypeByName to TypeHelper using assembly name parsing instead of scanning every assembly. 2019-11-08 14:26:06 +11:00
Bjarke Berg 05569440c4 Post merge fixes - Port number 2019-11-07 14:47:41 +01:00
Bjarke Berg 0110813fc1 Post merge fixes 2019-11-07 14:38:31 +01:00
Bjarke Berg 563f58afa6 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/SolutionInfo.cs
2019-11-07 14:34:45 +01:00
Bjarke Berg c70d82d32b AB3649 - Moved ManifestSection 2019-11-07 14:10:06 +01:00
Bjarke Berg 4529cd408a Init CurrentCore 2019-11-07 14:08:07 +01:00
Bjarke Berg f4fee90b7e Merge remote-tracking branch 'origin/netcore/feature/AB3594_move_exsiting_configuration_to_own_project' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project 2019-11-07 13:11:26 +01:00
Bjarke Berg 8ef89a0722 Merge branch 'netcore/dev' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project 2019-11-07 13:03:18 +01:00
Bjarke Berg 40ca1fd27a Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2019-11-07 13:02:56 +01:00
Bjarke Berg a3e73b59bf More config movement 2019-11-07 13:02:30 +01:00
ShannonandBjarke Berg 39880f885a fixing tests 2019-11-07 13:02:30 +01:00
ShannonandBjarke Berg a3d142831e fixing tests 2019-11-07 13:02:30 +01:00
ShannonandBjarke Berg 69c2b732ce new IJsonSerializer, moves other base cache refresher classes 2019-11-07 13:02:30 +01:00
ShannonandBjarke Berg 15bf971f04 Removes weird serialization implementation. 2019-11-07 13:02:29 +01:00
Bjarke Berg c77d910e95 Move some of the config to Umbraco.Configuration 2019-11-07 13:02:29 +01:00
Bjarke Berg c6ca955d5a Move some of the config to Umbraco.Configuration 2019-11-07 13:02:29 +01:00
ShannonandBjarke Berg f11ce3b9d9 Moves AppCaches and cache refresher bases 2019-11-07 13:02:28 +01:00
ShannonandBjarke Berg fdda90c2bf Installs runtime cache nuget into abstractions, moves more cache classes and preps AppCaches to not rely on system.web. 2019-11-07 13:02:28 +01:00
ShannonandBjarke Berg 7f9a3a7868 Creates SafeLazy to be used by all caching things instead of relying on the base class as a static that cannot be moved right now. 2019-11-07 13:02:27 +01:00
ShannonandBjarke Berg 235f6fbc54 moves DictionaryAppCache 2019-11-07 13:02:27 +01:00
ShannonandBjarke Berg 0463f2a43b Moves more cache classes 2019-11-07 13:02:27 +01:00
ShannonandBjarke Berg 93c75372e7 Moves IRepositoryCachePolicy 2019-11-07 13:02:27 +01:00
ShannonandBjarke Berg 57fab1d34b Moves IAppPolicyCache 2019-11-07 13:02:27 +01:00
ShannonandBjarke Berg c7cf7f60e8 Removes CacheItemPriority since this wasn't used, or was used in one place innapropriately. 2019-11-07 13:02:27 +01:00
ShannonandBjarke Berg 3913742b98 Removes totally unused CacheItemRemovedCallback 2019-11-07 13:02:27 +01:00
Bjarke Berg 48437adb47 Move Configs to abstractions 2019-11-07 13:02:27 +01:00
Bjarke Berg b004bf8920 Move Configs to abstractions, and injected factory all over to create one because we need to inject stuff from system.configuration 2019-11-07 13:02:27 +01:00
Bjarke Berg 99da374fbf Move slim entities 2019-11-07 13:02:26 +01:00
Bjarke Berg 4f5a5a09b4 Move events 2019-11-07 13:02:26 +01:00
Bjarke Berg a0138af362 Move a small part of current 2019-11-07 13:02:26 +01:00
Bjarke Berg 640da8bc91 Move logging stuff 2019-11-07 13:02:26 +01:00
Bjarke Berg d16bc41e3d Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project 2019-11-07 12:59:40 +01:00
Bjarke Berg 914d6f3f2e More config movement 2019-11-07 12:58:56 +01:00
Shannon DeminickandGitHub 1d2adb8409 Merge pull request #7087 from umbraco/netcore/feature/AB3648-ICachePolicy
Moving Umbraco.Core.Cache files to abstractions project
2019-11-07 22:57:28 +11:00
Shannon 7a4cafd425 fixing tests 2019-11-07 22:22:09 +11:00
Shannon 3a78e48d3a fixing tests 2019-11-07 21:46:04 +11:00
Shannon c91465e2b2 new IJsonSerializer, moves other base cache refresher classes 2019-11-07 21:28:56 +11:00
Shannon a9a3051af1 Removes weird serialization implementation. 2019-11-07 21:07:09 +11:00
Bjarke Berg bd7a2d670a Move some of the config to Umbraco.Configuration 2019-11-07 10:10:12 +01:00
Bjarke Berg 7a0dc23867 Move some of the config to Umbraco.Configuration 2019-11-07 10:08:16 +01:00
Shannon 327ea04d98 Moves AppCaches and cache refresher bases 2019-11-07 19:56:49 +11:00
Shannon 3b862f7e3a Installs runtime cache nuget into abstractions, moves more cache classes and preps AppCaches to not rely on system.web. 2019-11-07 19:39:20 +11:00
Shannon 922671eb7d Creates SafeLazy to be used by all caching things instead of relying on the base class as a static that cannot be moved right now. 2019-11-07 19:16:45 +11:00
Shannon b36f9e925e moves DictionaryAppCache 2019-11-07 18:57:40 +11:00
Shannon 2a8b505a66 Moves more cache classes 2019-11-07 18:50:14 +11:00
Shannon 1193d8fecd Moves IRepositoryCachePolicy 2019-11-07 18:36:29 +11:00
Shannon ae94b668c5 Moves IAppPolicyCache 2019-11-07 18:35:21 +11:00
Shannon b4f3cc005d Removes CacheItemPriority since this wasn't used, or was used in one place innapropriately. 2019-11-07 18:34:05 +11:00
Shannon 5ec78cd510 Removes totally unused CacheItemRemovedCallback 2019-11-07 18:29:16 +11:00
Bjarke Berg 70aefc4ede Move Configs to abstractions 2019-11-07 08:00:48 +01:00
Bjarke Berg c6157b8765 Move Configs to abstractions, and injected factory all over to create one because we need to inject stuff from system.configuration 2019-11-06 15:37:03 +01:00
Bjarke Berg f1d85be6bb Move slim entities 2019-11-06 14:18:06 +01:00
Bjarke Berg 934fa2748d Move events 2019-11-06 13:35:34 +01:00
Bjarke Berg 8f4d4cb23f Move a small part of current 2019-11-06 10:56:11 +01:00
Bjarke Berg fc1e4b182a Move logging stuff 2019-11-06 10:43:33 +01:00
Bjarke Berg 747fe85ede Moved collection builders 2019-11-05 18:46:43 +01:00
Bjarke BergandGitHub 0d33baba45 Merge pull request #7062 from umbraco/netcore/feature/move_constants
Unicore: Move constrants to abstractions
2019-11-05 17:04:29 +01:00
Bjarke Berg 71d83ca9ff removed obj folder 2019-11-05 17:02:19 +01:00
Bjarke Berg ca60cd76f3 Merge branch 'netcore/feature/mb_embed' into netcore/feature/move_constants
# Conflicts:
#	src/Umbraco.Infrastructure/obj/Debug/netstandard2.0/Umbraco.Infrastructure.AssemblyInfo.cs
#	src/Umbraco.Infrastructure/obj/Debug/netstandard2.0/Umbraco.Infrastructure.AssemblyInfoInputs.cache
2019-11-05 16:55:27 +01:00
Bjarke Berg d8cfd786aa Created empty infrastructure project 2019-11-05 16:52:49 +01:00
Bjarke Berg 9995d838ed Moved mapping, and abstractions for migrations 2019-11-05 16:52:43 +01:00
Bjarke Berg 3df329deb2 bump version and remove unused references 2019-11-05 16:52:22 +01:00
Bjarke Berg 043c452a2d AB3613 - Only enumerate the folder if it exists 2019-11-05 16:52:18 +01:00
Bjarke Berg f3ebe79fc7 Updated comments 2019-11-05 14:59:10 +01:00
Bjarke Berg 63bfc4c2c0 Move constants 2019-11-05 14:55:42 +01:00
Bjarke Berg befcabfced Move constants 2019-11-05 13:28:26 +01:00
Bjarke Berg 030b7d1e52 Merge remote-tracking branch 'origin/v8/feature/mb-embed-handle-tours-to-not-expect-the-app-plugins-folder' into netcore/feature/mb_embed 2019-11-05 11:46:44 +01:00
Bjarke Berg 219da2a427 Created empty infrastructure project 2019-11-05 11:31:29 +01:00
Bjarke Berg b4e98286f5 Moved mapping, and abstractions for migrations 2019-11-05 10:19:13 +01:00
Bjarke Berg e37fdea574 bump version and remove unused references 2019-11-05 09:39:16 +01:00
Bjarke Berg 9dfa3b55a6 MB need to know abstractions 2019-11-05 09:07:18 +01:00
Bjarke Berg 1732fad780 Merge remote-tracking branch 'origin/v8/feature/mb-embed' into netcore/feature/mb_embed 2019-11-05 07:54:49 +01:00
Bjarke Berg fc2fc18a26 Moved filesytem abstractions + removed resharper warnings 2019-11-04 19:22:17 +01:00
Bjarke Berg 10fd0bd013 Post merge stuff 2019-10-30 15:28:15 +01:00
Bjarke Berg eade92e803 Merge remote-tracking branch 'origin/v8/dev' into vx/feature/unicore
# Conflicts:
#	src/Umbraco.Core/ObjectExtensions.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
#	src/Umbraco.Core/StringExtensions.cs
#	src/Umbraco.Web.UI.Client/package-lock.json
2019-10-30 13:35:48 +01:00
Bjarke Berg 8a07886303 Merge remote-tracking branch 'origin/v8/dev' into vx/feature/unicore 2019-10-11 10:09:03 +02:00
Bjarke Berg 8153412cb5 Moved panicexception 2019-10-09 11:50:39 +02:00
Bjarke Berg 2b8805b69d Merge branch 'v8/dev' into vx/feature/unicore
# Conflicts:
#	src/Umbraco.Web.UI.Client/package-lock.json
2019-10-09 11:09:10 +02:00
Bjarke Berg 9a2d309dbe Merge remote-tracking branch 'origin/v8/dev' into vx/feature/unicore
# Conflicts:
#	src/Umbraco.Abstractions/EnumerableExtensions.cs
#	src/Umbraco.Abstractions/Models/Entities/EntityBase.cs
#	src/Umbraco.Core/Models/Member.cs
2019-07-03 15:05:34 +02:00
Bjarke Berg 83c8d04b15 Merge remote-tracking branch 'origin/v8/dev' into vx/feature/unicore 2019-06-19 07:32:14 +02:00
Bjarke Berg d05a4a4d5c Merge remote-tracking branch 'origin/v8/dev' into vx/feature/unicore
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/V_7_8_0/AddMediaVersionTable.cs
2019-06-18 15:04:16 +02:00
Bjarke Berg f06ff71e5b Removed nuget of semver from test (Now using the local in abstractions) 2019-06-03 11:18:10 +02:00
Bjarke Berg e453985ee9 Merge remote-tracking branch 'origin/v8/dev' into vx/feature/unicore 2019-06-03 07:39:23 +02:00
Bjarke Berg 15c02ce828 Merge remote-tracking branch 'origin/v8/dev' into vx/feature/unicore 2019-05-31 11:40:15 +02:00
Bjarke Berg 1fe02af841 Moved more stuff into Abstractions 2019-05-28 16:23:52 +02:00
Bjarke Berg 7aca2e3217 Fixed tests that expected file to be in Umbraco.Core 2019-05-27 14:28:24 +02:00
Bjarke Berg e9324055e9 Moved event stuff 2019-05-27 13:53:53 +02:00
Bjarke Berg 00a121188a Moved more abstractions of models 2019-05-27 12:58:51 +02:00
Bjarke Berg dcf022ffaa Moved more abstractions of models 2019-05-27 11:45:35 +02:00
Bjarke Berg 408b00a737 Moved more abstractions of models 2019-05-27 11:20:33 +02:00
Bjarke Berg e571f51750 Merge remote-tracking branch 'origin/v8/dev' into vx/feature/unicore 2019-05-27 10:21:26 +02:00
Bjarke Berg 85eb44ecc3 Moved more abstractions of models 2019-05-27 10:16:07 +02:00
Bjarke Berg 489bb7f3e9 Added netstandard to web.config. 2019-05-27 09:58:15 +02:00
Bjarke Berg ff71d89415 Moved more files and removed modelsbuilder from UI project 2019-05-27 08:57:57 +02:00
Carole Rennie Logan cd93ebe7c1 moving intextensions and removing unused imports
moving intextensions and removing unused imports
2019-05-21 10:48:59 +01:00
Lars-Erik Aabech 917efc4d9a Bump lang level to 7.3 2019-05-20 18:43:27 +02:00
Shannon 3f2dd88325 Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 18:40:27 +02:00
Shannon d42b2492b7 Moves more utilities 2019-05-20 18:40:13 +02:00
Lars-Erik Aabech 98f3035b5c Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 18:39:45 +02:00
Lars-Erik Aabech dccee475f2 Moved several configuration abstractions including IUmbracoSettingsSection. 2019-05-20 18:39:41 +02:00
Bjarke Berg 8bf90bae91 Started moving caches.. 2019-05-20 18:28:35 +02:00
Stephan 34648fc8aa Umbraco.Abstractions default namespace is Umbraco.Core 2019-05-20 18:25:25 +02:00
Lars-Erik Aabech 5f76bb82cd Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 18:23:43 +02:00
Shannon a0506622b4 dirty tracking, entities, cloning moved 2019-05-20 18:23:22 +02:00
Lars-Erik Aabech 1256512a1d Set language level to 7.1 for abstractions project for now 2019-05-20 18:23:21 +02:00
Shannon 46cb6e2329 Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 18:08:09 +02:00
Shannon e58588801e fixes csproj merge 2019-05-20 18:07:57 +02:00
Lars-Erik Aabech 185c453c00 Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 17:58:27 +02:00
Lars-Erik Aabech 152ba318bf Removed Semver dependency by copying the class from the original repo. 2019-05-20 17:58:22 +02:00
Shannon 708f4d89c7 Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 17:57:43 +02:00
Shannon 57ff36452e Moves Strings and extensions to abstractions (where possible) 2019-05-20 17:57:28 +02:00
Stephan 2495df5573 Move collections to abstractions 2019-05-20 17:50:31 +02:00
Carole Rennie Logan e0fd6fa8ee Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 16:48:13 +01:00
Carole Rennie Logan 79e447239f moving custombooleantypeconverter
moving custombooleantypeconverter to abstractions
2019-05-20 16:48:08 +01:00
Lars-Erik Aabech 74865740e0 Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 17:39:30 +02:00
Lars-Erik Aabech f8bc25a2dd Moved runtime abstractions and added SemVer + extensions to abstractions. 2019-05-20 17:39:11 +02:00
Carole Rennie Logan 4da063369d moving SafeCallContext to abstractions
moving SafeCallContext to abstractions
2019-05-20 16:38:42 +01:00
Bjarke Berg facf13f6d5 FIX 2019-05-20 17:29:04 +02:00
Carole Rennie Logan 98afb9a030 Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 16:26:25 +01:00
Lars-Erik Aabech f8462a739c Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 17:25:59 +02:00
Lars-Erik Aabech 837a7b506e Moved first core DI abstractions 2019-05-20 17:25:55 +02:00
Lars-Erik Aabech d576be3593 Made DataTableExtensions and made it/methods public. 2019-05-20 17:25:49 +02:00
Carole Rennie Logan 20282edba4 Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 16:25:38 +01:00
Bjarke Berg 8fa3f8e06a Moved more stuff 2019-05-20 17:25:29 +02:00
Carole Rennie Logan b85fc649ea moving core items to abstractions
moving core items to abstractions
2019-05-20 16:25:08 +01:00
Stephan deefad4b89 Move ILogger/IProfiler/IProfilingLogger to abstractions 2019-05-20 17:24:46 +02:00
Lars-Erik Aabech 888390d86b Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 17:20:56 +02:00
Lars-Erik Aabech 99d2509eaa Moved several poco extensions and removed BindingRedirects 2019-05-20 17:20:52 +02:00
Bjarke Berg e0c0da802d Moved more stuff 2019-05-20 17:20:15 +02:00
Bjarke Berg f238f37508 Moved InvalidCompositionException 2019-05-20 17:12:54 +02:00
Bjarke Berg 2e2a275ea4 Merge remote-tracking branch 'origin/vx/feature/unicore' into vx/feature/unicore 2019-05-20 17:09:54 +02:00
Bjarke Berg a13723cc7e Moved media 2019-05-20 17:09:45 +02:00
Carole Rennie Logan 30add94906 uditype move to abstractions
uditype move to abstractions
2019-05-20 16:09:37 +01:00
Carole Rennie Logan e61cd0fbba Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 16:06:21 +01:00
Carole Rennie Logan 69407caea8 move upgradeablereadlock
moving to abstractions.
2019-05-20 16:06:09 +01:00
Lars-Erik Aabech dd9cfa7abf Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 17:05:10 +02:00
Lars-Erik Aabech 9122bbdd45 Moved IDiscoverable and Dashboards.* 2019-05-20 17:05:04 +02:00
Stephan 295d2d73e3 Move DisposableObjectSlim to abstractions 2019-05-20 17:04:33 +02:00
Carole Rennie Logan 709babc95b Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 15:59:27 +01:00
Bjarke Berg cab1462d51 Merge remote-tracking branch 'origin/vx/feature/unicore' into vx/feature/unicore 2019-05-20 16:59:07 +02:00
Bjarke Berg cad3e8a635 Moved MacroErrorBehaviour.cs 2019-05-20 16:58:47 +02:00
Carole Rennie Logan 9bac6a4074 Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 15:57:51 +01:00
Carole Rennie Logan 49a38f2824 HashCodeCombiner
move hashcodecombiner to abstractions
2019-05-20 15:57:42 +01:00
Lars-Erik Aabech e19cfe575b Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 16:57:40 +02:00
Lars-Erik Aabech c007757564 Moved code annotations 2019-05-20 16:57:14 +02:00
Bjarke Berg 0b77f8c244 Merge remote-tracking branch 'origin/vx/feature/unicore' into vx/feature/unicore 2019-05-20 16:56:19 +02:00
Bjarke Berg f470c4cd3f Moved read and writelock 2019-05-20 16:56:03 +02:00
Shannon 651d48e5c8 Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 16:54:30 +02:00
Shannon 1f70e67ac1 moved more utilities 2019-05-20 16:54:20 +02:00
Lars-Erik Aabech 2ef03a2c24 Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 16:48:22 +02:00
Shannon 04b319ecb2 moves 4 more utilities 2019-05-20 16:48:12 +02:00
Lars-Erik Aabech fb608d5131 Merge branch 'vx/feature/unicore' of https://github.com/umbraco/Umbraco-CMS into vx/feature/unicore 2019-05-20 16:45:17 +02:00
Lars-Erik Aabech dff06bde30 Moved most exceptions to abstractions. Added abstractions to web and tests. 2019-05-20 16:45:12 +02:00
Shannon 30c1c76263 Moved Attempt and updated project refs 2019-05-20 16:40:11 +02:00
Bjarke Berg 61cb7ac769 Moved ICompletable into abstractions for Project UniCore 🦄 2019-05-20 16:34:10 +02:00
4374 changed files with 91697 additions and 81841 deletions
+44 -43
View File
@@ -1,43 +1,44 @@
# editorconfig.org
# top-most EditorConfig file
root = true
# Default settings:
# A newline ending every file
# Use 4 spaces as indentation
[*]
insert_final_newline = true
end_of_line = crlf
indent_style = space
indent_size = 4
# Trim trailing whitespace, limited support.
# https://github.com/editorconfig/editorconfig/wiki/Property-research:-Trim-trailing-spaces
trim_trailing_whitespace = true
[*.{cs,vb}]
dotnet_style_predefined_type_for_locals_parameters_members = true:error
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
dotnet_naming_rule.private_members_with_underscore.severity = suggestion
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
dotnet_naming_style.prefix_underscore.capitalization = camel_case
dotnet_naming_style.prefix_underscore.required_prefix = _
# https://github.com/MicrosoftDocs/visualstudio-docs/blob/master/docs/ide/editorconfig-code-style-settings-reference.md
[*.cs]
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_prefer_braces = false : none
[*.js]
trim_trailing_whitespace = true
[*.less]
trim_trailing_whitespace = false
# editorconfig.org
# top-most EditorConfig file
root = true
# Default settings:
# A newline ending every file
# Use 4 spaces as indentation
[*]
insert_final_newline = true
end_of_line = crlf
indent_style = space
indent_size = 4
# Trim trailing whitespace, limited support.
# https://github.com/editorconfig/editorconfig/wiki/Property-research:-Trim-trailing-spaces
trim_trailing_whitespace = true
[*.{cs,vb}]
dotnet_style_predefined_type_for_locals_parameters_members = true:error
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
dotnet_naming_rule.private_members_with_underscore.severity = suggestion
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
# dotnet_naming_symbols.private_fields.required_modifiers = abstract,async,readonly,static # all except const
dotnet_naming_style.prefix_underscore.capitalization = camel_case
dotnet_naming_style.prefix_underscore.required_prefix = _
# https://github.com/MicrosoftDocs/visualstudio-docs/blob/master/docs/ide/editorconfig-code-style-settings-reference.md
[*.cs]
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_prefer_braces = false : none
[*.js]
trim_trailing_whitespace = true
[*.less]
trim_trailing_whitespace = false
+1 -1
View File
@@ -123,7 +123,7 @@ You can get in touch with [the core contributors team](#the-core-contributors-te
In order to build the Umbraco source code locally, first make sure you have the following installed.
* [Visual Studio 2017 v15.9.7+](https://visualstudio.microsoft.com/vs/)
* [Visual Studio 2019 v16.3+ (with .NET Core 3.0)](https://visualstudio.microsoft.com/vs/)
* [Node.js v10+](https://nodejs.org/en/download/)
* npm v6.4.1+ (installed with Node.js)
* [Git command line](https://git-scm.com/download/)
+65
View File
@@ -0,0 +1,65 @@
---
name: 🌟 .Net Core Bug Report
about: For bugs specifically for the upcoming .NET Core release of Umbraco, don't use this if you're working with Umbraco version 7 or 8
labels: project/net-core
---
️ If this bug **also** appears on the current version 8 of Umbraco then please [report it as a regular bug](https://github.com/umbraco/Umbraco-CMS/issues/new?template=1_Bug.md), fixes in version 8 will be merged to the .NET Core version.
A brief description of the issue goes here.
<!--
Please fill out the rest of the details in the issue template below.
The more details you can give us, the easier it will be for us
to determine the cause of a problem.
-->
Reproduction
------------
If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:
### Bug summary
<!--
* Write a short summary of the bug
* Try to pinpoint it as much as possible
* Try to state the _actual problem_, and not just what you _think_ the
solution might be.
-->
### Specifics
<!--
* Mention the URL where this bug occurs, if applicable
* What version of Umbraco are you using (down to the very last digit!)
* What browser and version you are using
* Please mention if you've checked it in other browsers as well
* Please include *full error messages* and *screenshots* if possible
-->
### Steps to reproduce
<!--
* Clearly mention the steps to reproduce the bug
-->
### Expected result
<!--
* What did you _expect_ that would happen on your Umbraco site?
* Describe the intended/desired outcome after you did the steps mentioned.
-->
### Actual result
<!--
* What is the actual result of the above steps?
* Describe the behaviour of the bug
* Please, please include **error messages** and screenshots. They might mean
nothing to you, but they are _very_ helpful to us.
-->
-1
View File
@@ -37,4 +37,3 @@ Besides "Our", we all support each other also via Twitter: [Umbraco HQ](https://
## Contributing
Umbraco is contribution-focused and community-driven. If you want to contribute back to the Umbraco source code, please check out our [guide to contributing](CONTRIBUTING.md).
+20 -5
View File
@@ -163,14 +163,29 @@ build/hooks/
build/temp/
# eof
/src/Umbraco.Web.UI.Client/TESTS-*.xml
/src/ApiDocs/api/*
# Acceptance tests
cypress.env.json
/src/Umbraco.Tests.AcceptanceTest/cypress/support/chainable.ts
/src/Umbraco.Tests.AcceptanceTest/package-lock.json
/src/Umbraco.Tests.AcceptanceTest/cypress/videos/
/src/Umbraco.Tests.AcceptanceTest/cypress/screenshots/
# eof
/src/Umbraco.Web.UI.Client/TESTS-*.xml
/src/ApiDocs/api/*
/src/Umbraco.Web.UI.Client/package-lock.json
/src/Umbraco.Web.UI.NetCore/wwwroot/Media/*
/src/Umbraco.Web.UI.NetCore/wwwroot/is-cache/*
/src/Umbraco.Tests.Integration/App_Data/*
/src/Umbraco.Tests.Integration/TEMP/*
/src/Umbraco.Web.UI.NetCore/wwwroot/Umbraco/assets/*
/src/Umbraco.Web.UI.NetCore/wwwroot/Umbraco/js/*
/src/Umbraco.Web.UI.NetCore/wwwroot/Umbraco/lib/*
/src/Umbraco.Web.UI.NetCore/wwwroot/Umbraco/views/*
/src/Umbraco.Web.UI.NetCore/wwwroot/App_Data/TEMP/*
/src/Umbraco.Web.UI.NetCore/App_Data/Logs/*
/src/Umbraco.Web.UI.NetCore/App_Data/TEMP/TypesCache/*
/src/Umbraco.Web.UI.NetCore/App_Data/TEMP/*
/src/Umbraco.Web.UI.NetCore/App_Data/Smidge/Cache/*
/src/Umbraco.Web.UI.NetCore/umbraco/logs
+1
View File
@@ -7,5 +7,6 @@
-->
<packageSources>
<add key="UmbracoCoreMyGet" value="https://www.myget.org/F/umbracocore/api/v3/index.json" />
<add key="ExamineAzurePipelines" value="https://shazwazza.pkgs.visualstudio.com/Examine/_packaging/Examine-Beta/nuget/v3/index.json" />
</packageSources>
</configuration>
+60 -26
View File
@@ -1,61 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="4.1.0">
<id>UmbracoCms.Core</id>
<version>8.0.0</version>
<id>Umbraco.Cms.Core</id>
<version>9.0.0</version>
<title>Umbraco Cms Core Binaries</title>
<authors>Umbraco HQ</authors>
<owners>Umbraco HQ</owners>
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
<projectUrl>http://umbraco.com/</projectUrl>
<license type="expression">MIT</license>
<projectUrl>https://umbraco.com/</projectUrl>
<iconUrl>https://umbraco.com/dist/nuget/logo-small.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Contains the core assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms package to setup Umbraco in Visual Studio as an ASP.NET project.</description>
<description>Contains the core assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms package to setup Umbraco in Visual Studio as an ASP.NET Core project.</description>
<summary>Contains the core assemblies needed to run Umbraco Cms</summary>
<language>en-US</language>
<tags>umbraco</tags>
<repository type="git" url="https://github.com/umbraco/umbraco-cms" />
<dependencies>
<group targetFramework="net472">
<group targetFramework="netstandard2.0">
<!--
note: dependencies are specified as [x.y.z,x.999999) eg [2.1.0,2.999999) and NOT [2.1.0,3.0.0) because
the latter would pick anything below 3.0.0 and that includes prereleases such as 3.0.0-alpha, and we do
not want this to happen as the alpha of the next major is, really, the next major already.
-->
<dependency id="LightInject" version="[5.4.0,5.999999)" />
<dependency id="Microsoft.Extensions.Configuration" version="[3.1.8,3.999999)" />
<dependency id="Microsoft.Extensions.Configuration.Binder" version="[3.1.8,3.999999)" />
<dependency id="Microsoft.Extensions.Configuration.Json" version="[3.1.8,3.999999)" />
<dependency id="System.Configuration.ConfigurationManager" version="[4.7.0,4.999999)" />
<dependency id="System.ComponentModel.Annotations" version="[4.7.0,4.999999)" />
<dependency id="System.Reflection.Emit.Lightweight" version="[4.7.0,4.999999)" />
<dependency id="System.Runtime.Caching" version="[4.7.0,4.999999)" />
<dependency id="HtmlAgilityPack" version="[1.11.24,1.999999)" />
<dependency id="LightInject" version="[6.3.4,6.999999)" />
<dependency id="LightInject.Annotation" version="[1.1.0,1.999999)" />
<dependency id="LightInject.Web" version="[2.0.0,2.999999)" />
<dependency id="Microsoft.AspNet.Identity.Core" version="[2.2.2,2.999999)" />
<dependency id="Microsoft.AspNet.WebApi.Client" version="[5.2.7,5.999999)" />
<dependency id="Microsoft.Owin" version="[4.0.1,4.999999)" />
<dependency id="MiniProfiler" version="[4.0.138,4.999999)" />
<dependency id="Newtonsoft.Json" version="[12.0.1,12.999999)" />
<dependency id="Semver" version="[2.0.4,2.999999)" />
<dependency id="Serilog" version="[2.8.0,2.999999)" />
<dependency id="LightInject.Microsoft.DependencyInjection" version="[3.3.1,3.999999)" />
<dependency id="LightInject.Microsoft.Hosting" version="[1.2.1,1.999999)" />
<dependency id="MailKit" version="[2.9.0,2.999999)" />
<dependency id="Markdown" version="[2.2.1,2.999999)" />
<dependency id="Microsoft.CSharp" version="[4.7.0,4.999999)" />
<dependency id="Microsoft.Extensions.DependencyInjection" version="[3.1.8,3.999999)" />
<dependency id="Microsoft.Extensions.Configuration.Abstractions" version="[3.1.8,3.999999)" />
<dependency id="Microsoft.Extensions.Identity.Stores" version="[3.1.8,3.999999)" />
<dependency id="MiniProfiler.Shared" version="[4.2.1,4.999999)" />
<dependency id="Newtonsoft.Json" version="[12.0.3,12.999999)" />
<dependency id="NPoco" version="[4.0.2,4.999999)" />
<dependency id="Serilog" version="[2.10.0,2.999999)" />
<dependency id="Serilog.Enrichers.Process" version="[2.0.1,2.999999)" />
<dependency id="Serilog.Enrichers.Thread" version="[3.0.0,3.999999)" />
<dependency id="Serilog.Filters.Expressions" version="[2.0.0,2.999999)" />
<dependency id="Serilog.Formatting.Compact" version="[1.0.0,1.999999)" />
<dependency id="Serilog.Enrichers.Thread" version="[3.1.0,3.999999)" />
<dependency id="Serilog.Extensions.Hosting" version="[3.1.0,3.999999)" />
<dependency id="Serilog.Filters.Expressions" version="[2.1.0,2.999999)" />
<dependency id="Serilog.Formatting.Compact" version="[1.1.0,1.999999)" />
<dependency id="Serilog.Formatting.Compact.Reader" version="[1.0.3,1.999999)" />
<dependency id="Serilog.Settings.AppSettings" version="[2.2.2,2.999999)" />
<dependency id="Serilog.Sinks.File" version="[4.0.0,4.999999)" />
<dependency id="Serilog.Sinks.Map" version="[1.0.0,1.999999)" />
<dependency id="Serilog.Sinks.Async" version="[1.3.0,1.999999)" />
<dependency id="Umbraco.SqlServerCE" version="[4.0.0.1,4.999999)" />
<dependency id="NPoco" version="[3.9.4,3.999999)" />
<dependency id="Serilog.Sinks.Async" version="[1.4.0,1.999999)" />
<dependency id="Serilog.Sinks.File" version="[4.1.0,4.999999)" />
<dependency id="Serilog.Sinks.Map" version="[1.0.1,1.999999)" />
<dependency id="System.Data.SqlClient" version="[4.8.2,4.999999)" />
<dependency id="System.Drawing.Common" version="[4.7.0,4.999999)" />
<dependency id="System.IO.FileSystem.AccessControl" version="[4.7.0,4.999999)" />
<dependency id="System.Threading.Tasks.Dataflow" version="[4.11.1,4.999999)" />
<dependency id="Examine.Core" version="[2.0.0-alpha.20200128.15,2.999999)" />
<dependency id="CSharpTest.Net.Collections-NetStd2" version="[14.906.1403.1084,14.999999)" />
<dependency id="SecurityCodeScan" version="[3.4.0,3.999999)" />
</group>
</dependencies>
</metadata>
<files>
<!-- Umbraco.Examine.Lucene HACK remove this when Examine lucene is a real netstandard dependency -->
<file src="$BuildTmp$\bin\Examine.Lucene.dll" target="lib\netstandard2.0\Examine.Lucene.dll" />
<file src="$BuildTmp$\bin\Lucene.Net.dll" target="lib\netstandard2.0\Lucene.Net.dll" />
<!-- libs -->
<file src="$BuildTmp$\WebApp\bin\Umbraco.Core.dll" target="lib\net472\Umbraco.Core.dll" />
<file src="$BuildTmp$\bin\Umbraco.Core.dll" target="lib\netstandard2.0\Umbraco.Core.dll" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.dll" target="lib\net472\Umbraco.Examine.Lucene.dll" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.dll" target="lib\netstandard2.0\Umbraco.Examine.Lucene.dll" />
<file src="$BuildTmp$\bin\Umbraco.Infrastructure.dll" target="lib\netstandard2.0\Umbraco.Infrastructure.dll" />
<file src="$BuildTmp$\bin\Umbraco.PublishedCache.NuCache.dll" target="lib\netstandard2.0\Umbraco.PublishedCache.NuCache.dll" />
<!-- docs -->
<file src="$BuildTmp$\WebApp\bin\Umbraco.Core.xml" target="lib\net472\Umbraco.Core.xml" />
<file src="$BuildTmp$\bin\Umbraco.Core.xml" target="lib\netstandard2.0\Umbraco.Core.xml" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.xml" target="lib\net472\Umbraco.Examine.Lucene.xml" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.xml" target="lib\netstandard2.0\Umbraco.Examine.Lucene.xml" />
<file src="$BuildTmp$\bin\Umbraco.Infrastructure.xml" target="lib\netstandard2.0\Umbraco.Infrastructure.xml" />
<file src="$BuildTmp$\bin\Umbraco.PublishedCache.NuCache.xml" target="lib\netstandard2.0\Umbraco.PublishedCache.NuCache.xml" />
<!-- symbols -->
<file src="$BuildTmp$\bin\Umbraco.Core.pdb" target="lib\net472\Umbraco.Core.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Core.pdb" target="lib\netstandard2.0\Umbraco.Core.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.pdb" target="lib\net472\Umbraco.Examine.Lucene.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.pdb" target="lib\netstandard2.0\Umbraco.Examine.Lucene.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Infrastructure.pdb" target="lib\netstandard2.0\Umbraco.Infrastructure.pdb" />
<file src="$BuildTmp$\bin\Umbraco.PublishedCache.NuCache.pdb" target="lib\netstandard2.0\Umbraco.PublishedCache.NuCache.pdb" />
</files>
</package>
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="4.1.0">
<id>Umbraco.Cms.SqlCe</id>
<version>9.0.0</version>
<title>Umbraco Cms Sql Ce Add-on</title>
<authors>Umbraco HQ</authors>
<owners>Umbraco HQ</owners>
<license type="expression">MIT</license>
<projectUrl>https://umbraco.com/</projectUrl>
<iconUrl>https://umbraco.com/dist/nuget/logo-small.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Contains the SQL CE assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms package to setup Umbraco in Visual Studio as an ASP.NET Core project.</description>
<summary>Contains the SQL CE assemblies needed to run Umbraco Cms</summary>
<language>en-US</language>
<tags>umbraco</tags>
<repository type="git" url="https://github.com/umbraco/umbraco-cms" />
<dependencies>
<group targetFramework="netstandard2.0">
<!--
note: dependencies are specified as [x.y.z,x.999999) eg [2.1.0,2.999999) and NOT [2.1.0,3.0.0) because
the latter would pick anything below 3.0.0 and that includes prereleases such as 3.0.0-alpha, and we do
not want this to happen as the alpha of the next major is, really, the next major already.
-->
<dependency id="Umbraco.Cms.Core" version="[$version$]" />
<dependency id="Umbraco.SqlServerCE" version="[4.0.0.1,4.999999)" /> <!-- Hack it is only available in framework, but we need it on netstandard -->
</group>
</dependencies>
</metadata>
<files>
<!-- libs -->
<file src="$BuildTmp$\SqlCe\Umbraco.Persistance.SqlCe.dll" target="lib\netstandard2.0\Umbraco.Persistance.SqlCe.dll" />
<file src="$BuildTmp$\SqlCe\System.Data.SqlServerCe.dll" target="lib\netstandard2.0\System.Data.SqlServerCe.dll" /> <!-- Hack because the file from the package is only added to net472 projects -->
<!-- docs -->
<file src="$BuildTmp$\SqlCe\Umbraco.Persistance.SqlCe.xml" target="lib\netstandard2.0\Umbraco.Persistance.SqlCe.xml" />
<!-- symbols -->
<file src="$BuildTmp$\SqlCe\Umbraco.Persistance.SqlCe.pdb" target="lib\netstandard2.0\Umbraco.Persistance.SqlCe.pdb" />
</files>
</package>
+29 -37
View File
@@ -1,68 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="4.1.0">
<id>UmbracoCms.Web</id>
<version>8.0.0</version>
<id>Umbraco.Cms.Web</id>
<version>9.0.0</version>
<title>Umbraco Cms Core Binaries</title>
<authors>Umbraco HQ</authors>
<owners>Umbraco HQ</owners>
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
<projectUrl>http://umbraco.com/</projectUrl>
<license type="expression">MIT</license>
<projectUrl>https://umbraco.com/</projectUrl>
<iconUrl>https://umbraco.com/dist/nuget/logo-small.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Contains the web assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms package to setup Umbraco in Visual Studio as an ASP.NET project.</description>
<description>Contains the web assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms package to setup Umbraco in Visual Studio as an ASP.NET Core project.</description>
<summary>Contains the core assemblies needed to run Umbraco Cms</summary>
<language>en-US</language>
<tags>umbraco</tags>
<repository type="git" url="https://github.com/umbraco/umbraco-cms" />
<dependencies>
<group targetFramework="net472">
<group targetFramework="netcoreapp3.1">
<!--
note: dependencies are specified as [x.y.z,x.999999) eg [2.1.0,2.999999) and NOT [2.1.0,3.0.0) because
the latter would pick anything below 3.0.0 and that includes prereleases such as 3.0.0-alpha, and we do
not want this to happen as the alpha of the next major is, really, the next major already.
-->
<dependency id="UmbracoCms.Core" version="[$version$]" />
<dependency id="ClientDependency" version="[1.9.9,1.999999)" />
<dependency id="ClientDependency-Mvc5" version="[1.9.3,1.999999)" />
<dependency id="CSharpTest.Net.Collections" version="[14.906.1403.1082,14.999999)" />
<dependency id="Examine" version="[1.0.2,1.999999)" />
<dependency id="HtmlAgilityPack" version="[1.8.14,1.999999)" />
<dependency id="ImageProcessor" version="[2.7.0.100,2.999999)" />
<dependency id="LightInject.Mvc" version="[2.0.0,2.999999)" />
<dependency id="LightInject.WebApi" version="[2.0.0,2.999999)" />
<dependency id="Markdown" version="[2.2.1,2.999999)" />
<dependency id="Microsoft.AspNet.Identity.Owin" version="[2.2.2,2.999999)" />
<dependency id="Microsoft.AspNet.Mvc" version="[5.2.7,5.999999)" />
<dependency id="Microsoft.AspNet.SignalR.Core" version="[2.4.0,2.999999)" />
<dependency id="Microsoft.AspNet.WebApi" version="[5.2.7,5.999999)" />
<dependency id="Microsoft.Owin.Host.SystemWeb" version="[4.0.1,4.999999)" />
<dependency id="Microsoft.Owin.Security.Cookies" version="[4.0.1,4.999999)" />
<dependency id="Microsoft.Owin.Security.OAuth" version="[4.0.1,4.999999)" />
<dependency id="System.Threading.Tasks.Dataflow" version="[4.9.0,4.999999)" />
<dependency id="Umbraco.Cms.Core" version="[$version$]" />
<dependency id="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" version="[3.1.8,3.999999)" />
<dependency id="Serilog.AspNetCore" version="[3.4.0,3.999999)" />
<dependency id="Microsoft.AspNetCore.Mvc.NewtonsoftJson" version="[3.1.8,3.999999)" />
<dependency id="Microsoft.CodeAnalysis.CSharp" version="[3.7.0,3.999999)" />
<dependency id="MiniProfiler.AspNetCore.Mvc" version="[4.2.1,4.999999)" />
<dependency id="NETStandard.Library" version="[2.0.3,2.999999)" />
<dependency id="Smidge" version="[3.1.1,3.999999)" />
<dependency id="Smidge.Nuglify" version="[2.0.0,2.999999)" />
<dependency id="SixLabors.ImageSharp.Web" version="[1.0.0,1.999999)" />
<dependency id="HtmlSanitizer" version="[5.0.343,5.999999)" />
</group>
</dependencies>
</metadata>
<files>
<!-- libs -->
<file src="$BuildTmp$\WebApp\bin\Umbraco.Web.dll" target="lib\net472\Umbraco.Web.dll" />
<file src="$BuildTmp$\WebApp\bin\Umbraco.Web.UI.dll" target="lib\net472\Umbraco.Web.UI.dll" />
<file src="$BuildTmp$\WebApp\bin\Umbraco.Examine.dll" target="lib\net472\Umbraco.Examine.dll" />
<file src="$BuildTmp$\WebApp\bin\Umbraco.ModelsBuilder.Embedded.dll" target="lib\net472\Umbraco.ModelsBuilder.Embedded.dll" />
<file src="$BuildTmp$\bin\Umbraco.Web.BackOffice.dll" target="lib\netcoreapp3.1\Umbraco.Web.BackOffice.dll" />
<file src="$BuildTmp$\bin\Umbraco.Web.Common.dll" target="lib\netcoreapp3.1\Umbraco.Web.Common.dll" />
<file src="$BuildTmp$\bin\Umbraco.Web.Website.dll" target="lib\netcoreapp3.1\Umbraco.Web.Website.dll" />
<file src="$BuildTmp$\bin\Umbraco.ModelsBuilder.Embedded.dll" target="lib\netcoreapp3.1\Umbraco.ModelsBuilder.Embedded.dll" />
<!-- docs -->
<file src="$BuildTmp$\WebApp\bin\Umbraco.Web.xml" target="lib\net472\Umbraco.Web.xml" />
<file src="$BuildTmp$\WebApp\bin\Umbraco.Web.UI.xml" target="lib\net472\Umbraco.Web.UI.xml" />
<file src="$BuildTmp$\WebApp\bin\Umbraco.Examine.xml" target="lib\net472\Umbraco.Examine.xml" />
<file src="$BuildTmp$\WebApp\bin\Umbraco.ModelsBuilder.Embedded.xml" target="lib\net472\Umbraco.ModelsBuilder.Embedded.xml" />
<file src="$BuildTmp$\bin\Umbraco.Web.BackOffice.xml" target="lib\netcoreapp3.1\Umbraco.Web.BackOffice.xml" />
<file src="$BuildTmp$\bin\Umbraco.Web.Common.xml" target="lib\netcoreapp3.1\Umbraco.Web.Common.xml" />
<file src="$BuildTmp$\bin\Umbraco.Web.Website.xml" target="lib\netcoreapp3.1\Umbraco.Web.Website.xml" />
<file src="$BuildTmp$\bin\Umbraco.ModelsBuilder.Embedded.xml" target="lib\netcoreapp3.1\Umbraco.ModelsBuilder.Embedded.xml" />
<!-- symbols -->
<file src="$BuildTmp$\bin\Umbraco.Web.pdb" target="lib\net472\Umbraco.Web.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Examine.pdb" target="lib\net472\Umbraco.Examine.pdb" />
<file src="$BuildTmp$\bin\Umbraco.ModelsBuilder.Embedded.pdb" target="lib\net472\Umbraco.ModelsBuilder.Embedded.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Web.BackOffice.pdb" target="lib\netcoreapp3.1\Umbraco.Web.BackOffice.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Web.Common.pdb" target="lib\netcoreapp3.1\Umbraco.Web.Common.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Web.Website.pdb" target="lib\netcoreapp3.1\Umbraco.Web.Website.pdb" />
<file src="$BuildTmp$\bin\Umbraco.ModelsBuilder.Embedded.pdb" target="lib\netcoreapp3.1\Umbraco.ModelsBuilder.Embedded.pdb" />
</files>
</package>
+22 -48
View File
@@ -1,68 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="4.1.0">
<id>UmbracoCms</id>
<version>8.0.0</version>
<id>Umbraco.Cms</id>
<version>9.0.0</version>
<title>Umbraco Cms</title>
<authors>Umbraco HQ</authors>
<owners>Umbraco HQ</owners>
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
<projectUrl>http://umbraco.com/</projectUrl>
<license type="expression">MIT</license>
<projectUrl>https://umbraco.com/</projectUrl>
<iconUrl>https://umbraco.com/dist/nuget/logo-small.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Installs Umbraco Cms in your Visual Studio ASP.NET project</description>
<summary>Installs Umbraco Cms in your Visual Studio ASP.NET project</summary>
<description>Installs Umbraco Cms in your Visual Studio ASP.NET Core project</description>
<summary>Installs Umbraco Cms in your Visual Studio ASP.NET Core project</summary>
<language>en-US</language>
<tags>umbraco</tags>
<repository type="git" url="https://github.com/umbraco/umbraco-cms" />
<dependencies>
<group targetFramework="net472">
<dependency id="UmbracoCms.Web" version="[$version$]" />
<!--
note: dependencies are specified as [x.y.z,x.999999) eg [2.1.0,2.999999) and NOT [2.1.0,3.0.0) because
the latter would pick anything below 3.0.0 and that includes prereleases such as 3.0.0-alpha, and we do
not want this to happen as the alpha of the next major is, really, the next major already.
-->
<dependency id="Microsoft.AspNet.SignalR.Core" version="[2.4.0, 2.999999)" />
<dependency id="ImageProcessor.Web" version="[4.10.0.100,4.999999)" />
<dependency id="ImageProcessor.Web.Config" version="[2.5.0.100,2.999999)" />
<dependency id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="[2.0.1,2.999999)" />
<group targetFramework="netcoreapp3.1">
<dependency id="Umbraco.Cms.Web" version="[$version$]" />
</group>
</dependencies>
<!--
We can't use content files, as the files need to be copied into the solution, links/shortcuts to the files
are not good enough
-->
<contentFiles />
</metadata>
<files>
<!-- files -->
<file src="$BuildTmp$\Configs\**" target="Content\Config" exclude="$BuildTmp$\Configs\Web.config.transform" />
<file src="$BuildTmp$\WebApp\Views\**" target="Content\Views" exclude="$BuildTmp$\WebApp\Views\Web.config" />
<file src="$BuildTmp$\WebApp\Global.asax" target="Content\Global.asax" />
<file src="$BuildTmp$\WebApp\config\BackOfficeTours\**" target="Content\Config\BackOfficeTours" />
<file src="$BuildTmp$\WebApp\Media\Web.config" target="Content\Media\Web.config" />
<!-- Content -->
<file src="$BuildTmp$\WebApp\wwwroot\umbraco\**\*.*" target="content\wwwroot\umbraco" />
<file src="$BuildTmp$\WebApp\umbraco\**\*.*" target="content\umbraco" />
<file src="$BuildTmp$\WebApp\config\**\*.*" target="content\config" />
<!-- these files are copied by install.ps1 -->
<file src="$BuildTmp$\WebApp\Web.config" target="UmbracoFiles\Web.config" />
<file src="$BuildTmp$\WebApp\umbraco\**" target="UmbracoFiles\umbraco" />
<file src="$BuildTmp$\WebApp\config\splashes\**" target="UmbracoFiles\Config\splashes" />
<!-- Readme -->
<file src="tools\Readme.txt" target="Readme.txt" />
<file src="tools\ReadmeUpgrade.txt" target="ReadmeUpgrade.txt" />
<!-- tools -->
<!-- beware! install.ps1 not supported by PackageReference -->
<file src="tools\install.ps1" target="tools\install.ps1" />
<file src="tools\Readme.txt" target="tools\Readme.txt" />
<file src="tools\ReadmeUpgrade.txt" target="tools\ReadmeUpgrade.txt" />
<!-- config transforms -->
<!-- beware! config transforms not supported by PackageReference -->
<file src="tools\Web.config.install.xdt" target="Content\Web.config.install.xdt" />
<file src="tools\serilog.config.install.xdt" target="Content\config\serilog.config.install.xdt" />
<file src="tools\ClientDependency.config.install.xdt" target="Content\config\ClientDependency.config.install.xdt" />
<file src="tools\umbracoSettings.config.install.xdt" target="Content\config\umbracoSettings.config.install.xdt" />
<file src="tools\Views.Web.config.install.xdt" target="Views\Web.config.install.xdt" /> <!-- FIXME: Content\ !! and then... transform?! -->
<!-- UmbracoCms props and targets -->
<file src="build\**" target="build" />
<!-- UmbracoCms props and targets used to copy the content into the solution -->
<file src="build\**" target="build\" />
</files>
</package>
+7
View File
@@ -0,0 +1,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);wwwroot\is-cache\**;wwwroot\ms-cache\**</DefaultItemExcludes>
</PropertyGroup>
</Project>
+20
View File
@@ -0,0 +1,20 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ContentFilesPath>$(MSBuildThisFileDirectory)..\content\**\*.*</ContentFilesPath>
</PropertyGroup>
<Target Name="CopyUmbracoAssets" BeforeTargets="Build">
<ItemGroup>
<ContentFiles Include="$(ContentFilesPath)" />
</ItemGroup>
<Message Text="Copying content files: $(ContentFilesPath) - #@(ContentFiles->Count()) files" Importance="high" />
<Copy
SourceFiles="@(ContentFiles)"
DestinationFiles="@(ContentFiles->'$(MSBuildProjectDirectory)\%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="true" />
</Target>
</Project>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<CopyAllFilesToSingleFolderForPackageDependsOn>
AddUmbracoFilesToOutput;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForPackageDependsOn>
<CopyAllFilesToSingleFolderForMsdeployDependsOn>
AddUmbracoFilesToOutput;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForMsdeployDependsOn>
</PropertyGroup>
</Project>
-58
View File
@@ -1,58 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="CopyUmbracoFilesToWebRootForDeploy" AfterTargets="CopyAllFilesToSingleFolderForMsdeploy">
<PropertyGroup>
<UmbracoFilesFolder>$(MSBuildThisFileDirectory)..\UmbracoFiles\</UmbracoFilesFolder>
</PropertyGroup>
<ItemGroup>
<UmbracoFiles Include="$(UmbracoFilesFolder)**\*" />
</ItemGroup>
<Copy SourceFiles="%(UmbracoFiles.FullPath)" DestinationFiles="$(_PackageTempDir)\%(RecursiveDir)%(Filename)%(Extension)" Condition="!Exists('%(RecursiveDir)%(Filename)%(Extension)')" />
</Target>
<Target Name="CopyUmbracoFilesToWebRoot" BeforeTargets="AfterBuild">
<!-- This copies the files listed in `AddUmbracoFilesToOutput` to the webroot during NuGet install and should -->
<!-- not be altered to support automated builds, use `CopyUmbracoFilesToWebRootForDeploy` for that instead -->
<PropertyGroup>
<UmbracoFilesFolder>$(MSBuildThisFileDirectory)..\UmbracoFiles\</UmbracoFilesFolder>
</PropertyGroup>
<ItemGroup>
<UmbracoFiles Include="$(UmbracoFilesFolder)**\*" />
</ItemGroup>
<Copy SourceFiles="%(UmbracoFiles.FullPath)" DestinationFiles="%(RecursiveDir)%(Filename)%(Extension)" Condition="!Exists('%(RecursiveDir)%(Filename)%(Extension)')" />
</Target>
<Target Name="AddUmbracoFilesToOutput">
<!-- With help from: http://blog.samstephens.co.nz/2010-10-18/msbuild-including-extra-files-multiple-builds/ -->
<ItemGroup>
<CustomFilesToInclude Include=".\App_Browsers\**\*">
<Dir>App_Browsers</Dir>
</CustomFilesToInclude>
<CustomFilesToInclude Include=".\App_Code\**\*">
<Dir>App_Code</Dir>
</CustomFilesToInclude>
<CustomFilesToInclude Include=".\App_Plugins\**\*">
<Dir>App_Plugins</Dir>
</CustomFilesToInclude>
<CustomFilesToInclude Include=".\bin\amd64\**\*">
<Dir>bin\amd64</Dir>
</CustomFilesToInclude>
<CustomFilesToInclude Include=".\bin\x86\**\*">
<Dir>bin\x86</Dir>
</CustomFilesToInclude>
<CustomFilesToInclude Include=".\Config\Splashes\**\*">
<Dir>Config\Splashes</Dir>
</CustomFilesToInclude>
<CustomFilesToInclude Include=".\data\**\*">
<Dir>data</Dir>
</CustomFilesToInclude>
<CustomFilesToInclude Include=".\umbraco\**\*">
<Dir>umbraco</Dir>
</CustomFilesToInclude>
<CustomFilesToInclude Include=".\Global.asax">
<Dir>.</Dir>
</CustomFilesToInclude>
<FilesForPackagingFromProject Include="@(CustomFilesToInclude)">
<DestinationRelativePath>%(CustomFilesToInclude.Dir)\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
</FilesForPackagingFromProject>
</ItemGroup>
</Target>
</Project>
+132 -134
View File
@@ -1,139 +1,136 @@
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<configSections xdt:Transform="InsertIfMissing" />
<configSections>
<sectionGroup name="applicationSettings" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<sectionGroup name="system.web.webPages.razor" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<sectionGroup name="umbracoConfiguration" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing">
<section name="settings" type="Umbraco.Core.Configuration.UmbracoSettings.UmbracoSettingsSection, Umbraco.Core" requirePermission="false" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
<section name="dashBoard" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<section name="HealthChecks" type="Umbraco.Core.Configuration.HealthChecks.HealthChecksSection, Umbraco.Core" requirePermission="false" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</sectionGroup>
</configSections>
<configSections xdt:Transform="InsertIfMissing" />
<configSections>
<sectionGroup name="applicationSettings" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<sectionGroup name="system.web.webPages.razor" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<sectionGroup name="umbracoConfiguration" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
<sectionGroup name="umbracoConfiguration" xdt:Locator="Match(name)">
<section name="settings" type="Umbraco.Core.Configuration.UmbracoSettings.UmbracoSettingsSection, Umbraco.Core" requirePermission="false" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
<section name="dashBoard" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<section name="HealthChecks" type="Umbraco.Core.Configuration.HealthChecks.HealthChecksSection, Umbraco.Core" requirePermission="false" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</sectionGroup>
</configSections>
<appSettings xdt:Transform="InsertIfMissing" />
<appSettings>
<add key="owin:appStartup" value="UmbracoDefaultOwinStartup" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
<add key="Umbraco.ModelsBuilder.Enable" value="false" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
<add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
</appSettings>
<appSettings xdt:Transform="InsertIfMissing" />
<appSettings>
<add key="owin:appStartup" value="UmbracoDefaultOwinStartup" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
<add key="Umbraco.ModelsBuilder.Enable" value="false" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
<add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
</appSettings>
<umbracoConfiguration xdt:Transform="InsertIfMissing">
<settings configSource="config\umbracoSettings.config" xdt:Locator="Match(configSource)" xdt:Transform="InsertIfMissing" />
<dashBoard configSource="config\Dashboard.config" xdt:Locator="Match(configSource)" xdt:Transform="Remove" />
<HealthChecks configSource="config\HealthChecks.config" xdt:Locator="Match(configSource)" xdt:Transform="InsertIfMissing" />
</umbracoConfiguration>
<umbracoConfiguration xdt:Transform="InsertIfMissing" />
<umbracoConfiguration>
<settings configSource="config\umbracoSettings.config" xdt:Locator="Match(configSource)" xdt:Transform="InsertIfMissing" />
<dashBoard configSource="config\Dashboard.config" xdt:Locator="Match(configSource)" xdt:Transform="Remove" />
<HealthChecks configSource="config\HealthChecks.config" xdt:Locator="Match(configSource)" xdt:Transform="InsertIfMissing" />
</umbracoConfiguration>
<system.data xdt:Transform="InsertIfMissing">
<DbProviderFactories xdt:Transform="InsertIfMissing">
<remove invariant="System.Data.SqlServerCe.4.0" xdt:Locator="Match(invariant)" xdt:Transform="InsertIfMissing" />
<add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe" xdt:Locator="Match(invariant)" xdt:Transform="SetAttributes(invariant,description,type)" />
</DbProviderFactories>
</system.data>
<clientDependency xdt:Transform="RemoveAttributes(version)" />
<system.data xdt:Transform="InsertIfMissing" />
<system.data>
<DbProviderFactories xdt:Transform="InsertIfMissing" />
<DbProviderFactories>
<remove invariant="System.Data.SqlServerCe.4.0" xdt:Locator="Match(invariant)" xdt:Transform="InsertIfMissing" />
<add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe" xdt:Locator="Match(invariant)" xdt:Transform="SetAttributes(invariant,description,type)" />
</DbProviderFactories>
</system.data>
<system.web xdt:Transform="InsertIfMissing" />
<system.web>
<siteMap xdt:Transform="Remove" />
<httpRuntime xdt:Transform="InsertIfMissing" />
<httpRuntime maxRequestLength="51200" fcnMode="Single" xdt:Transform="SetAttributes(fcnMode,maxRequestLength)" />
<httpRuntime targetFramework="4.7.2" xdt:Locator="Condition(count(@targetFramework) != 1)" xdt:Transform="SetAttributes(targetFramework)" />
<clientDependency xdt:Transform="RemoveAttributes(version)" />
<membership defaultProvider="DefaultMembershipProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove" />
<roleManager defaultProvider="DefaultRoleProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove"/>
<profile defaultProvider="DefaultProfileProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove"/>>
<sessionState customProvider="DefaultSessionProvider" xdt:Locator="Match(customProvider)" xdt:Transform="Remove"/>
<compilation xdt:Transform="InsertIfMissing" />
<system.web xdt:Transform="InsertIfMissing" />
<system.web>
<siteMap xdt:Transform="Remove" />
<httpRuntime xdt:Transform="InsertIfMissing" />
<httpRuntime maxRequestLength="51200" fcnMode="Single" xdt:Transform="SetAttributes(fcnMode,maxRequestLength)" />
<httpRuntime targetFramework="4.7.2" xdt:Locator="Condition(count(@targetFramework) != 1)" xdt:Transform="SetAttributes(targetFramework)" />
<membership defaultProvider="DefaultMembershipProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove" />
<roleManager defaultProvider="DefaultRoleProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove" />
<profile defaultProvider="DefaultProfileProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove" />
<sessionState customProvider="DefaultSessionProvider" xdt:Locator="Match(customProvider)" xdt:Transform="Remove" />
<compilation xdt:Transform="InsertIfMissing" />
<xhtmlConformance xdt:Transform="Remove" />
<xhtmlConformance xdt:Transform="Remove" />
<httpModules xdt:Transform="InsertIfMissing" />
<httpModules>
<add name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<!-- Don't remove the leading space below, this is to fix a quirk for a lot of releases where we added it with the space by default -->
<add name=" UmbracoModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="UmbracoModule" type="Umbraco.Web.UmbracoModule, Umbraco.Web" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</httpModules>
<httpModules xdt:Transform="InsertIfMissing" />
<httpModules>
<add name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name=" UmbracoModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,Umbraco.Web" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</httpModules>
<httpHandlers xdt:Transform="InsertIfMissing" />
<httpHandlers>
<add path="GoogleSpellChecker.ashx" xdt:Locator="Match(path)" xdt:Transform="Remove" />
</httpHandlers>
</system.web>
<httpHandlers xdt:Transform="InsertIfMissing" />
<httpHandlers>
<add path="GoogleSpellChecker.ashx" xdt:Locator="Match(path)" xdt:Transform="Remove" />
</httpHandlers>
</system.web>
<system.webServer xdt:Transform="InsertIfMissing" />
<system.webServer>
<modules xdt:Transform="InsertIfMissing" />
<modules runAllManagedModulesForAllRequests="true" xdt:Transform="SetAttributes(runAllManagedModulesForAllRequests)" />
<modules>
<remove name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<remove name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<remove name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<!-- Don't remove the leading space below, this is to fix a quirk for a lot of releases where we added it with the space by default -->
<add name=" UmbracoModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="UmbracoModule" type="Umbraco.Web.UmbracoModule, Umbraco.Web" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</modules>
<system.webServer xdt:Transform="InsertIfMissing" />
<system.webServer>
<modules xdt:Transform="InsertIfMissing" />
<modules runAllManagedModulesForAllRequests="true" xdt:Transform="SetAttributes(runAllManagedModulesForAllRequests)">
<remove name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<remove name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<remove name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<staticContent xdt:Transform="InsertIfMissing" />
<staticContent>
<remove fileExtension=".svg" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".woff" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".woff" mimeType="font/woff" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".woff2" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".woff2" mimeType="font/woff2" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".less" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".less" mimeType="text/css" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
</staticContent>
<add name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<!-- Note, we're removing the one that starts with a space here, don't correct it -->
<!-- This to fix a quirk we for a lot of releases where we added it with the space by default -->
<add name=" UmbracoModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,Umbraco.Web" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</modules>
<handlers>
<remove name="SpellChecker" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="SpellChecker" xdt:Locator="Match(name)" xdt:Transform="Remove" />
</handlers>
<staticContent xdt:Transform="InsertIfMissing" />
<staticContent>
<remove fileExtension=".svg" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".woff" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".woff2" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".less" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".less" mimeType="text/css" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
</staticContent>
<security xdt:Transform="InsertIfMissing" />
<security>
<requestFiltering xdt:Transform="InsertIfMissing" />
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" xdt:Transform="InsertIfMissing" />
</requestFiltering>
</security>
<handlers>
<remove name="SpellChecker" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="SpellChecker" xdt:Locator="Match(name)" xdt:Transform="Remove" />
</handlers>
</system.webServer>
<security xdt:Transform="InsertIfMissing">
<requestFiltering xdt:Transform="InsertIfMissing">
<requestLimits maxAllowedContentLength="52428800" xdt:Transform="InsertIfMissing" />
</requestFiltering>
</security>
</system.webServer>
<runtime xdt:Transform="InsertIfMissing" />
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" xdt:Transform="InsertIfMissing" />
</runtime>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='HtmlAgilityPack')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='AutoMapper')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Newtonsoft.Json')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Mvc')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.WebPages.Razor')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Http')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security.OAuth')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security.Cookies')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http.Formatting')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.CodeAnalysis.CSharp')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='log4net')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Data.SqlServerCe')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.ValueTuple')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http.Formatting')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Collections.Immutable')" xdt:Transform="Remove" />
</assemblyBinding>
</runtime>
<runtime>
<runtime xdt:Transform="InsertIfMissing" />
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" xdt:Transform="InsertIfMissing" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='HtmlAgilityPack')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='AutoMapper')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Newtonsoft.Json')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Mvc')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.WebPages.Razor')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Http')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security.OAuth')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security.Cookies')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http.Formatting')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.CodeAnalysis.CSharp')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='log4net')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Data.SqlServerCe')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.ValueTuple')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http.Formatting')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Collections.Immutable')" xdt:Transform="Remove" />
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
@@ -177,20 +174,21 @@
</assemblyBinding>
</runtime>
<system.web.webPages.razor xdt:Transform="Remove" />
<system.web.webPages.razor xdt:Transform="Remove" />
<location path="umbraco" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing" />
<location path="umbraco" xdt:Locator="Match(path)">
<system.webServer xdt:Transform="InsertIfMissing">
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" xdt:Transform="SetAttributes(doStaticCompression,doDynamicCompression,dynamicCompressionBeforeCache)" />
</system.webServer>
</location>
<location path="App_Plugins" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing" />
<location path="App_Plugins" xdt:Locator="Match(path)">
<system.webServer xdt:Transform="InsertIfMissing">
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" xdt:Transform="SetAttributes(doStaticCompression,doDynamicCompression,dynamicCompressionBeforeCache)" />
</system.webServer>
</location>
<location path="umbraco" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing" />
<location path="umbraco" xdt:Locator="Match(path)">
<system.webServer xdt:Transform="InsertIfMissing" />
<system.webServer>
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" xdt:Transform="SetAttributes(doStaticCompression,doDynamicCompression,dynamicCompressionBeforeCache)" />
</system.webServer>
</location>
<location path="App_Plugins" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing" />
<location path="App_Plugins" xdt:Locator="Match(path)">
<system.webServer xdt:Transform="InsertIfMissing" />
<system.webServer>
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" xdt:Transform="SetAttributes(doStaticCompression,doDynamicCompression,dynamicCompressionBeforeCache)" />
</system.webServer>
</location>
</configuration>
@@ -2,7 +2,7 @@
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">>
<appSettings>
<add key="serilog:using:File" value="Umbraco.Core" xdt:Transform="SetAttributes(value)" xdt:Locator="Match(key)"/>
<add key="serilog:using:File" value="Umbraco.Infrastructure" xdt:Transform="SetAttributes(value)" xdt:Locator="Match(key)"/>
<add key="serilog:write-to:File.shared" xdt:Transform="Remove" xdt:Locator="Match(key)"/>
</appSettings>
+1
View File
@@ -34,6 +34,7 @@
if (-not (test-path $nuget))
{
Write-Host "Download NuGet..."
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest $source -OutFile $nuget
if (-not $?) { throw "Failed to download NuGet." }
}
+79 -43
View File
@@ -168,7 +168,7 @@
$buildConfiguration = "Release"
$src = "$($this.SolutionRoot)\src"
$log = "$($this.BuildTemp)\msbuild.umbraco.log"
$log = "$($this.BuildTemp)\build.umbraco.log"
if ($this.BuildEnv.VisualStudio -eq $null)
{
@@ -178,23 +178,37 @@
Write-Host "Compile Umbraco"
Write-Host "Logging to $log"
# beware of the weird double \\ at the end of paths
# see http://edgylogic.com/blog/powershell-and-external-commands-done-right/
&$this.BuildEnv.VisualStudio.MsBuild "$src\Umbraco.Web.UI\Umbraco.Web.UI.csproj" `
/p:WarningLevel=0 `
/p:Configuration=$buildConfiguration `
/p:Platform=AnyCPU `
/p:UseWPP_CopyWebApplication=True `
/p:PipelineDependsOnBuild=False `
/p:OutDir="$($this.BuildTemp)\bin\\" `
/p:WebProjectOutputDir="$($this.BuildTemp)\WebApp\\" `
/p:Verbosity=minimal `
/t:Clean`;Rebuild `
/tv:"$($this.BuildEnv.VisualStudio.ToolsVersion)" `
/p:UmbracoBuild=True `
& dotnet build "$src\Umbraco.Web.UI.NetCore\Umbraco.Web.UI.NetCore.csproj" `
--configuration $buildConfiguration `
--output "$($this.BuildTemp)\bin\\" `
> $log
if (-not $?) { throw "Failed to compile Umbraco.Web.UI." }
# get files into WebApp\bin
& dotnet publish "$src\Umbraco.Web.UI.NetCore\Umbraco.Web.UI.NetCore.csproj" `
--configuration Release --output "$($this.BuildTemp)\WebApp\bin\\" `
> $log
& dotnet publish "$src\Umbraco.Persistance.SqlCe\Umbraco.Persistance.SqlCe.csproj" `
--configuration Release --output "$($this.BuildTemp)\SqlCe\" `
> $log
# remove extra files
$webAppBin = "$($this.BuildTemp)\WebApp\bin"
$excludeDirs = @("$($webAppBin)\Config","$($webAppBin)\refs","$($webAppBin)\runtimes","$($webAppBin)\Umbraco","$($webAppBin)\wwwroot")
$excludeFiles = @("$($webAppBin)\appsettings.*","$($webAppBin)\*.deps.json","$($webAppBin)\*.exe","$($webAppBin)\*.config","$($webAppBin)\*.runtimeconfig.json")
$this.RemoveDirectory($excludeDirs)
$this.RemoveFile($excludeFiles)
# copy rest of the files into WebApp
$this.CopyFiles("$($this.SolutionRoot)\src\Umbraco.Web.UI.NetCore\Config", "*", "$($this.BuildTemp)\WebApp\config")
$this.RemoveFile("$($this.BuildTemp)\WebApp\Config\*.Release.*")
$this.CopyFiles("$($this.SolutionRoot)\src\Umbraco.Web.UI.NetCore\Umbraco", "*", "$($this.BuildTemp)\WebApp\umbraco")
$excludeUmbracoDirs = @("$($this.BuildTemp)\WebApp\umbraco\lib")
$this.RemoveDirectory($excludeUmbracoDirs)
$this.CopyFiles("$($this.SolutionRoot)\src\Umbraco.Web.UI.NetCore\Views", "*", "$($this.BuildTemp)\WebApp\Views")
Copy-Item "$($this.SolutionRoot)\src\Umbraco.Web.UI.NetCore\appsettings.json" "$($this.BuildTemp)\WebApp"
if (-not $?) { throw "Failed to compile Umbraco.Web.UI.NetCore." }
# /p:UmbracoBuild tells the csproj that we are building from PS, not VS
})
@@ -253,6 +267,9 @@
/p:UmbracoBuild=True `
> $log
# copy Umbraco.Persistance.SqlCe files into WebApp
Copy-Item "$($this.BuildTemp)\tests\Umbraco.Persistance.SqlCe.*" "$($this.BuildTemp)\WebApp\bin"
if (-not $?) { throw "Failed to compile tests." }
# /p:UmbracoBuild tells the csproj that we are building from PS
@@ -265,11 +282,12 @@
$src = "$($this.SolutionRoot)\src"
$tmp = "$($this.BuildTemp)"
$out = "$($this.BuildOutput)"
$templates = "$($this.SolutionRoot)\build\templates"
$buildConfiguration = "Release"
# restore web.config
$this.TempRestoreFile("$src\Umbraco.Web.UI\web.config")
#$this.TempRestoreFile("$src\Umbraco.Web.UI\web.config")
# cleanup build
Write-Host "Clean build"
@@ -285,6 +303,7 @@
mkdir "$tmp\Configs" > $null
mkdir "$tmp\Configs\Lang" > $null
mkdir "$tmp\WebApp\App_Data" > $null
mkdir "$tmp\Templates" > $null
#mkdir "$tmp\WebApp\Media" > $null
#mkdir "$tmp\WebApp\Views" > $null
@@ -298,10 +317,10 @@
{ -not $_.RelativeName.StartsWith("imageprocessor") })
$this.CopyFiles("$tmp\WebApp\config", "*.js", "$tmp\Configs")
$this.CopyFiles("$tmp\WebApp\config\lang", "*.xml", "$tmp\Configs\Lang")
$this.CopyFile("$tmp\WebApp\web.config", "$tmp\Configs\web.config.transform")
#$this.CopyFile("$tmp\WebApp\web.config", "$tmp\Configs\web.config.transform")
Write-Host "Copy transformed web.config"
$this.CopyFile("$src\Umbraco.Web.UI\web.$buildConfiguration.Config.transformed", "$tmp\WebApp\web.config")
# Write-Host "Copy transformed web.config"
# $this.CopyFile("$src\Umbraco.Web.UI\web.$buildConfiguration.Config.transformed", "$tmp\WebApp\web.config")
# offset the modified timestamps on all umbraco dlls, as WebResources
# break if date is in the future, which, due to timezone offsets can happen.
@@ -318,21 +337,36 @@
{
$nugetPackages = [System.Environment]::ExpandEnvironmentVariables("%userprofile%\.nuget\packages")
}
$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x86\native", "*.*", "$tmp\bin\x86")
$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x64\native", "*.*", "$tmp\bin\amd64")
$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x86\native", "*.*", "$tmp\WebApp\bin\x86")
$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x64\native", "*.*", "$tmp\WebApp\bin\amd64")
#$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x86\native", "*.*", "$tmp\bin\x86")
#$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x64\native", "*.*", "$tmp\bin\amd64")
#$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x86\native", "*.*", "$tmp\WebApp\bin\x86")
#$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x64\native", "*.*", "$tmp\WebApp\bin\amd64")
# copy Belle
Write-Host "Copy Belle"
$this.CopyFiles("$src\Umbraco.Web.UI\umbraco\assets", "*", "$tmp\WebApp\umbraco\assets")
$this.CopyFiles("$src\Umbraco.Web.UI\umbraco\js", "*", "$tmp\WebApp\umbraco\js")
$this.CopyFiles("$src\Umbraco.Web.UI\umbraco\lib", "*", "$tmp\WebApp\umbraco\lib")
$this.CopyFiles("$src\Umbraco.Web.UI\umbraco\views", "*", "$tmp\WebApp\umbraco\views")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore\wwwroot\umbraco\assets", "*", "$tmp\WebApp\wwwroot\umbraco\assets")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore\wwwroot\umbraco\js", "*", "$tmp\WebApp\wwwroot\umbraco\js")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore\wwwroot\umbraco\lib", "*", "$tmp\WebApp\wwwroot\umbraco\lib")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore\wwwroot\umbraco\views", "*", "$tmp\WebApp\wwwroot\umbraco\views")
# Prepare templates
Write-Host "Copy template files"
$this.CopyFiles("$templates", "*", "$tmp\Templates")
Write-Host "Copy program.cs and startup.cs for templates"
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore", "Program.cs", "$tmp\Templates\UmbracoSolution")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore", "Startup.cs", "$tmp\Templates\UmbracoSolution")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore", "appsettings.json", "$tmp\Templates\UmbracoSolution")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore", "appsettings.Development.json", "$tmp\Templates\UmbracoSolution")
$this.RemoveDirectory("$tmp\Templates\UmbracoSolution\bin")
})
$ubuild.DefineMethod("PackageZip",
{
Write-Host "Create Zip packages"
$src = "$($this.SolutionRoot)\src"
@@ -365,6 +399,7 @@
$env:UMBRACO_RELEASE=$this.Version.Release
$env:UMBRACO_COMMENT=$this.Version.Comment
$env:UMBRACO_BUILD=$this.Version.Build
$env:UMBRACO_TMP="$($this.SolutionRoot)\build.tmp"
if ($args -and $args[0] -eq "vso")
{
@@ -381,16 +416,6 @@
}
})
$ubuild.DefineMethod("PrepareNuGet",
{
Write-Host "Prepare NuGet"
# add Web.config transform files to the NuGet package
Write-Host "Add web.config transforms to NuGet package"
mv "$($this.BuildTemp)\WebApp\Views\Web.config" "$($this.BuildTemp)\WebApp\Views\Web.config.transform"
})
$nugetsourceUmbraco = "https://api.nuget.org/v3/index.json"
$ubuild.DefineMethod("RestoreNuGet",
@@ -405,6 +430,7 @@
$ubuild.DefineMethod("PackageNuGet",
{
$nuspecs = "$($this.SolutionRoot)\build\NuSpecs"
$templates = "$($this.BuildTemp)\Templates"
Write-Host "Create NuGet packages"
@@ -426,6 +452,18 @@
-Verbosity detailed -outputDirectory "$($this.BuildOutput)" > "$($this.BuildTemp)\nupack.cms.log"
if (-not $?) { throw "Failed to pack NuGet UmbracoCms." }
&$this.BuildEnv.NuGet Pack "$nuspecs\UmbracoCms.SqlCe.nuspec" `
-Properties BuildTmp="$($this.BuildTemp)" `
-Version "$($this.Version.Semver.ToString())" `
-Verbosity detailed -outputDirectory "$($this.BuildOutput)" > "$($this.BuildTemp)\nupack.cmssqlce.log"
if (-not $?) { throw "Failed to pack NuGet UmbracoCms.SqlCe." }
&$this.BuildEnv.NuGet Pack "$templates\Umbraco.Templates.nuspec" `
-Properties BuildTmp="$($this.BuildTemp)" `
-Version "$($this.Version.Semver.ToString())" `
-Verbosity detailed -outputDirectory "$($this.BuildOutput)" > "$($this.BuildTemp)\nupack.templates.log"
if (-not $?) { throw "Failed to pack NuGet Umbraco.Templates." }
# run hook
if ($this.HasMethod("PostPackageNuGet"))
{
@@ -439,7 +477,7 @@
{
$this.VerifyNuGetConsistency(
("UmbracoCms", "UmbracoCms.Core", "UmbracoCms.Web"),
("Umbraco.Core", "Umbraco.Web", "Umbraco.Web.UI", "Umbraco.Examine"))
("Umbraco.Core", "Umbraco.Infrastructure", "Umbraco.Configuration", "Umbraco.Web.UI.NetCore", "Umbraco.Examine.Lucene", "Umbraco.PublishedCache.NuCache", "Umbraco.Web.Common", "Umbraco.Web.Website", "Umbraco.Web.BackOffice"))
if ($this.OnError()) { return }
})
@@ -476,7 +514,7 @@
$src = "$($this.SolutionRoot)\src"
$out = $this.BuildOutput
# Check if the solution has been built
# Check if the solution has been built
if (!(Test-Path "$src\Umbraco.Web.UI.Client\node_modules")) {throw "Umbraco needs to be built before generating the Angular Docs"}
"Moving to Umbraco.Web.UI.Docs folder"
@@ -487,7 +525,7 @@
& npx gulp docs
Pop-Location
# change baseUrl
$BaseUrl = "https://our.umbraco.com/apidocs/v8/ui/"
$IndexPath = "./api/index.html"
@@ -520,8 +558,6 @@
if ($this.OnError()) { return }
$this.VerifyNuGet()
if ($this.OnError()) { return }
$this.PrepareNuGet()
if ($this.OnError()) { return }
$this.PackageNuGet()
if ($this.OnError()) { return }
$this.PrepareAzureGallery()
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="4.1.0">
<id>Umbraco.Templates</id>
<version>1.0.0</version>
<authors>Umbraco HQ</authors>
<owners>Umbraco HQ</owners>
<license type="expression">MIT</license>
<projectUrl>https://umbraco.com/</projectUrl>
<iconUrl>https://umbraco.com/dist/nuget/logo-small.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Umbraco Cms templates for .NET Core Template Engine available through the dotnet CLI's new command</description>
<language>en-US</language>
<tags>umbraco</tags>
<repository type="git" url="https://github.com/umbraco/umbraco-cms" />
<packageTypes>
<packageType name="Template" />
</packageTypes>
</metadata>
</package>
@@ -0,0 +1,38 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Umbraco HQ",
"classifications": [ "Web", "CMS", "Umbraco"],
"identity": "Umbraco.Templates",
"name": "Umbraco - Empty Solution",
"shortName": "umbraco",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "UmbracoSolution", // Will be replaced with the value provided via -n
"preferNameDirectory": true,
"symbols": {
"version": {
"type": "parameter",
"datatype": "string",
"defaultValue": "0.5.0-alpha002",
"description": "The version of Umbraco to load using NuGet",
"replaces": "UMBRACO_VERSION_FROM_TEMPLATE"
},
"namespaceReplacer": {
"type": "generated",
"generator": "coalesce",
"parameters": {
"sourceVariableName": "name",
"defaultValue": "UmbracoSolution",
"fallbackVariableName": "name"
},
"replaces":"Umbraco.Web.UI.NetCore"
},
"UseSqlCe":{
"type": "parameter",
"datatype":"bool",
"defaultValue": "false"
}
}
}
@@ -0,0 +1,26 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:5000",
"sslPort": 5001
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Umbraco.Web.UI.NetCore": {
"commandName": "Project",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Umbraco.Cms" Version="UMBRACO_VERSION_FROM_TEMPLATE" />
<PackageReference Include="Umbraco.Cms.SqlCe" Version="UMBRACO_VERSION_FROM_TEMPLATE" Condition="'$(UseSqlCe)' == 'true'" />
<PackageReference Include="Umbraco.SqlServerCE" Version="4.0.0.1" Condition="'$(UseSqlCe)' == 'true'" />
</ItemGroup>
</Project>
+3 -3
View File
@@ -15,8 +15,8 @@ using System.Resources;
// this is the ONLY ONE the CLR cares about for compatibility
// should change ONLY when "hard" breaking compatibility (manual change)
[assembly: AssemblyVersion("8.0.0")]
[assembly: AssemblyVersion("0.5.0")]
// these are FYI and changed automatically
[assembly: AssemblyFileVersion("8.7.0")]
[assembly: AssemblyInformationalVersion("8.7.0")]
[assembly: AssemblyFileVersion("0.5.0")]
[assembly: AssemblyInformationalVersion("0.5.0-alpha002")]
@@ -0,0 +1,11 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Umbraco Cms
[assembly: InternalsVisibleTo("Umbraco.Tests")]
[assembly: InternalsVisibleTo("Umbraco.Tests.Common")]
[assembly: InternalsVisibleTo("Umbraco.Tests.Benchmarks")]
// Allow this to be mocked in our unit tests
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
@@ -0,0 +1,45 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DocumentationFile>bin\Release\Umbraco.Configuration.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Compile Remove="obj\**" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="obj\**" />
</ItemGroup>
<ItemGroup>
<None Remove="obj\**" />
</ItemGroup>
<ItemGroup>
<_UnmanagedRegistrationCache Remove="obj\Umbraco.Configuration.csproj.UnmanagedRegistration.cache" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.8" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.1.8" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.1.8" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Umbraco.Core\Umbraco.Core.csproj" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>Umbraco.Tests.Integration</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>
@@ -13,13 +13,13 @@ namespace Umbraco.Web.Actions
: base(items)
{ }
internal T GetAction<T>()
public T GetAction<T>()
where T : IAction
{
return this.OfType<T>().FirstOrDefault();
}
internal IEnumerable<IAction> GetByLetters(IEnumerable<string> letters)
public IEnumerable<IAction> GetByLetters(IEnumerable<string> letters)
{
var actions = this.ToArray(); // no worry: internally, it's already an array
return letters
@@ -28,5 +28,15 @@ namespace Umbraco.Web.Actions
.WhereNotNull()
.ToList();
}
public IReadOnlyList<IAction> FromEntityPermission(EntityPermission entityPermission)
{
var actions = this.ToArray(); // no worry: internally, it's already an array
return entityPermission.AssignedPermissions
.Where(x => x.Length == 1)
.SelectMany(x => actions.Where(y => y.Letter == x[0]))
.WhereNotNull()
.ToList();
}
}
}
@@ -4,7 +4,7 @@ using System.Linq;
using Umbraco.Core.Composing;
namespace Umbraco.Web.Actions
{
internal class ActionCollectionBuilder : LazyCollectionBuilderBase<ActionCollectionBuilder, ActionCollection, IAction>
public class ActionCollectionBuilder : LazyCollectionBuilderBase<ActionCollectionBuilder, ActionCollection, IAction>
{
protected override ActionCollectionBuilder This => this;
+30 -3
View File
@@ -1,13 +1,40 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
namespace Umbraco.Core
{
internal static class AssemblyExtensions
public static class AssemblyExtensions
{
private static string _rootDir = "";
/// <summary>
/// Utility method that returns the path to the root of the application, by getting the path to where the assembly where this
/// method is included is present, then traversing until it's past the /bin directory. Ie. this makes it work
/// even if the assembly is in a /bin/debug or /bin/release folder
/// </summary>
/// <returns></returns>
public static string GetRootDirectorySafe(this Assembly executingAssembly)
{
if (string.IsNullOrEmpty(_rootDir) == false)
{
return _rootDir;
}
var codeBase = executingAssembly.CodeBase;
var uri = new Uri(codeBase);
var path = uri.LocalPath;
var baseDirectory = Path.GetDirectoryName(path);
if (string.IsNullOrEmpty(baseDirectory))
throw new Exception("No root directory could be resolved. Please ensure that your Umbraco solution is correctly configured.");
_rootDir = baseDirectory.Contains("bin")
? baseDirectory.Substring(0, baseDirectory.LastIndexOf("bin", StringComparison.OrdinalIgnoreCase) - 1)
: baseDirectory;
return _rootDir;
}
/// <summary>
/// Returns the file used to load the assembly
/// </summary>
@@ -2,12 +2,15 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using Umbraco.Core.Composing;
using Umbraco.Core.Configuration;
using Umbraco.Core.Configuration.Models;
using Umbraco.Core.Models.Entities;
using Umbraco.Core.Models.Identity;
using Umbraco.Core.Models.Membership;
namespace Umbraco.Core.Models.Identity
namespace Umbraco.Core.BackOffice
{
public class BackOfficeIdentityUser : IdentityUser<int, IIdentityUserLogin, IdentityUserRole<string>, IdentityUserClaim<int>>, IRememberBeingDirty
{
@@ -20,6 +23,7 @@ namespace Umbraco.Core.Models.Identity
private string _name;
private int _accessFailedCount;
private string _passwordHash;
private string _passwordConfig;
private string _culture;
private ObservableCollection<IIdentityUserLogin> _logins;
private Lazy<IEnumerable<IIdentityUserLogin>> _getLogins;
@@ -36,12 +40,12 @@ namespace Umbraco.Core.Models.Identity
/// <param name="email">This is allowed to be null (but would need to be filled in if trying to persist this instance)</param>
/// <param name="culture"></param>
/// <returns></returns>
public static BackOfficeIdentityUser CreateNew(string username, string email, string culture)
public static BackOfficeIdentityUser CreateNew(GlobalSettings globalSettings, string username, string email, string culture)
{
if (string.IsNullOrWhiteSpace(username)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(username));
if (string.IsNullOrWhiteSpace(culture)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(culture));
var user = new BackOfficeIdentityUser(Array.Empty<IReadOnlyUserGroup>());
var user = new BackOfficeIdentityUser(globalSettings, Array.Empty<IReadOnlyUserGroup>());
user.DisableChangeTracking();
user._userName = username;
user._email = email;
@@ -54,12 +58,12 @@ namespace Umbraco.Core.Models.Identity
return user;
}
private BackOfficeIdentityUser(IReadOnlyUserGroup[] groups)
private BackOfficeIdentityUser(GlobalSettings globalSettings, IReadOnlyUserGroup[] groups)
{
_startMediaIds = Array.Empty<int>();
_startContentIds = Array.Empty<int>();
_allowedSections = Array.Empty<string>();
_culture = Current.Configs.Global().DefaultUILanguage; // TODO: inject
_culture = globalSettings.DefaultUILanguage;
// must initialize before setting groups
_roles = new ObservableCollection<IdentityUserRole<string>>();
@@ -72,10 +76,11 @@ namespace Umbraco.Core.Models.Identity
/// <summary>
/// Creates an existing user with the specified groups
/// </summary>
/// <param name="globalSettings"></param>
/// <param name="userId"></param>
/// <param name="groups"></param>
public BackOfficeIdentityUser(int userId, IEnumerable<IReadOnlyUserGroup> groups)
: this(groups.ToArray())
public BackOfficeIdentityUser(GlobalSettings globalSettings, int userId, IEnumerable<IReadOnlyUserGroup> groups)
: this(globalSettings, groups.ToArray())
{
// use the property setters - they do more than just setting a field
Id = userId;
@@ -86,8 +91,8 @@ namespace Umbraco.Core.Models.Identity
/// </summary>
public bool HasIdentity => _hasIdentity;
public int[] CalculatedMediaStartNodeIds { get; internal set; }
public int[] CalculatedContentStartNodeIds { get; internal set; }
public int[] CalculatedMediaStartNodeIds { get; set; }
public int[] CalculatedContentStartNodeIds { get; set; }
public override int Id
{
@@ -171,6 +176,12 @@ namespace Umbraco.Core.Models.Identity
set => _beingDirty.SetPropertyValueAndDetectChanges(value, ref _passwordHash, nameof(PasswordHash));
}
public string PasswordConfig
{
get => _passwordConfig;
set => _beingDirty.SetPropertyValueAndDetectChanges(value, ref _passwordConfig, nameof(PasswordConfig));
}
/// <summary>
/// Content start nodes assigned to the User (not ones assigned to the user's groups)
@@ -254,7 +265,7 @@ namespace Umbraco.Core.Models.Identity
/// <summary>
/// Based on the user's lockout end date, this will determine if they are locked out
/// </summary>
internal bool IsLockedOut
public bool IsLockedOut
{
get
{
@@ -266,7 +277,7 @@ namespace Umbraco.Core.Models.Identity
/// <summary>
/// This is a 1:1 mapping with IUser.IsApproved
/// </summary>
internal bool IsApproved { get; set; }
public bool IsApproved { get; set; }
/// <summary>
/// Overridden to make the retrieval lazy
@@ -403,6 +414,18 @@ namespace Umbraco.Core.Models.Identity
_beingDirty.EnableChangeTracking();
}
public event PropertyChangedEventHandler PropertyChanged
{
add
{
_beingDirty.PropertyChanged += value;
}
remove
{
_beingDirty.PropertyChanged -= value;
}
}
#endregion
//Custom comparer for enumerables
@@ -413,5 +436,6 @@ namespace Umbraco.Core.Models.Identity
private static readonly DelegateEqualityComparer<int[]> StartIdsComparer = new DelegateEqualityComparer<int[]>(
(groups, enumerable) => groups.UnsortedSequenceEqual(enumerable),
groups => groups.GetHashCode());
}
}
@@ -0,0 +1,12 @@
namespace Umbraco.Core.BackOffice
{
/// <summary>
/// The result returned from the IBackOfficeUserPasswordChecker
/// </summary>
public enum BackOfficeUserPasswordCheckerResult
{
ValidCredentials,
InvalidCredentials,
FallbackToDefaultChecker
}
}
@@ -0,0 +1,68 @@
using System;
using System.Globalization;
using System.Linq;
using System.Security.Claims;
using System.Security.Principal;
using Umbraco.Core;
using Umbraco.Core.BackOffice;
namespace Umbraco.Extensions
{
public static class ClaimsPrincipalExtensions
{
/// <summary>
/// This will return the current back office identity if the IPrincipal is the correct type
/// </summary>
/// <param name="user"></param>
/// <returns></returns>
public static UmbracoBackOfficeIdentity GetUmbracoIdentity(this IPrincipal user)
{
//If it's already a UmbracoBackOfficeIdentity
if (user.Identity is UmbracoBackOfficeIdentity backOfficeIdentity) return backOfficeIdentity;
//Check if there's more than one identity assigned and see if it's a UmbracoBackOfficeIdentity and use that
if (user is ClaimsPrincipal claimsPrincipal)
{
backOfficeIdentity = claimsPrincipal.Identities.OfType<UmbracoBackOfficeIdentity>().FirstOrDefault();
if (backOfficeIdentity != null) return backOfficeIdentity;
}
//Otherwise convert to a UmbracoBackOfficeIdentity if it's auth'd
if (user.Identity is ClaimsIdentity claimsIdentity
&& claimsIdentity.IsAuthenticated
&& UmbracoBackOfficeIdentity.FromClaimsIdentity(claimsIdentity, out var umbracoIdentity))
{
return umbracoIdentity;
}
return null;
}
/// <summary>
/// Returns the remaining seconds on an auth ticket for the user based on the claim applied to the user durnig authentication
/// </summary>
/// <param name="user"></param>
/// <returns></returns>
public static double GetRemainingAuthSeconds(this IPrincipal user) => user.GetRemainingAuthSeconds(DateTimeOffset.UtcNow);
/// <summary>
/// Returns the remaining seconds on an auth ticket for the user based on the claim applied to the user durnig authentication
/// </summary>
/// <param name="user"></param>
/// <param name="now"></param>
/// <returns></returns>
public static double GetRemainingAuthSeconds(this IPrincipal user, DateTimeOffset now)
{
var umbIdentity = user.GetUmbracoIdentity();
if (umbIdentity == null) return 0;
var ticketExpires = umbIdentity.FindFirstValue(Constants.Security.TicketExpiresClaimType);
if (ticketExpires.IsNullOrWhiteSpace()) return 0;
var utcExpired = DateTimeOffset.Parse(ticketExpires, null, DateTimeStyles.RoundtripKind);
var secondsRemaining = utcExpired.Subtract(now).TotalSeconds;
return secondsRemaining;
}
}
}
@@ -0,0 +1,24 @@
using System.Threading.Tasks;
namespace Umbraco.Core.BackOffice
{
/// <summary>
/// Used by the BackOfficeUserManager to check the username/password which allows for developers to more easily
/// set the logic for this procedure.
/// </summary>
public interface IBackOfficeUserPasswordChecker
{
/// <summary>
/// Checks a password for a user
/// </summary>
/// <param name="user"></param>
/// <param name="password"></param>
/// <returns></returns>
/// <remarks>
/// This will allow a developer to auto-link a local account which is required if the user queried doesn't exist locally.
/// The user parameter will always contain the username, if the user doesn't exist locally, the other properties will not be filled in.
/// A developer can then create a local account by filling in the properties and using UserManager.CreateAsync
/// </remarks>
Task<BackOfficeUserPasswordCheckerResult> CheckPasswordAsync(BackOfficeIdentityUser user, string password);
}
}
@@ -0,0 +1,87 @@
using System;
namespace Umbraco.Core.BackOffice
{
/// <summary>
/// This class is used by events raised from the BackofficeUserManager
/// </summary>
public class IdentityAuditEventArgs : EventArgs
{
/// <summary>
/// The action that got triggered from the audit event
/// </summary>
public AuditEvent Action { get; private set; }
/// <summary>
/// Current date/time in UTC format
/// </summary>
public DateTime DateTimeUtc { get; private set; }
/// <summary>
/// The source IP address of the user performing the action
/// </summary>
public string IpAddress { get; private set; }
/// <summary>
/// The user affected by the event raised
/// </summary>
public int AffectedUser { get; private set; }
/// <summary>
/// If a user is performing an action on a different user, then this will be set. Otherwise it will be -1
/// </summary>
public int PerformingUser { get; private set; }
/// <summary>
/// An optional comment about the action being logged
/// </summary>
public string Comment { get; private set; }
/// <summary>
/// This property is always empty except in the LoginFailed event for an unknown user trying to login
/// </summary>
public string AffectedUsername { get; private set; }
/// <summary>
/// Default constructor
/// </summary>
/// <param name="action"></param>
/// <param name="ipAddress"></param>
/// <param name="comment"></param>
/// <param name="performingUser"></param>
/// <param name="affectedUser"></param>
public IdentityAuditEventArgs(AuditEvent action, string ipAddress, int performingUser, string comment, int affectedUser, string affectedUsername)
{
DateTimeUtc = DateTime.UtcNow;
Action = action;
IpAddress = ipAddress;
Comment = comment;
PerformingUser = performingUser;
AffectedUsername = affectedUsername;
AffectedUser = affectedUser;
}
public IdentityAuditEventArgs(AuditEvent action, string ipAddress, int performingUser, string comment, string affectedUsername)
: this(action, ipAddress, performingUser, comment, -1, affectedUsername)
{
}
}
public enum AuditEvent
{
AccountLocked,
AccountUnlocked,
ForgotPasswordRequested,
ForgotPasswordChangedSuccess,
LoginFailed,
LoginRequiresVerification,
LoginSucces,
LogoutSuccess,
PasswordChanged,
PasswordReset,
ResetAccessFailedCount
}
}
@@ -1,22 +1,25 @@
using System;
using Microsoft.Extensions.Options;
using Umbraco.Core.Configuration;
using Umbraco.Core.Configuration.Models;
using Umbraco.Core.Mapping;
using Umbraco.Core.Models;
using Umbraco.Core.Models.Membership;
using Umbraco.Core.Services;
namespace Umbraco.Core.Models.Identity
namespace Umbraco.Core.BackOffice
{
public class IdentityMapDefinition : IMapDefinition
{
private readonly ILocalizedTextService _textService;
private readonly IEntityService _entityService;
private readonly IGlobalSettings _globalSettings;
private readonly GlobalSettings _globalSettings;
public IdentityMapDefinition(ILocalizedTextService textService, IEntityService entityService, IGlobalSettings globalSettings)
public IdentityMapDefinition(ILocalizedTextService textService, IEntityService entityService, IOptions<GlobalSettings> globalSettings)
{
_textService = textService;
_entityService = entityService;
_globalSettings = globalSettings;
_globalSettings = globalSettings.Value;
}
public void DefineMaps(UmbracoMapper mapper)
@@ -24,7 +27,7 @@ namespace Umbraco.Core.Models.Identity
mapper.Define<IUser, BackOfficeIdentityUser>(
(source, context) =>
{
var target = new BackOfficeIdentityUser(source.Id, source.Groups);
var target = new BackOfficeIdentityUser(_globalSettings, source.Id, source.Groups);
target.DisableChangeTracking();
return target;
},
@@ -56,6 +59,7 @@ namespace Umbraco.Core.Models.Identity
target.Name = source.Name;
target.AccessFailedCount = source.FailedPasswordAttempts;
target.PasswordHash = GetPasswordHash(source.RawPasswordValue);
target.PasswordConfig = source.PasswordConfiguration;
target.StartContentIds = source.StartContentIds;
target.StartMediaIds = source.StartMediaIds;
target.Culture = source.GetUserCulture(_textService, _globalSettings).ToString(); // project CultureInfo to string
@@ -1,32 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Security.Claims;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using Microsoft.AspNet.Identity;
using Microsoft.Owin.Security;
using Newtonsoft.Json;
using Umbraco.Core.Configuration;
namespace Umbraco.Core.Security
namespace Umbraco.Core.BackOffice
{
/// <summary>
/// A custom user identity for the Umbraco backoffice
/// </summary>
/// <remarks>
/// This inherits from FormsIdentity for backwards compatibility reasons since we still support the forms auth cookie, in v8 we can
/// change over to 'pure' asp.net identity and just inherit from ClaimsIdentity.
/// </remarks>
[Serializable]
public class UmbracoBackOfficeIdentity : ClaimsIdentity
{
public static UmbracoBackOfficeIdentity FromClaimsIdentity(ClaimsIdentity identity)
public static bool FromClaimsIdentity(ClaimsIdentity identity, out UmbracoBackOfficeIdentity backOfficeIdentity)
{
//validate that all claims exist
foreach (var t in RequiredBackOfficeIdentityClaimTypes)
{
//if the identity doesn't have the claim, or the claim value is null
if (identity.HasClaim(x => x.Type == t) == false || identity.HasClaim(x => x.Type == t && x.Value.IsNullOrWhiteSpace()))
{
backOfficeIdentity = null;
return false;
}
}
backOfficeIdentity = new UmbracoBackOfficeIdentity(identity);
return true;
}
/// <summary>
/// Create a back office identity based on an existing claims identity
/// </summary>
/// <param name="identity"></param>
private UmbracoBackOfficeIdentity(ClaimsIdentity identity)
: base(identity.Claims, Constants.Security.BackOfficeAuthenticationType)
{
return new UmbracoBackOfficeIdentity(identity);
}
/// <summary>
@@ -38,22 +47,20 @@ namespace Umbraco.Core.Security
/// <param name="startContentNodes"></param>
/// <param name="startMediaNodes"></param>
/// <param name="culture"></param>
/// <param name="sessionId"></param>
/// <param name="securityStamp"></param>
/// <param name="allowedApps"></param>
/// <param name="roles"></param>
public UmbracoBackOfficeIdentity(int userId, string username, string realName,
IEnumerable<int> startContentNodes, IEnumerable<int> startMediaNodes, string culture,
string sessionId, string securityStamp, IEnumerable<string> allowedApps, IEnumerable<string> roles)
string securityStamp, IEnumerable<string> allowedApps, IEnumerable<string> roles)
: base(Enumerable.Empty<Claim>(), Constants.Security.BackOfficeAuthenticationType) //this ctor is used to ensure the IsAuthenticated property is true
{
if (allowedApps == null) throw new ArgumentNullException(nameof(allowedApps));
if (string.IsNullOrWhiteSpace(username)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(username));
if (string.IsNullOrWhiteSpace(realName)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(realName));
if (string.IsNullOrWhiteSpace(culture)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(culture));
if (string.IsNullOrWhiteSpace(sessionId)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(sessionId));
if (string.IsNullOrWhiteSpace(securityStamp)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(securityStamp));
AddRequiredClaims(userId, username, realName, startContentNodes, startMediaNodes, culture, sessionId, securityStamp, allowedApps, roles);
AddRequiredClaims(userId, username, realName, startContentNodes, startMediaNodes, culture, securityStamp, allowedApps, roles);
}
/// <summary>
@@ -68,43 +75,21 @@ namespace Umbraco.Core.Security
/// <param name="startContentNodes"></param>
/// <param name="startMediaNodes"></param>
/// <param name="culture"></param>
/// <param name="sessionId"></param>
/// <param name="securityStamp"></param>
/// <param name="allowedApps"></param>
/// <param name="roles"></param>
public UmbracoBackOfficeIdentity(ClaimsIdentity childIdentity,
int userId, string username, string realName,
IEnumerable<int> startContentNodes, IEnumerable<int> startMediaNodes, string culture,
string sessionId, string securityStamp, IEnumerable<string> allowedApps, IEnumerable<string> roles)
string securityStamp, IEnumerable<string> allowedApps, IEnumerable<string> roles)
: base(childIdentity.Claims, Constants.Security.BackOfficeAuthenticationType)
{
if (string.IsNullOrWhiteSpace(username)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(username));
if (string.IsNullOrWhiteSpace(realName)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(realName));
if (string.IsNullOrWhiteSpace(culture)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(culture));
if (string.IsNullOrWhiteSpace(sessionId)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(sessionId));
if (string.IsNullOrWhiteSpace(securityStamp)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(securityStamp));
Actor = childIdentity;
AddRequiredClaims(userId, username, realName, startContentNodes, startMediaNodes, culture, sessionId, securityStamp, allowedApps, roles);
}
/// <summary>
/// Create a back office identity based on an existing claims identity
/// </summary>
/// <param name="identity"></param>
private UmbracoBackOfficeIdentity(ClaimsIdentity identity)
: base(identity.Claims, Constants.Security.BackOfficeAuthenticationType)
{
Actor = identity;
//validate that all claims exist
foreach (var t in RequiredBackOfficeIdentityClaimTypes)
{
//if the identity doesn't have the claim, or the claim value is null
if (identity.HasClaim(x => x.Type == t) == false || identity.HasClaim(x => x.Type == t && x.Value.IsNullOrWhiteSpace()))
{
throw new InvalidOperationException("Cannot create a " + typeof(UmbracoBackOfficeIdentity) + " from " + typeof(ClaimsIdentity) + " since the required claim " + t + " is missing");
}
}
AddRequiredClaims(userId, username, realName, startContentNodes, startMediaNodes, culture, securityStamp, allowedApps, roles);
}
public const string Issuer = Constants.Security.BackOfficeAuthenticationType;
@@ -123,8 +108,7 @@ namespace Umbraco.Core.Security
Constants.Security.StartContentNodeIdClaimType,
Constants.Security.StartMediaNodeIdClaimType,
ClaimTypes.Locality,
Constants.Security.SessionIdClaimType,
Microsoft.AspNet.Identity.Constants.DefaultSecurityStampClaimType
Constants.Security.SecurityStampClaimType
};
/// <summary>
@@ -132,7 +116,7 @@ namespace Umbraco.Core.Security
/// </summary>
private void AddRequiredClaims(int userId, string username, string realName,
IEnumerable<int> startContentNodes, IEnumerable<int> startMediaNodes, string culture,
string sessionId, string securityStamp, IEnumerable<string> allowedApps, IEnumerable<string> roles)
string securityStamp, IEnumerable<string> allowedApps, IEnumerable<string> roles)
{
//This is the id that 'identity' uses to check for the user id
if (HasClaim(x => x.Type == ClaimTypes.NameIdentifier) == false)
@@ -148,7 +132,7 @@ namespace Umbraco.Core.Security
{
foreach (var startContentNode in startContentNodes)
{
AddClaim(new Claim(Constants.Security.StartContentNodeIdClaimType, startContentNode.ToInvariantString(), ClaimValueTypes.Integer32, Issuer, Issuer, this));
AddClaim(new Claim(Constants.Security.StartContentNodeIdClaimType, startContentNode.ToInvariantString(), ClaimValueTypes.Integer32, Issuer, Issuer, this));
}
}
@@ -163,13 +147,9 @@ namespace Umbraco.Core.Security
if (HasClaim(x => x.Type == ClaimTypes.Locality) == false)
AddClaim(new Claim(ClaimTypes.Locality, culture, ClaimValueTypes.String, Issuer, Issuer, this));
if (HasClaim(x => x.Type == Constants.Security.SessionIdClaimType) == false && SessionId.IsNullOrWhiteSpace() == false)
AddClaim(new Claim(Constants.Security.SessionIdClaimType, sessionId, ClaimValueTypes.String, Issuer, Issuer, this));
//The security stamp claim is also required... this is because this claim type is hard coded
// by the SecurityStampValidator, see: https://katanaproject.codeplex.com/workitem/444
if (HasClaim(x => x.Type == Microsoft.AspNet.Identity.Constants.DefaultSecurityStampClaimType) == false)
AddClaim(new Claim(Microsoft.AspNet.Identity.Constants.DefaultSecurityStampClaimType, securityStamp, ClaimValueTypes.String, Issuer, Issuer, this));
//The security stamp claim is also required
if (HasClaim(x => x.Type == Constants.Security.SecurityStampClaimType) == false)
AddClaim(new Claim(Constants.Security.SecurityStampClaimType, securityStamp, ClaimValueTypes.String, Issuer, Issuer, this));
//Add each app as a separate claim
if (HasClaim(x => x.Type == Constants.Security.AllowedApplicationsClaimType) == false && allowedApps != null)
@@ -192,7 +172,7 @@ namespace Umbraco.Core.Security
}
}
/// <inheritdoc />
/// <summary>
/// Gets the type of authenticated identity.
@@ -202,7 +182,7 @@ namespace Umbraco.Core.Security
/// </returns>
public override string AuthenticationType => Issuer;
private int[] _startContentNodes;
private int[] _startContentNodes;
public int[] StartContentNodes => _startContentNodes ?? (_startContentNodes = FindAll(x => x.Type == Constants.Security.StartContentNodeIdClaimType).Select(app => int.TryParse(app.Value, out var i) ? i : default).Where(x => x != default).ToArray());
private int[] _startMediaNodes;
@@ -215,25 +195,26 @@ namespace Umbraco.Core.Security
public string RealName => this.FindFirstValue(ClaimTypes.GivenName);
public string Username => this.GetUserName();
public string Username => this.FindFirstValue(ClaimTypes.Name);
public string Culture => this.FindFirstValue(ClaimTypes.Locality);
public string SessionId
{
get => this.FindFirstValue(Constants.Security.SessionIdClaimType);
set
{
var existing = FindFirst(Constants.Security.SessionIdClaimType);
if (existing != null)
TryRemoveClaim(existing);
AddClaim(new Claim(Constants.Security.SessionIdClaimType, value, ClaimValueTypes.String, Issuer, Issuer, this));
}
}
public string SecurityStamp => this.FindFirstValue(Microsoft.AspNet.Identity.Constants.DefaultSecurityStampClaimType);
public string SecurityStamp => this.FindFirstValue(Constants.Security.SecurityStampClaimType);
public string[] Roles => this.FindAll(x => x.Type == DefaultRoleClaimType).Select(role => role.Value).ToArray();
/// <summary>
/// Overridden to remove any temporary claims that shouldn't be copied
/// </summary>
/// <returns></returns>
public override ClaimsIdentity Clone()
{
var clone = base.Clone();
foreach (var claim in clone.FindAll(x => x.Type == Constants.Security.TicketExpiresClaimType).ToList())
clone.RemoveClaim(claim);
return clone;
}
}
}
-45
View File
@@ -1,45 +0,0 @@
using System;
using System.Reflection;
using System.Web;
using Umbraco.Core;
// no binding redirect for now = de-activate
//[assembly: PreApplicationStartMethod(typeof(BindingRedirects), "Initialize")]
namespace Umbraco.Core
{
/// <summary>
/// Manages any assembly binding redirects that cannot be done via config (i.e. unsigned --> signed assemblies)
/// </summary>
public sealed class BindingRedirects
{
public static void Initialize()
{
// this only gets called when an assembly can't be resolved
AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
}
/// <summary>
/// This is used to do an assembly binding redirect via code - normally required due to signature changes in assemblies
/// </summary>
/// <param name="sender"></param>
/// <param name="args"></param>
/// <returns></returns>
private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
// When an assembly can't be resolved. In here we can do magic with the assembly name and try loading another.
// keep here for reference - we don't use AutoMapper
/*
//AutoMapper:
// this is used for loading a signed assembly of AutoMapper (v. 3.1+) without having to recompile old code.
// ensure the assembly is indeed AutoMapper and that the PublicKeyToken is null before trying to Load again
// do NOT just replace this with 'return Assembly', as it will cause an infinite loop -> stackoverflow
if (args.Name.StartsWith("AutoMapper") && args.Name.EndsWith("PublicKeyToken=null"))
return Assembly.Load(args.Name.Replace(", PublicKeyToken=null", ", PublicKeyToken=be96cd2c38ef1005"));
*/
return null;
}
}
}
+2 -7
View File
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Caching;
namespace Umbraco.Core.Cache
{
@@ -15,11 +14,9 @@ namespace Umbraco.Core.Cache
Func<T> getCacheItem,
TimeSpan? timeout,
bool isSliding = false,
CacheItemPriority priority = CacheItemPriority.Normal,
CacheItemRemovedCallback removedCallback = null,
string[] dependentFiles = null)
{
var result = provider.Get(cacheKey, () => getCacheItem(), timeout, isSliding, priority, removedCallback, dependentFiles);
var result = provider.Get(cacheKey, () => getCacheItem(), timeout, isSliding, dependentFiles);
return result == null ? default(T) : result.TryConvertTo<T>().Result;
}
@@ -28,11 +25,9 @@ namespace Umbraco.Core.Cache
Func<T> getCacheItem,
TimeSpan? timeout = null,
bool isSliding = false,
CacheItemPriority priority = CacheItemPriority.Normal,
CacheItemRemovedCallback removedCallback = null,
string[] dependentFiles = null)
{
provider.Insert(cacheKey, () => getCacheItem(), timeout, isSliding, priority, removedCallback, dependentFiles);
provider.Insert(cacheKey, () => getCacheItem(), timeout, isSliding, dependentFiles);
}
public static IEnumerable<T> GetCacheItemsByKeySearch<T>(this IAppCache provider, string keyStartsWith)
+2 -20
View File
@@ -1,5 +1,4 @@
using System;
using System.Web;
namespace Umbraco.Core.Cache
{
@@ -8,29 +7,12 @@ namespace Umbraco.Core.Cache
/// </summary>
public class AppCaches
{
/// <summary>
/// Initializes a new instance of the <see cref="AppCaches"/> for use in a web application.
/// </summary>
public AppCaches()
: this(HttpRuntime.Cache)
{ }
/// <summary>
/// Initializes a new instance of the <see cref="AppCaches"/> for use in a web application.
/// </summary>
public AppCaches(System.Web.Caching.Cache cache)
: this(
new WebCachingAppCache(cache),
new HttpRequestAppCache(),
new IsolatedCaches(t => new ObjectCacheAppCache()))
{ }
/// <summary>
/// Initializes a new instance of the <see cref="AppCaches"/> with cache providers.
/// </summary>
public AppCaches(
IAppPolicyCache runtimeCache,
IAppCache requestCache,
IRequestCache requestCache,
IsolatedCaches isolatedCaches)
{
RuntimeCache = runtimeCache ?? throw new ArgumentNullException(nameof(runtimeCache));
@@ -63,7 +45,7 @@ namespace Umbraco.Core.Cache
/// <para>The per-request caches works on top of the current HttpContext items.</para>
/// <para>Outside a web environment, the behavior of that cache is unspecified.</para>
/// </remarks>
public IAppCache RequestCache { get; }
public IRequestCache RequestCache { get; }
/// <summary>
/// Gets the runtime cache.
@@ -17,24 +17,24 @@ namespace Umbraco.Core.Cache
/// <param name="cacheFactory"></param>
protected AppPolicedCacheDictionary(Func<TKey, IAppPolicyCache> cacheFactory)
{
CacheFactory = cacheFactory;
_cacheFactory = cacheFactory;
}
/// <summary>
/// Gets the internal cache factory, for tests only!
/// </summary>
internal readonly Func<TKey, IAppPolicyCache> CacheFactory;
private readonly Func<TKey, IAppPolicyCache> _cacheFactory;
/// <summary>
/// Gets or creates a cache.
/// </summary>
public IAppPolicyCache GetOrCreate(TKey key)
=> _caches.GetOrAdd(key, k => CacheFactory(k));
=> _caches.GetOrAdd(key, k => _cacheFactory(k));
/// <summary>
/// Tries to get a cache.
/// </summary>
public Attempt<IAppPolicyCache> Get(TKey key)
protected Attempt<IAppPolicyCache> Get(TKey key)
=> _caches.TryGetValue(key, out var cache) ? Attempt.Succeed(cache) : Attempt.Fail<IAppPolicyCache>();
/// <summary>
@@ -56,7 +56,7 @@ namespace Umbraco.Core.Cache
/// <summary>
/// Clears a cache.
/// </summary>
public void ClearCache(TKey key)
protected void ClearCache(TKey key)
{
if (_caches.TryGetValue(key, out var cache))
cache.Clear();
@@ -71,4 +71,4 @@ namespace Umbraco.Core.Cache
cache.Clear();
}
}
}
}
+2
View File
@@ -12,5 +12,7 @@
public const string MacroContentCacheKey = "macroContent_"; // used in MacroRenderers
public const string MacroFromAliasCacheKey = "macroFromAlias_";
public const string UserGroupGetByAliasCacheKeyPrefix = "UserGroupRepository_GetByAlias_";
}
}
@@ -1,16 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using Umbraco.Core;
using Umbraco.Core.Cache;
using Umbraco.Core.Configuration;
using Umbraco.Core.Models;
using Umbraco.Core.Persistence.Repositories;
using Umbraco.Core.Persistence.Repositories.Implement;
using Umbraco.Core.Serialization;
using Umbraco.Core.Services;
using Umbraco.Core.Services.Changes;
using Umbraco.Web.Composing;
using Umbraco.Web.PublishedCache;
namespace Umbraco.Web.Cache
@@ -18,14 +15,14 @@ namespace Umbraco.Web.Cache
public sealed class ContentCacheRefresher : PayloadCacheRefresherBase<ContentCacheRefresher, ContentCacheRefresher.JsonPayload>
{
private readonly IPublishedSnapshotService _publishedSnapshotService;
private readonly IdkMap _idkMap;
private readonly IIdKeyMap _idKeyMap;
private readonly IDomainService _domainService;
public ContentCacheRefresher(AppCaches appCaches, IPublishedSnapshotService publishedSnapshotService, IdkMap idkMap, IDomainService domainService)
: base(appCaches)
public ContentCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IPublishedSnapshotService publishedSnapshotService, IIdKeyMap idKeyMap, IDomainService domainService)
: base(appCaches, serializer)
{
_publishedSnapshotService = publishedSnapshotService;
_idkMap = idkMap;
_idKeyMap = idKeyMap;
_domainService = domainService;
}
@@ -57,7 +54,7 @@ namespace Umbraco.Web.Cache
//By GUID Key
isolatedCache.Clear(RepositoryCacheKeys.GetKey<IContent>(payload.Key));
_idkMap.ClearCache(payload.Id);
_idKeyMap.ClearCache(payload.Id);
// remove those that are in the branch
if (payload.ChangeTypes.HasTypesAny(TreeChangeTypes.RefreshBranch | TreeChangeTypes.Remove))
@@ -140,14 +137,6 @@ namespace Umbraco.Web.Cache
public class JsonPayload
{
[Obsolete("Use the constructor specifying a GUID instead, using this constructor will result in not refreshing all caches")]
public JsonPayload(int id, TreeChangeTypes changeTypes)
{
Id = id;
ChangeTypes = changeTypes;
}
[JsonConstructor]
public JsonPayload(int id, Guid? key, TreeChangeTypes changeTypes)
{
Id = id;
@@ -5,6 +5,7 @@ using Umbraco.Core.Cache;
using Umbraco.Core.Models;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.Persistence.Repositories;
using Umbraco.Core.Serialization;
using Umbraco.Core.Services;
using Umbraco.Core.Services.Changes;
using Umbraco.Web.PublishedCache;
@@ -16,14 +17,14 @@ namespace Umbraco.Web.Cache
private readonly IPublishedSnapshotService _publishedSnapshotService;
private readonly IPublishedModelFactory _publishedModelFactory;
private readonly IContentTypeCommonRepository _contentTypeCommonRepository;
private readonly IdkMap _idkMap;
private readonly IIdKeyMap _idKeyMap;
public ContentTypeCacheRefresher(AppCaches appCaches, IPublishedSnapshotService publishedSnapshotService, IPublishedModelFactory publishedModelFactory, IdkMap idkMap, IContentTypeCommonRepository contentTypeCommonRepository)
: base(appCaches)
public ContentTypeCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IPublishedSnapshotService publishedSnapshotService, IPublishedModelFactory publishedModelFactory, IIdKeyMap idKeyMap, IContentTypeCommonRepository contentTypeCommonRepository)
: base(appCaches, serializer)
{
_publishedSnapshotService = publishedSnapshotService;
_publishedModelFactory = publishedModelFactory;
_idkMap = idkMap;
_idKeyMap = idKeyMap;
_contentTypeCommonRepository = contentTypeCommonRepository;
}
@@ -69,7 +70,7 @@ namespace Umbraco.Web.Cache
foreach (var id in payloads.Select(x => x.Id))
{
_idkMap.ClearCache(id);
_idKeyMap.ClearCache(id);
}
if (payloads.Any(x => x.ItemType == typeof(IContentType).Name))
@@ -4,6 +4,7 @@ using Umbraco.Core.Cache;
using Umbraco.Core.Models;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.PropertyEditors.ValueConverters;
using Umbraco.Core.Serialization;
using Umbraco.Core.Services;
using Umbraco.Web.PublishedCache;
@@ -14,14 +15,14 @@ namespace Umbraco.Web.Cache
{
private readonly IPublishedSnapshotService _publishedSnapshotService;
private readonly IPublishedModelFactory _publishedModelFactory;
private readonly IdkMap _idkMap;
private readonly IIdKeyMap _idKeyMap;
public DataTypeCacheRefresher(AppCaches appCaches, IPublishedSnapshotService publishedSnapshotService, IPublishedModelFactory publishedModelFactory, IdkMap idkMap)
: base(appCaches)
public DataTypeCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IPublishedSnapshotService publishedSnapshotService, IPublishedModelFactory publishedModelFactory, IIdKeyMap idKeyMap)
: base(appCaches, serializer)
{
_publishedSnapshotService = publishedSnapshotService;
_publishedModelFactory = publishedModelFactory;
_idkMap = idkMap;
_idKeyMap = idKeyMap;
}
#region Define
@@ -55,7 +56,7 @@ namespace Umbraco.Web.Cache
foreach (var payload in payloads)
{
_idkMap.ClearCache(payload.Id);
_idKeyMap.ClearCache(payload.Id);
}
// TODO: not sure I like these?
+12 -13
View File
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Caching;
using Umbraco.Core.Models;
using Umbraco.Core.Models.Entities;
@@ -12,7 +11,7 @@ namespace Umbraco.Core.Cache
/// instance, and ensuring that all inserts and returns are deep cloned copies of the cache item,
/// when the item is deep-cloneable.
/// </summary>
internal class DeepCloneAppCache : IAppPolicyCache
public class DeepCloneAppCache : IAppPolicyCache
{
/// <summary>
/// Initializes a new instance of the <see cref="DeepCloneAppCache"/> class.
@@ -30,7 +29,7 @@ namespace Umbraco.Core.Cache
/// <summary>
/// Gets the inner cache.
/// </summary>
public IAppPolicyCache InnerCache { get; }
private IAppPolicyCache InnerCache { get; }
/// <inheritdoc />
public object Get(string key)
@@ -44,7 +43,7 @@ namespace Umbraco.Core.Cache
{
var cached = InnerCache.Get(key, () =>
{
var result = FastDictionaryAppCacheBase.GetSafeLazy(factory);
var result = SafeLazy.GetSafeLazy(factory);
var value = result.Value; // force evaluation now - this may throw if cacheItem throws, and then nothing goes into cache
// do not store null values (backward compat), clone / reset to go into the cache
return value == null ? null : CheckCloneableAndTracksChanges(value);
@@ -67,32 +66,32 @@ namespace Umbraco.Core.Cache
}
/// <inheritdoc />
public object Get(string key, Func<object> factory, TimeSpan? timeout, bool isSliding = false, CacheItemPriority priority = CacheItemPriority.Normal, CacheItemRemovedCallback removedCallback = null, string[] dependentFiles = null)
public object Get(string key, Func<object> factory, TimeSpan? timeout, bool isSliding = false, string[] dependentFiles = null)
{
var cached = InnerCache.Get(key, () =>
{
var result = FastDictionaryAppCacheBase.GetSafeLazy(factory);
var result = SafeLazy.GetSafeLazy(factory);
var value = result.Value; // force evaluation now - this may throw if cacheItem throws, and then nothing goes into cache
// do not store null values (backward compat), clone / reset to go into the cache
return value == null ? null : CheckCloneableAndTracksChanges(value);
return value == null ? null : CheckCloneableAndTracksChanges(value);
// clone / reset to go into the cache
}, timeout, isSliding, priority, removedCallback, dependentFiles);
}, timeout, isSliding, dependentFiles);
// clone / reset to go into the cache
return CheckCloneableAndTracksChanges(cached);
}
/// <inheritdoc />
public void Insert(string key, Func<object> factory, TimeSpan? timeout = null, bool isSliding = false, CacheItemPriority priority = CacheItemPriority.Normal, CacheItemRemovedCallback removedCallback = null, string[] dependentFiles = null)
public void Insert(string key, Func<object> factory, TimeSpan? timeout = null, bool isSliding = false, string[] dependentFiles = null)
{
InnerCache.Insert(key, () =>
{
var result = FastDictionaryAppCacheBase.GetSafeLazy(factory);
var result = SafeLazy.GetSafeLazy(factory);
var value = result.Value; // force evaluation now - this may throw if cacheItem throws, and then nothing goes into cache
// do not store null values (backward compat), clone / reset to go into the cache
return value == null ? null : CheckCloneableAndTracksChanges(value);
}, timeout, isSliding, priority, removedCallback, dependentFiles);
}, timeout, isSliding, dependentFiles);
}
/// <inheritdoc />
@@ -108,9 +107,9 @@ namespace Umbraco.Core.Cache
}
/// <inheritdoc />
public void ClearOfType(string typeName)
public void ClearOfType(Type type)
{
InnerCache.ClearOfType(typeName);
InnerCache.ClearOfType(type);
}
/// <inheritdoc />
+28 -14
View File
@@ -1,4 +1,5 @@
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text.RegularExpressions;
@@ -8,30 +9,39 @@ namespace Umbraco.Core.Cache
/// <summary>
/// Implements <see cref="IAppCache"/> on top of a concurrent dictionary.
/// </summary>
public class DictionaryAppCache : IAppCache
public class DictionaryAppCache : IRequestCache
{
/// <summary>
/// Gets the internal items dictionary, for tests only!
/// </summary>
internal readonly ConcurrentDictionary<string, object> Items = new ConcurrentDictionary<string, object>();
private readonly ConcurrentDictionary<string, object> _items = new ConcurrentDictionary<string, object>();
public int Count => _items.Count;
/// <inheritdoc />
public bool IsAvailable => true;
/// <inheritdoc />
public virtual object Get(string key)
{
return Items.TryGetValue(key, out var value) ? value : null;
return _items.TryGetValue(key, out var value) ? value : null;
}
/// <inheritdoc />
public virtual object Get(string key, Func<object> factory)
{
return Items.GetOrAdd(key, _ => factory());
return _items.GetOrAdd(key, _ => factory());
}
public bool Set(string key, object value) => _items.TryAdd(key, value);
public bool Remove(string key) => _items.TryRemove(key, out _);
/// <inheritdoc />
public virtual IEnumerable<object> SearchByKey(string keyStartsWith)
{
var items = new List<object>();
foreach (var (key, value) in Items)
foreach (var (key, value) in _items)
if (key.InvariantStartsWith(keyStartsWith))
items.Add(value);
return items;
@@ -42,7 +52,7 @@ namespace Umbraco.Core.Cache
{
var compiled = new Regex(regex, RegexOptions.Compiled);
var items = new List<object>();
foreach (var (key, value) in Items)
foreach (var (key, value) in _items)
if (compiled.IsMatch(key))
items.Add(value);
return items;
@@ -51,46 +61,50 @@ namespace Umbraco.Core.Cache
/// <inheritdoc />
public virtual void Clear()
{
Items.Clear();
_items.Clear();
}
/// <inheritdoc />
public virtual void Clear(string key)
{
Items.TryRemove(key, out _);
_items.TryRemove(key, out _);
}
/// <inheritdoc />
public virtual void ClearOfType(string typeName)
public virtual void ClearOfType(Type type)
{
Items.RemoveAll(kvp => kvp.Value != null && kvp.Value.GetType().ToString().InvariantEquals(typeName));
_items.RemoveAll(kvp => kvp.Value != null && kvp.Value.GetType() == type);
}
/// <inheritdoc />
public virtual void ClearOfType<T>()
{
var typeOfT = typeof(T);
Items.RemoveAll(kvp => kvp.Value != null && kvp.Value.GetType() == typeOfT);
ClearOfType(typeOfT);
}
/// <inheritdoc />
public virtual void ClearOfType<T>(Func<string, T, bool> predicate)
{
var typeOfT = typeof(T);
Items.RemoveAll(kvp => kvp.Value != null && kvp.Value.GetType() == typeOfT && predicate(kvp.Key, (T)kvp.Value));
_items.RemoveAll(kvp => kvp.Value != null && kvp.Value.GetType() == typeOfT && predicate(kvp.Key, (T)kvp.Value));
}
/// <inheritdoc />
public virtual void ClearByKey(string keyStartsWith)
{
Items.RemoveAll(kvp => kvp.Key.InvariantStartsWith(keyStartsWith));
_items.RemoveAll(kvp => kvp.Key.InvariantStartsWith(keyStartsWith));
}
/// <inheritdoc />
public virtual void ClearByRegex(string regex)
{
var compiled = new Regex(regex, RegexOptions.Compiled);
Items.RemoveAll(kvp => compiled.IsMatch(kvp.Key));
_items.RemoveAll(kvp => compiled.IsMatch(kvp.Key));
}
public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => _items.GetEnumerator();
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
}
}
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using Umbraco.Core;
using Umbraco.Core.Cache;
using Umbraco.Web.Composing;
using Umbraco.Core.Sync;
namespace Umbraco.Web.Cache
{
@@ -21,6 +21,15 @@ namespace Umbraco.Web.Cache
/// </remarks>
public sealed class DistributedCache
{
private readonly IServerMessenger _serverMessenger;
private readonly CacheRefresherCollection _cacheRefreshers;
public DistributedCache(IServerMessenger serverMessenger, CacheRefresherCollection cacheRefreshers)
{
_serverMessenger = serverMessenger;
_cacheRefreshers = cacheRefreshers;
}
#region Core notification methods
/// <summary>
@@ -37,7 +46,7 @@ namespace Umbraco.Web.Cache
{
if (refresherGuid == Guid.Empty || instances.Length == 0 || getNumericId == null) return;
Current.ServerMessenger.PerformRefresh(
_serverMessenger.PerformRefresh(
GetRefresherById(refresherGuid),
getNumericId,
instances);
@@ -52,7 +61,7 @@ namespace Umbraco.Web.Cache
{
if (refresherGuid == Guid.Empty || id == default(int)) return;
Current.ServerMessenger.PerformRefresh(
_serverMessenger.PerformRefresh(
GetRefresherById(refresherGuid),
id);
}
@@ -66,7 +75,7 @@ namespace Umbraco.Web.Cache
{
if (refresherGuid == Guid.Empty || id == Guid.Empty) return;
Current.ServerMessenger.PerformRefresh(
_serverMessenger.PerformRefresh(
GetRefresherById(refresherGuid),
id);
}
@@ -77,7 +86,7 @@ namespace Umbraco.Web.Cache
{
if (refresherGuid == Guid.Empty || payload == null) return;
Current.ServerMessenger.PerformRefresh(
_serverMessenger.PerformRefresh(
GetRefresherById(refresherGuid),
payload);
}
@@ -88,23 +97,10 @@ namespace Umbraco.Web.Cache
{
if (refresherGuid == Guid.Empty || payloads == null) return;
Current.ServerMessenger.PerformRefresh(
_serverMessenger.PerformRefresh(
GetRefresherById(refresherGuid),
payloads.ToArray());
}
/// <summary>
/// Notifies the distributed cache, for a specified <see cref="ICacheRefresher"/>.
/// </summary>
/// <param name="refresherGuid">The unique identifier of the ICacheRefresher.</param>
/// <param name="jsonPayload">The notification content.</param>
public void RefreshByJson(Guid refresherGuid, string jsonPayload)
{
if (refresherGuid == Guid.Empty || jsonPayload.IsNullOrWhiteSpace()) return;
Current.ServerMessenger.PerformRefresh(
GetRefresherById(refresherGuid),
jsonPayload);
}
///// <summary>
///// Notifies the distributed cache, for a specified <see cref="ICacheRefresher"/>.
@@ -115,7 +111,7 @@ namespace Umbraco.Web.Cache
//{
// if (refresherId == Guid.Empty || payload == null) return;
// Current.ServerMessenger.Notify(
// _serverMessenger.Notify(
// Current.ServerRegistrar.Registrations,
// GetRefresherById(refresherId),
// json);
@@ -129,7 +125,7 @@ namespace Umbraco.Web.Cache
{
if (refresherGuid == Guid.Empty) return;
Current.ServerMessenger.PerformRefreshAll(
_serverMessenger.PerformRefreshAll(
GetRefresherById(refresherGuid));
}
@@ -142,7 +138,7 @@ namespace Umbraco.Web.Cache
{
if (refresherGuid == Guid.Empty || id == default(int)) return;
Current.ServerMessenger.PerformRemove(
_serverMessenger.PerformRemove(
GetRefresherById(refresherGuid),
id);
}
@@ -159,7 +155,7 @@ namespace Umbraco.Web.Cache
/// </remarks>
public void Remove<T>(Guid refresherGuid, Func<T, int> getNumericId, params T[] instances)
{
Current.ServerMessenger.PerformRemove(
_serverMessenger.PerformRemove(
GetRefresherById(refresherGuid),
getNumericId,
instances);
@@ -168,9 +164,9 @@ namespace Umbraco.Web.Cache
#endregion
// helper method to get an ICacheRefresher by its unique identifier
private static ICacheRefresher GetRefresherById(Guid refresherGuid)
private ICacheRefresher GetRefresherById(Guid refresherGuid)
{
return Current.CacheRefreshers[refresherGuid];
return _cacheRefreshers[refresherGuid];
}
}
}
@@ -1,6 +1,7 @@
using System;
using Umbraco.Core.Cache;
using Umbraco.Core.Models;
using Umbraco.Core.Serialization;
using Umbraco.Core.Services.Changes;
using Umbraco.Web.PublishedCache;
@@ -10,8 +11,8 @@ namespace Umbraco.Web.Cache
{
private readonly IPublishedSnapshotService _publishedSnapshotService;
public DomainCacheRefresher(AppCaches appCaches, IPublishedSnapshotService publishedSnapshotService)
: base(appCaches)
public DomainCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IPublishedSnapshotService publishedSnapshotService)
: base(appCaches, serializer)
{
_publishedSnapshotService = publishedSnapshotService;
}
@@ -10,34 +10,37 @@ namespace Umbraco.Core.Cache
/// <summary>
/// Implements a fast <see cref="IAppCache"/> on top of a concurrent dictionary.
/// </summary>
internal class FastDictionaryAppCache : IAppCache
public class FastDictionaryAppCache : IAppCache
{
/// <summary>
/// Gets the internal items dictionary, for tests only!
/// </summary>
internal readonly ConcurrentDictionary<string, Lazy<object>> Items = new ConcurrentDictionary<string, Lazy<object>>();
private readonly ConcurrentDictionary<string, Lazy<object>> _items = new ConcurrentDictionary<string, Lazy<object>>();
public int Count => _items.Count;
/// <inheritdoc />
public object Get(string cacheKey)
{
Items.TryGetValue(cacheKey, out var result); // else null
return result == null ? null : FastDictionaryAppCacheBase.GetSafeLazyValue(result); // return exceptions as null
_items.TryGetValue(cacheKey, out var result); // else null
return result == null ? null : SafeLazy.GetSafeLazyValue(result); // return exceptions as null
}
/// <inheritdoc />
public object Get(string cacheKey, Func<object> getCacheItem)
{
var result = Items.GetOrAdd(cacheKey, k => FastDictionaryAppCacheBase.GetSafeLazy(getCacheItem));
var result = _items.GetOrAdd(cacheKey, k => SafeLazy.GetSafeLazy(getCacheItem));
var value = result.Value; // will not throw (safe lazy)
if (!(value is FastDictionaryAppCacheBase.ExceptionHolder eh))
if (!(value is SafeLazy.ExceptionHolder eh))
return value;
// and... it's in the cache anyway - so contrary to other cache providers,
// which would trick with GetSafeLazyValue, we need to remove by ourselves,
// in order NOT to cache exceptions
Items.TryRemove(cacheKey, out result);
_items.TryRemove(cacheKey, out result);
eh.Exception.Throw(); // throw once!
return null; // never reached
}
@@ -45,9 +48,9 @@ namespace Umbraco.Core.Cache
/// <inheritdoc />
public IEnumerable<object> SearchByKey(string keyStartsWith)
{
return Items
return _items
.Where(kvp => kvp.Key.InvariantStartsWith(keyStartsWith))
.Select(kvp => FastDictionaryAppCacheBase.GetSafeLazyValue(kvp.Value))
.Select(kvp => SafeLazy.GetSafeLazyValue(kvp.Value))
.Where(x => x != null);
}
@@ -55,44 +58,43 @@ namespace Umbraco.Core.Cache
public IEnumerable<object> SearchByRegex(string regex)
{
var compiled = new Regex(regex, RegexOptions.Compiled);
return Items
return _items
.Where(kvp => compiled.IsMatch(kvp.Key))
.Select(kvp => FastDictionaryAppCacheBase.GetSafeLazyValue(kvp.Value))
.Select(kvp => SafeLazy.GetSafeLazyValue(kvp.Value))
.Where(x => x != null);
}
/// <inheritdoc />
public void Clear()
{
Items.Clear();
_items.Clear();
}
/// <inheritdoc />
public void Clear(string key)
{
Items.TryRemove(key, out _);
_items.TryRemove(key, out _);
}
/// <inheritdoc />
public void ClearOfType(string typeName)
public void ClearOfType(Type type)
{
var type = TypeFinder.GetTypeByName(typeName);
if (type == null) return;
var isInterface = type.IsInterface;
foreach (var kvp in Items
foreach (var kvp in _items
.Where(x =>
{
// entry.Value is Lazy<object> and not null, its value may be null
// remove null values as well, does not hurt
// get non-created as NonCreatedValue & exceptions as null
var value = FastDictionaryAppCacheBase.GetSafeLazyValue(x.Value, true);
var value = SafeLazy.GetSafeLazyValue(x.Value, true);
// if T is an interface remove anything that implements that interface
// otherwise remove exact types (not inherited types)
return value == null || (isInterface ? (type.IsInstanceOfType(value)) : (value.GetType() == type));
}))
Items.TryRemove(kvp.Key, out _);
_items.TryRemove(kvp.Key, out _);
}
/// <inheritdoc />
@@ -101,20 +103,20 @@ namespace Umbraco.Core.Cache
var typeOfT = typeof(T);
var isInterface = typeOfT.IsInterface;
foreach (var kvp in Items
foreach (var kvp in _items
.Where(x =>
{
// entry.Value is Lazy<object> and not null, its value may be null
// remove null values as well, does not hurt
// compare on exact type, don't use "is"
// get non-created as NonCreatedValue & exceptions as null
var value = FastDictionaryAppCacheBase.GetSafeLazyValue(x.Value, true);
var value = SafeLazy.GetSafeLazyValue(x.Value, true);
// if T is an interface remove anything that implements that interface
// otherwise remove exact types (not inherited types)
return value == null || (isInterface ? (value is T) : (value.GetType() == typeOfT));
}))
Items.TryRemove(kvp.Key, out _);
_items.TryRemove(kvp.Key, out _);
}
/// <inheritdoc />
@@ -123,14 +125,14 @@ namespace Umbraco.Core.Cache
var typeOfT = typeof(T);
var isInterface = typeOfT.IsInterface;
foreach (var kvp in Items
foreach (var kvp in _items
.Where(x =>
{
// entry.Value is Lazy<object> and not null, its value may be null
// remove null values as well, does not hurt
// compare on exact type, don't use "is"
// get non-created as NonCreatedValue & exceptions as null
var value = FastDictionaryAppCacheBase.GetSafeLazyValue(x.Value, true);
var value = SafeLazy.GetSafeLazyValue(x.Value, true);
if (value == null) return true;
// if T is an interface remove anything that implements that interface
@@ -139,24 +141,24 @@ namespace Umbraco.Core.Cache
// run predicate on the 'public key' part only, ie without prefix
&& predicate(x.Key, (T)value);
}))
Items.TryRemove(kvp.Key, out _);
_items.TryRemove(kvp.Key, out _);
}
/// <inheritdoc />
public void ClearByKey(string keyStartsWith)
{
foreach (var ikvp in Items
foreach (var ikvp in _items
.Where(kvp => kvp.Key.InvariantStartsWith(keyStartsWith)))
Items.TryRemove(ikvp.Key, out _);
_items.TryRemove(ikvp.Key, out _);
}
/// <inheritdoc />
public void ClearByRegex(string regex)
{
var compiled = new Regex(regex, RegexOptions.Compiled);
foreach (var ikvp in Items
foreach (var ikvp in _items
.Where(kvp => compiled.IsMatch(kvp.Key)))
Items.TryRemove(ikvp.Key, out _);
_items.TryRemove(ikvp.Key, out _);
}
}
}
@@ -2,7 +2,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Text.RegularExpressions;
using Umbraco.Core.Composing;
@@ -11,14 +10,11 @@ namespace Umbraco.Core.Cache
/// <summary>
/// Provides a base class to fast, dictionary-based <see cref="IAppCache"/> implementations.
/// </summary>
internal abstract class FastDictionaryAppCacheBase : IAppCache
public abstract class FastDictionaryAppCacheBase : IAppCache
{
// prefix cache keys so we know which one are ours
protected const string CacheItemPrefix = "umbrtmche";
// an object that represent a value that has not been created yet
protected internal static readonly object ValueNotCreated = new object();
#region IAppCache
/// <inheritdoc />
@@ -35,7 +31,7 @@ namespace Umbraco.Core.Cache
{
ExitReadLock();
}
return result == null ? null : GetSafeLazyValue(result); // return exceptions as null
return result == null ? null : SafeLazy.GetSafeLazyValue(result); // return exceptions as null
}
/// <inheritdoc />
@@ -59,7 +55,7 @@ namespace Umbraco.Core.Cache
}
return entries
.Select(x => GetSafeLazyValue((Lazy<object>)x.Value)) // return exceptions as null
.Select(x => SafeLazy.GetSafeLazyValue((Lazy<object>)x.Value)) // return exceptions as null
.Where(x => x != null); // backward compat, don't store null values in the cache
}
@@ -82,7 +78,7 @@ namespace Umbraco.Core.Cache
ExitReadLock();
}
return entries
.Select(x => GetSafeLazyValue((Lazy<object>)x.Value)) // return exceptions as null
.Select(x => SafeLazy.GetSafeLazyValue((Lazy<object>)x.Value)) // return exceptions as null
.Where(x => x != null); // backward compatible, don't store null values in the cache
}
@@ -118,9 +114,8 @@ namespace Umbraco.Core.Cache
}
/// <inheritdoc />
public virtual void ClearOfType(string typeName)
public virtual void ClearOfType(Type type)
{
var type = TypeFinder.GetTypeByName(typeName);
if (type == null) return;
var isInterface = type.IsInterface;
try
@@ -132,7 +127,7 @@ namespace Umbraco.Core.Cache
// entry.Value is Lazy<object> and not null, its value may be null
// remove null values as well, does not hurt
// get non-created as NonCreatedValue & exceptions as null
var value = GetSafeLazyValue((Lazy<object>) x.Value, true);
var value = SafeLazy.GetSafeLazyValue((Lazy<object>) x.Value, true);
// if T is an interface remove anything that implements that interface
// otherwise remove exact types (not inherited types)
@@ -162,7 +157,7 @@ namespace Umbraco.Core.Cache
// remove null values as well, does not hurt
// compare on exact type, don't use "is"
// get non-created as NonCreatedValue & exceptions as null
var value = GetSafeLazyValue((Lazy<object>) x.Value, true);
var value = SafeLazy.GetSafeLazyValue((Lazy<object>) x.Value, true);
// if T is an interface remove anything that implements that interface
// otherwise remove exact types (not inherited types)
@@ -193,7 +188,7 @@ namespace Umbraco.Core.Cache
// remove null values as well, does not hurt
// compare on exact type, don't use "is"
// get non-created as NonCreatedValue & exceptions as null
var value = GetSafeLazyValue((Lazy<object>) x.Value, true);
var value = SafeLazy.GetSafeLazyValue((Lazy<object>) x.Value, true);
if (value == null) return true;
// if T is an interface remove anything that implements that interface
@@ -272,57 +267,7 @@ namespace Umbraco.Core.Cache
return $"{CacheItemPrefix}-{key}";
}
protected internal static Lazy<object> GetSafeLazy(Func<object> getCacheItem)
{
// try to generate the value and if it fails,
// wrap in an ExceptionHolder - would be much simpler
// to just use lazy.IsValueFaulted alas that field is
// internal
return new Lazy<object>(() =>
{
try
{
return getCacheItem();
}
catch (Exception e)
{
return new ExceptionHolder(ExceptionDispatchInfo.Capture(e));
}
});
}
protected internal static object GetSafeLazyValue(Lazy<object> lazy, bool onlyIfValueIsCreated = false)
{
// if onlyIfValueIsCreated, do not trigger value creation
// must return something, though, to differentiate from null values
if (onlyIfValueIsCreated && lazy.IsValueCreated == false) return ValueNotCreated;
// if execution has thrown then lazy.IsValueCreated is false
// and lazy.IsValueFaulted is true (but internal) so we use our
// own exception holder (see Lazy<T> source code) to return null
if (lazy.Value is ExceptionHolder) return null;
// we have a value and execution has not thrown so returning
// here does not throw - unless we're re-entering, take care of it
try
{
return lazy.Value;
}
catch (InvalidOperationException e)
{
throw new InvalidOperationException("The method that computes a value for the cache has tried to read that value from the cache.", e);
}
}
internal class ExceptionHolder
{
public ExceptionHolder(ExceptionDispatchInfo e)
{
Exception = e;
}
public ExceptionDispatchInfo Exception { get; }
}
#endregion
}
@@ -0,0 +1,190 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using Umbraco.Core.Composing;
namespace Umbraco.Core.Cache
{
/// <summary>
/// Implements a fast <see cref="IAppCache"/> on top of HttpContext.Items.
/// </summary>
/// <remarks>
/// <para>If no current HttpContext items can be found (no current HttpContext,
/// or no Items...) then this cache acts as a pass-through and does not cache
/// anything.</para>
/// </remarks>
public class GenericDictionaryRequestAppCache : FastDictionaryAppCacheBase, IRequestCache
{
/// <summary>
/// Initializes a new instance of the <see cref="HttpRequestAppCache"/> class with a context, for unit tests!
/// </summary>
public GenericDictionaryRequestAppCache(Func<IDictionary<object, object>> requestItems) : base()
{
ContextItems = requestItems;
}
private Func<IDictionary<object, object>> ContextItems { get; }
public bool IsAvailable => TryGetContextItems(out _);
private bool TryGetContextItems(out IDictionary<object, object> items)
{
items = ContextItems?.Invoke();
return items != null;
}
/// <inheritdoc />
public override object Get(string key, Func<object> factory)
{
//no place to cache so just return the callback result
if (!TryGetContextItems(out var items)) return factory();
key = GetCacheKey(key);
Lazy<object> result;
try
{
EnterWriteLock();
result = items[key] as Lazy<object>; // null if key not found
// cannot create value within the lock, so if result.IsValueCreated is false, just
// do nothing here - means that if creation throws, a race condition could cause
// more than one thread to reach the return statement below and throw - accepted.
if (result == null || SafeLazy.GetSafeLazyValue(result, true) == null) // get non-created as NonCreatedValue & exceptions as null
{
result = SafeLazy.GetSafeLazy(factory);
items[key] = result;
}
}
finally
{
ExitWriteLock();
}
// using GetSafeLazy and GetSafeLazyValue ensures that we don't cache
// exceptions (but try again and again) and silently eat them - however at
// some point we have to report them - so need to re-throw here
// this does not throw anymore
//return result.Value;
var value = result.Value; // will not throw (safe lazy)
if (value is SafeLazy.ExceptionHolder eh) eh.Exception.Throw(); // throw once!
return value;
}
public bool Set(string key, object value)
{
//no place to cache so just return the callback result
if (!TryGetContextItems(out var items)) return false;
key = GetCacheKey(key);
try
{
EnterWriteLock();
items[key] = SafeLazy.GetSafeLazy(() => value);
}
finally
{
ExitWriteLock();
}
return true;
}
public bool Remove(string key)
{
//no place to cache so just return the callback result
if (!TryGetContextItems(out var items)) return false;
key = GetCacheKey(key);
try
{
EnterWriteLock();
items.Remove(key);
}
finally
{
ExitWriteLock();
}
return true;
}
#region Entries
protected override IEnumerable<DictionaryEntry> GetDictionaryEntries()
{
const string prefix = CacheItemPrefix + "-";
if (!TryGetContextItems(out var items)) return Enumerable.Empty<DictionaryEntry>();
return items.Cast<DictionaryEntry>()
.Where(x => x.Key is string s && s.StartsWith(prefix));
}
protected override void RemoveEntry(string key)
{
if (!TryGetContextItems(out var items)) return;
items.Remove(key);
}
protected override object GetEntry(string key)
{
return !TryGetContextItems(out var items) ? null : items[key];
}
#endregion
#region Lock
private const string ContextItemsLockKey = "Umbraco.Core.Cache.HttpRequestCache::LockEntered";
protected override void EnterReadLock() => EnterWriteLock();
protected override void EnterWriteLock()
{
if (!TryGetContextItems(out var items)) return;
// note: cannot keep 'entered' as a class variable here,
// since there is one per request - so storing it within
// ContextItems - which is locked, so this should be safe
var entered = false;
Monitor.Enter(items, ref entered);
items[ContextItemsLockKey] = entered;
}
protected override void ExitReadLock() => ExitWriteLock();
protected override void ExitWriteLock()
{
if (!TryGetContextItems(out var items)) return;
var entered = (bool?)items[ContextItemsLockKey] ?? false;
if (entered)
Monitor.Exit(items);
items.Remove(ContextItemsLockKey);
}
#endregion
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
{
if (!TryGetContextItems(out var items))
{
yield break;
}
foreach (var item in items)
{
yield return new KeyValuePair<string, object>(item.Key.ToString(), item.Value);
}
}
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
}
}
+86 -40
View File
@@ -3,7 +3,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Web;
using Umbraco.Core.Composing;
namespace Umbraco.Core.Cache
{
@@ -15,37 +15,31 @@ namespace Umbraco.Core.Cache
/// or no Items...) then this cache acts as a pass-through and does not cache
/// anything.</para>
/// </remarks>
internal class HttpRequestAppCache : FastDictionaryAppCacheBase
public class HttpRequestAppCache : FastDictionaryAppCacheBase, IRequestCache
{
private readonly HttpContextBase _context;
/// <summary>
/// Initializes a new instance of the <see cref="HttpRequestAppCache"/> class with a context, for unit tests!
/// </summary>
public HttpRequestAppCache(HttpContextBase context)
public HttpRequestAppCache(Func<IDictionary> requestItems) : base()
{
_context = context;
ContextItems = requestItems;
}
/// <summary>
/// Initializes a new instance of the <see cref="HttpRequestAppCache"/> class.
/// </summary>
/// <remarks>
/// <para>Will use HttpContext.Current.</para>
/// TODO: https://github.com/umbraco/Umbraco-CMS/issues/4239 - use IHttpContextAccessor NOT HttpContext.Current
/// </remarks>
public HttpRequestAppCache()
{ }
private Func<IDictionary> ContextItems { get; }
private IDictionary ContextItems => _context?.Items ?? HttpContext.Current?.Items;
public bool IsAvailable => TryGetContextItems(out _);
private bool HasContextItems => _context?.Items != null || HttpContext.Current != null;
private bool TryGetContextItems(out IDictionary items)
{
items = ContextItems?.Invoke();
return items != null;
}
/// <inheritdoc />
public override object Get(string key, Func<object> factory)
{
//no place to cache so just return the callback result
if (HasContextItems == false) return factory();
if (!TryGetContextItems(out var items)) return factory();
key = GetCacheKey(key);
@@ -54,16 +48,16 @@ namespace Umbraco.Core.Cache
try
{
EnterWriteLock();
result = ContextItems[key] as Lazy<object>; // null if key not found
result = items[key] as Lazy<object>; // null if key not found
// cannot create value within the lock, so if result.IsValueCreated is false, just
// do nothing here - means that if creation throws, a race condition could cause
// more than one thread to reach the return statement below and throw - accepted.
if (result == null || GetSafeLazyValue(result, true) == null) // get non-created as NonCreatedValue & exceptions as null
if (result == null || SafeLazy.GetSafeLazyValue(result, true) == null) // get non-created as NonCreatedValue & exceptions as null
{
result = GetSafeLazy(factory);
ContextItems[key] = result;
result = SafeLazy.GetSafeLazy(factory);
items[key] = result;
}
}
finally
@@ -79,32 +73,68 @@ namespace Umbraco.Core.Cache
//return result.Value;
var value = result.Value; // will not throw (safe lazy)
if (value is ExceptionHolder eh) eh.Exception.Throw(); // throw once!
if (value is SafeLazy.ExceptionHolder eh) eh.Exception.Throw(); // throw once!
return value;
}
public bool Set(string key, object value)
{
//no place to cache so just return the callback result
if (!TryGetContextItems(out var items)) return false;
key = GetCacheKey(key);
try
{
EnterWriteLock();
items[key] = SafeLazy.GetSafeLazy(() => value);
}
finally
{
ExitWriteLock();
}
return true;
}
public bool Remove(string key)
{
//no place to cache so just return the callback result
if (!TryGetContextItems(out var items)) return false;
key = GetCacheKey(key);
try
{
EnterWriteLock();
items.Remove(key);
}
finally
{
ExitWriteLock();
}
return true;
}
#region Entries
protected override IEnumerable<DictionaryEntry> GetDictionaryEntries()
{
const string prefix = CacheItemPrefix + "-";
if (HasContextItems == false) return Enumerable.Empty<DictionaryEntry>();
if (!TryGetContextItems(out var items)) return Enumerable.Empty<DictionaryEntry>();
return ContextItems.Cast<DictionaryEntry>()
return items.Cast<DictionaryEntry>()
.Where(x => x.Key is string s && s.StartsWith(prefix));
}
protected override void RemoveEntry(string key)
{
if (HasContextItems == false) return;
if (!TryGetContextItems(out var items)) return;
ContextItems.Remove(key);
items.Remove(key);
}
protected override object GetEntry(string key)
{
return HasContextItems ? ContextItems[key] : null;
return !TryGetContextItems(out var items) ? null : items[key];
}
#endregion
@@ -117,28 +147,44 @@ namespace Umbraco.Core.Cache
protected override void EnterWriteLock()
{
if (HasContextItems)
{
// note: cannot keep 'entered' as a class variable here,
// since there is one per request - so storing it within
// ContextItems - which is locked, so this should be safe
if (!TryGetContextItems(out var items)) return;
var entered = false;
Monitor.Enter(ContextItems.SyncRoot, ref entered);
ContextItems[ContextItemsLockKey] = entered;
}
// note: cannot keep 'entered' as a class variable here,
// since there is one per request - so storing it within
// ContextItems - which is locked, so this should be safe
var entered = false;
Monitor.Enter(items.SyncRoot, ref entered);
items[ContextItemsLockKey] = entered;
}
protected override void ExitReadLock() => ExitWriteLock();
protected override void ExitWriteLock()
{
var entered = (bool?) ContextItems[ContextItemsLockKey] ?? false;
if (!TryGetContextItems(out var items)) return;
var entered = (bool?)items[ContextItemsLockKey] ?? false;
if (entered)
Monitor.Exit(ContextItems.SyncRoot);
ContextItems.Remove(ContextItemsLockKey);
Monitor.Exit(items.SyncRoot);
items.Remove(ContextItemsLockKey);
}
#endregion
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
{
if (!TryGetContextItems(out var items))
{
yield break;
}
foreach (DictionaryEntry item in items)
{
yield return new KeyValuePair<string, object>(item.Key.ToString(), item.Value);
}
}
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
}
}
+2 -2
View File
@@ -51,14 +51,14 @@ namespace Umbraco.Core.Cache
/// <summary>
/// Removes items of a specified type from the cache.
/// </summary>
/// <param name="typeName">The name of the type to remove.</param>
/// <param name="type">The type to remove.</param>
/// <remarks>
/// <para>If the type is an interface, then all items of a type implementing that interface are
/// removed. Otherwise, only items of that exact type are removed (items of type inheriting from
/// the specified type are not removed).</para>
/// <para>Performs a case-sensitive search.</para>
/// </remarks>
void ClearOfType(string typeName);
void ClearOfType(Type type);
/// <summary>
/// Removes items of a specified type from the cache.
@@ -1,5 +1,4 @@
using System;
using System.Web.Caching;
namespace Umbraco.Core.Cache
{
@@ -17,8 +16,6 @@ namespace Umbraco.Core.Cache
/// <param name="factory">A factory function that can create the item.</param>
/// <param name="timeout">An optional cache timeout.</param>
/// <param name="isSliding">An optional value indicating whether the cache timeout is sliding (default is false).</param>
/// <param name="priority">An optional cache priority (default is Normal).</param>
/// <param name="removedCallback">An optional callback to handle removals.</param>
/// <param name="dependentFiles">Files the cache entry depends on.</param>
/// <returns>The item.</returns>
object Get(
@@ -26,8 +23,6 @@ namespace Umbraco.Core.Cache
Func<object> factory,
TimeSpan? timeout,
bool isSliding = false,
CacheItemPriority priority = CacheItemPriority.Normal,
CacheItemRemovedCallback removedCallback = null,
string[] dependentFiles = null);
/// <summary>
@@ -37,16 +32,12 @@ namespace Umbraco.Core.Cache
/// <param name="factory">A factory function that can create the item.</param>
/// <param name="timeout">An optional cache timeout.</param>
/// <param name="isSliding">An optional value indicating whether the cache timeout is sliding (default is false).</param>
/// <param name="priority">An optional cache priority (default is Normal).</param>
/// <param name="removedCallback">An optional callback to handle removals.</param>
/// <param name="dependentFiles">Files the cache entry depends on.</param>
void Insert(
string key,
Func<object> factory,
TimeSpan? timeout = null,
bool isSliding = false,
CacheItemPriority priority = CacheItemPriority.Normal,
CacheItemRemovedCallback removedCallback = null,
string[] dependentFiles = null);
}
}
+1 -1
View File
@@ -25,7 +25,7 @@ namespace Umbraco.Core.Cache
/// This is much better for performance when we're not running in a load balanced environment so we can refresh the cache
/// against a already resolved object instead of looking the object back up by id.
/// </remarks>
interface ICacheRefresher<T> : ICacheRefresher
public interface ICacheRefresher<T> : ICacheRefresher
{
void Refresh(T instance);
void Remove(T instance);
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using Umbraco.Core.Events;
using Umbraco.Core.Services.Implement;
namespace Umbraco.Web.Cache
{
@@ -3,7 +3,7 @@
/// <summary>
/// A cache refresher that supports refreshing or removing cache based on a custom Json payload
/// </summary>
interface IJsonCacheRefresher : ICacheRefresher
public interface IJsonCacheRefresher : ICacheRefresher
{
/// <summary>
/// Refreshes, clears, etc... any cache based on the information provided in the json
@@ -3,7 +3,7 @@
/// <summary>
/// A cache refresher that supports refreshing cache based on a custom payload
/// </summary>
interface IPayloadCacheRefresher<TPayload> : IJsonCacheRefresher
public interface IPayloadCacheRefresher<TPayload> : IJsonCacheRefresher
{
/// <summary>
/// Refreshes, clears, etc... any cache based on the information provided in the payload
@@ -5,7 +5,7 @@ using Umbraco.Core.Scoping;
namespace Umbraco.Core.Cache
{
internal interface IRepositoryCachePolicy<TEntity, TId>
public interface IRepositoryCachePolicy<TEntity, TId>
where TEntity : class, IEntity
{
/// <summary>
+15
View File
@@ -0,0 +1,15 @@
using System.Collections.Generic;
namespace Umbraco.Core.Cache
{
public interface IRequestCache : IAppCache, IEnumerable<KeyValuePair<string, object>>
{
bool Set(string key, object value);
bool Remove(string key);
/// <summary>
/// Returns true if the request cache is available otherwise false
/// </summary>
bool IsAvailable { get; }
}
}
@@ -1,4 +1,5 @@
using Umbraco.Core.Sync;
using Umbraco.Core.Serialization;
using Umbraco.Core.Sync;
namespace Umbraco.Core.Cache
{
@@ -7,15 +8,19 @@ namespace Umbraco.Core.Cache
/// </summary>
/// <typeparam name="TInstanceType">The actual cache refresher type.</typeparam>
/// <remarks>The actual cache refresher type is used for strongly typed events.</remarks>
public abstract class JsonCacheRefresherBase<TInstanceType> : CacheRefresherBase<TInstanceType>, IJsonCacheRefresher
public abstract class JsonCacheRefresherBase<TInstanceType, TJsonPayload> : CacheRefresherBase<TInstanceType>, IJsonCacheRefresher
where TInstanceType : class, ICacheRefresher
{
protected IJsonSerializer JsonSerializer { get; }
/// <summary>
/// Initializes a new instance of the <see cref="JsonCacheRefresherBase{TInstanceType}"/>.
/// </summary>
/// <param name="appCaches">A cache helper.</param>
protected JsonCacheRefresherBase(AppCaches appCaches) : base(appCaches)
{ }
protected JsonCacheRefresherBase(AppCaches appCaches, IJsonSerializer jsonSerializer) : base(appCaches)
{
JsonSerializer = jsonSerializer;
}
/// <summary>
/// Refreshes as specified by a json payload.
@@ -25,5 +30,24 @@ namespace Umbraco.Core.Cache
{
OnCacheUpdated(This, new CacheRefresherEventArgs(json, MessageType.RefreshByJson));
}
#region Json
/// <summary>
/// Deserializes a json payload into an object payload.
/// </summary>
/// <param name="json">The json payload.</param>
/// <returns>The deserialized object payload.</returns>
public TJsonPayload[] Deserialize(string json)
{
return JsonSerializer.Deserialize<TJsonPayload[]>(json);
}
public string Serialize(params TJsonPayload[] jsonPayloads)
{
return JsonSerializer.Serialize(jsonPayloads);
}
#endregion
}
}
@@ -2,6 +2,7 @@
using System.Linq;
using Umbraco.Core.Cache;
using Umbraco.Core.Models;
using Umbraco.Core.Serialization;
using Umbraco.Core.Services;
using Umbraco.Core.Services.Changes;
using Umbraco.Web.PublishedCache;
@@ -10,11 +11,9 @@ using static Umbraco.Web.Cache.LanguageCacheRefresher.JsonPayload;
namespace Umbraco.Web.Cache
{
public sealed class LanguageCacheRefresher : PayloadCacheRefresherBase<LanguageCacheRefresher, LanguageCacheRefresher.JsonPayload>
//CacheRefresherBase<LanguageCacheRefresher>
{
public LanguageCacheRefresher(AppCaches appCaches, IPublishedSnapshotService publishedSnapshotService)
: base(appCaches)
public LanguageCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IPublishedSnapshotService publishedSnapshotService)
: base(appCaches, serializer)
{
_publishedSnapshotService = publishedSnapshotService;
}
@@ -1,19 +1,19 @@
using System;
using Umbraco.Core;
using Umbraco.Core.Cache;
using Umbraco.Core.Models;
using Umbraco.Core.Persistence.Repositories;
using System.Linq;
using Newtonsoft.Json;
using Umbraco.Core.Persistence.Repositories.Implement;
using Umbraco.Core.Serialization;
namespace Umbraco.Web.Cache
{
public sealed class MacroCacheRefresher : JsonCacheRefresherBase<MacroCacheRefresher>
public sealed class MacroCacheRefresher : PayloadCacheRefresherBase<MacroCacheRefresher, MacroCacheRefresher.JsonPayload>
{
public MacroCacheRefresher(AppCaches appCaches)
: base(appCaches)
{ }
public MacroCacheRefresher(AppCaches appCaches, IJsonSerializer jsonSerializer)
: base(appCaches, jsonSerializer)
{
}
#region Define
@@ -57,7 +57,6 @@ namespace Umbraco.Web.Cache
base.Refresh(json);
}
#endregion
#region Json
@@ -75,21 +74,6 @@ namespace Umbraco.Web.Cache
public string Alias { get; }
}
private static JsonPayload[] Deserialize(string json)
{
return JsonConvert.DeserializeObject<JsonPayload[]>(json);
}
internal static string Serialize(params Macro[] macros)
{
return JsonConvert.SerializeObject(macros.Select(x => new JsonPayload(x.Id, x.Alias)).ToArray());
}
internal static string Serialize(params IMacro[] macros)
{
return JsonConvert.SerializeObject(macros.Select(x => new JsonPayload(x.Id, x.Alias)).ToArray());
}
#endregion
#region Helpers
@@ -2,13 +2,10 @@
using Umbraco.Core;
using Umbraco.Core.Cache;
using Umbraco.Core.Models;
using Umbraco.Core.Persistence.Repositories;
using System.Linq;
using System.Xml.Linq;
using Umbraco.Core.Persistence.Repositories.Implement;
using Umbraco.Core.Serialization;
using Umbraco.Core.Services;
using Umbraco.Core.Services.Changes;
using Umbraco.Web.Composing;
using Umbraco.Web.PublishedCache;
namespace Umbraco.Web.Cache
@@ -16,13 +13,13 @@ namespace Umbraco.Web.Cache
public sealed class MediaCacheRefresher : PayloadCacheRefresherBase<MediaCacheRefresher, MediaCacheRefresher.JsonPayload>
{
private readonly IPublishedSnapshotService _publishedSnapshotService;
private readonly IdkMap _idkMap;
private readonly IIdKeyMap _idKeyMap;
public MediaCacheRefresher(AppCaches appCaches, IPublishedSnapshotService publishedSnapshotService, IdkMap idkMap)
: base(appCaches)
public MediaCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IPublishedSnapshotService publishedSnapshotService, IIdKeyMap idKeyMap)
: base(appCaches, serializer)
{
_publishedSnapshotService = publishedSnapshotService;
_idkMap = idkMap;
_idKeyMap = idKeyMap;
}
#region Define
@@ -47,14 +44,14 @@ namespace Umbraco.Web.Cache
if (anythingChanged)
{
Current.AppCaches.ClearPartialViewCache();
AppCaches.ClearPartialViewCache();
var mediaCache = AppCaches.IsolatedCaches.Get<IMedia>();
foreach (var payload in payloads)
{
if (payload.ChangeTypes == TreeChangeTypes.Remove)
_idkMap.ClearCache(payload.Id);
_idKeyMap.ClearCache(payload.Id);
if (!mediaCache) continue;
@@ -1,29 +1,29 @@
using Newtonsoft.Json;
//using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using Umbraco.Core;
using Umbraco.Core.Cache;
using Umbraco.Core.Models;
using Umbraco.Core.Persistence.Repositories;
using Umbraco.Core.Persistence.Repositories.Implement;
using Umbraco.Core.Serialization;
using Umbraco.Core.Services;
namespace Umbraco.Web.Cache
{
public sealed class MemberCacheRefresher : PayloadCacheRefresherBase<MemberCacheRefresher, MemberCacheRefresher.JsonPayload>
{
private readonly IdkMap _idkMap;
private readonly IIdKeyMap _idKeyMap;
private readonly LegacyMemberCacheRefresher _legacyMemberRefresher;
public MemberCacheRefresher(AppCaches appCaches, IdkMap idkMap)
: base(appCaches)
public MemberCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IIdKeyMap idKeyMap)
: base(appCaches, serializer)
{
_idkMap = idkMap;
_idKeyMap = idKeyMap;
_legacyMemberRefresher = new LegacyMemberCacheRefresher(this, appCaches);
}
public class JsonPayload
public class JsonPayload
{
[JsonConstructor]
//[JsonConstructor]
public JsonPayload(int id, string username)
{
Id = id;
@@ -32,7 +32,6 @@ namespace Umbraco.Web.Cache
public int Id { get; }
public string Username { get; }
}
#region Define
@@ -80,14 +79,14 @@ namespace Umbraco.Web.Cache
foreach (var p in payloads)
{
_idkMap.ClearCache(p.Id);
_idKeyMap.ClearCache(p.Id);
if (memberCache)
{
memberCache.Result.Clear(RepositoryCacheKeys.GetKey<IMember>(p.Id));
memberCache.Result.Clear(RepositoryCacheKeys.GetKey<IMember>(p.Username));
}
}
}
}
#endregion
@@ -1,16 +1,18 @@
using System;
using System.Linq;
using Newtonsoft.Json;
using Umbraco.Core.Cache;
using Umbraco.Core.Models;
using Umbraco.Core.Serialization;
namespace Umbraco.Web.Cache
{
public sealed class MemberGroupCacheRefresher : JsonCacheRefresherBase<MemberGroupCacheRefresher>
public sealed class MemberGroupCacheRefresher : PayloadCacheRefresherBase<MemberGroupCacheRefresher, MemberGroupCacheRefresher.JsonPayload>
{
public MemberGroupCacheRefresher(AppCaches appCaches)
: base(appCaches)
{ }
public MemberGroupCacheRefresher(AppCaches appCaches, IJsonSerializer jsonSerializer)
: base(appCaches, jsonSerializer)
{
}
#region Define
@@ -68,15 +70,6 @@ namespace Umbraco.Web.Cache
public int Id { get; }
}
private JsonPayload[] Deserialize(string json)
{
return JsonConvert.DeserializeObject<JsonPayload[]>(json);
}
internal static string Serialize(params IMemberGroup[] groups)
{
return JsonConvert.SerializeObject(groups.Select(x => new JsonPayload(x.Id, x.Name)).ToArray());
}
#endregion
}
+17 -6
View File
@@ -1,22 +1,25 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web.Caching;
namespace Umbraco.Core.Cache
{
/// <summary>
/// Implements <see cref="IAppPolicyCache"/> and do not cache.
/// </summary>
public class NoAppCache : IAppPolicyCache
public class NoAppCache : IAppPolicyCache, IRequestCache
{
private NoAppCache() { }
protected NoAppCache() { }
/// <summary>
/// Gets the singleton instance.
/// </summary>
public static NoAppCache Instance { get; } = new NoAppCache();
/// <inheritdoc />
public bool IsAvailable => false;
/// <inheritdoc />
public virtual object Get(string cacheKey)
{
@@ -29,6 +32,10 @@ namespace Umbraco.Core.Cache
return factory();
}
public bool Set(string key, object value) => false;
public bool Remove(string key) => false;
/// <inheritdoc />
public virtual IEnumerable<object> SearchByKey(string keyStartsWith)
{
@@ -42,13 +49,13 @@ namespace Umbraco.Core.Cache
}
/// <inheritdoc />
public object Get(string key, Func<object> factory, TimeSpan? timeout, bool isSliding = false, CacheItemPriority priority = CacheItemPriority.Normal, CacheItemRemovedCallback removedCallback = null, string[] dependentFiles = null)
public object Get(string key, Func<object> factory, TimeSpan? timeout, bool isSliding = false, string[] dependentFiles = null)
{
return factory();
}
/// <inheritdoc />
public void Insert(string key, Func<object> factory, TimeSpan? timeout = null, bool isSliding = false, CacheItemPriority priority = CacheItemPriority.Normal, CacheItemRemovedCallback removedCallback = null, string[] dependentFiles = null)
public void Insert(string key, Func<object> factory, TimeSpan? timeout = null, bool isSliding = false, string[] dependentFiles = null)
{ }
/// <inheritdoc />
@@ -60,7 +67,7 @@ namespace Umbraco.Core.Cache
{ }
/// <inheritdoc />
public virtual void ClearOfType(string typeName)
public virtual void ClearOfType(Type type)
{ }
/// <inheritdoc />
@@ -78,5 +85,9 @@ namespace Umbraco.Core.Cache
/// <inheritdoc />
public virtual void ClearByRegex(string regex)
{ }
public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => new Dictionary<string, object>().GetEnumerator();
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
}
}
@@ -5,7 +5,7 @@ using Umbraco.Core.Models.Entities;
namespace Umbraco.Core.Cache
{
internal class NoCacheRepositoryCachePolicy<TEntity, TId> : IRepositoryCachePolicy<TEntity, TId>
public class NoCacheRepositoryCachePolicy<TEntity, TId> : IRepositoryCachePolicy<TEntity, TId>
where TEntity : class, IEntity
{
private NoCacheRepositoryCachePolicy() { }
+17 -48
View File
@@ -4,9 +4,7 @@ using System.Linq;
using System.Runtime.Caching;
using System.Text.RegularExpressions;
using System.Threading;
using System.Web.Caching;
using Umbraco.Core.Composing;
using CacheItemPriority = System.Web.Caching.CacheItemPriority;
namespace Umbraco.Core.Cache
{
@@ -31,7 +29,7 @@ namespace Umbraco.Core.Cache
/// <summary>
/// Gets the internal memory cache, for tests only!
/// </summary>
internal ObjectCache MemoryCache { get; private set; }
public ObjectCache MemoryCache { get; private set; }
/// <inheritdoc />
public object Get(string key)
@@ -47,7 +45,7 @@ namespace Umbraco.Core.Cache
if (_locker.IsReadLockHeld)
_locker.ExitReadLock();
}
return result == null ? null : FastDictionaryAppCacheBase.GetSafeLazyValue(result); // return exceptions as null
return result == null ? null : SafeLazy.GetSafeLazyValue(result); // return exceptions as null
}
/// <inheritdoc />
@@ -73,7 +71,7 @@ namespace Umbraco.Core.Cache
_locker.ExitReadLock();
}
return entries
.Select(x => FastDictionaryAppCacheBase.GetSafeLazyValue((Lazy<object>)x.Value)) // return exceptions as null
.Select(x => SafeLazy.GetSafeLazyValue((Lazy<object>)x.Value)) // return exceptions as null
.Where(x => x != null) // backward compat, don't store null values in the cache
.ToList();
}
@@ -97,13 +95,13 @@ namespace Umbraco.Core.Cache
_locker.ExitReadLock();
}
return entries
.Select(x => FastDictionaryAppCacheBase.GetSafeLazyValue((Lazy<object>)x.Value)) // return exceptions as null
.Select(x => SafeLazy.GetSafeLazyValue((Lazy<object>)x.Value)) // return exceptions as null
.Where(x => x != null) // backward compat, don't store null values in the cache
.ToList();
}
/// <inheritdoc />
public object Get(string key, Func<object> factory, TimeSpan? timeout, bool isSliding = false, CacheItemPriority priority = CacheItemPriority.Normal, CacheItemRemovedCallback removedCallback = null, string[] dependentFiles = null)
public object Get(string key, Func<object> factory, TimeSpan? timeout, bool isSliding = false, string[] dependentFiles = null)
{
// see notes in HttpRuntimeAppCache
@@ -112,10 +110,10 @@ namespace Umbraco.Core.Cache
using (var lck = new UpgradeableReadLock(_locker))
{
result = MemoryCache.Get(key) as Lazy<object>;
if (result == null || FastDictionaryAppCacheBase.GetSafeLazyValue(result, true) == null) // get non-created as NonCreatedValue & exceptions as null
if (result == null || SafeLazy.GetSafeLazyValue(result, true) == null) // get non-created as NonCreatedValue & exceptions as null
{
result = FastDictionaryAppCacheBase.GetSafeLazy(factory);
var policy = GetPolicy(timeout, isSliding, removedCallback, dependentFiles);
result = SafeLazy.GetSafeLazy(factory);
var policy = GetPolicy(timeout, isSliding, dependentFiles);
lck.UpgradeToWriteLock();
//NOTE: This does an add or update
@@ -126,21 +124,21 @@ namespace Umbraco.Core.Cache
//return result.Value;
var value = result.Value; // will not throw (safe lazy)
if (value is FastDictionaryAppCacheBase.ExceptionHolder eh) eh.Exception.Throw(); // throw once!
if (value is SafeLazy.ExceptionHolder eh) eh.Exception.Throw(); // throw once!
return value;
}
/// <inheritdoc />
public void Insert(string key, Func<object> factory, TimeSpan? timeout = null, bool isSliding = false, CacheItemPriority priority = CacheItemPriority.Normal, CacheItemRemovedCallback removedCallback = null, string[] dependentFiles = null)
public void Insert(string key, Func<object> factory, TimeSpan? timeout = null, bool isSliding = false, string[] dependentFiles = null)
{
// NOTE - here also we must insert a Lazy<object> but we can evaluate it right now
// and make sure we don't store a null value.
var result = FastDictionaryAppCacheBase.GetSafeLazy(factory);
var result = SafeLazy.GetSafeLazy(factory);
var value = result.Value; // force evaluation now
if (value == null) return; // do not store null values (backward compat)
var policy = GetPolicy(timeout, isSliding, removedCallback, dependentFiles);
var policy = GetPolicy(timeout, isSliding, dependentFiles);
//NOTE: This does an add or update
MemoryCache.Set(key, result, policy);
}
@@ -178,9 +176,8 @@ namespace Umbraco.Core.Cache
}
/// <inheritdoc />
public virtual void ClearOfType(string typeName)
public virtual void ClearOfType(Type type)
{
var type = TypeFinder.GetTypeByName(typeName);
if (type == null) return;
var isInterface = type.IsInterface;
try
@@ -192,7 +189,7 @@ namespace Umbraco.Core.Cache
// x.Value is Lazy<object> and not null, its value may be null
// remove null values as well, does not hurt
// get non-created as NonCreatedValue & exceptions as null
var value = FastDictionaryAppCacheBase.GetSafeLazyValue((Lazy<object>)x.Value, true);
var value = SafeLazy.GetSafeLazyValue((Lazy<object>)x.Value, true);
// if T is an interface remove anything that implements that interface
// otherwise remove exact types (not inherited types)
@@ -223,7 +220,7 @@ namespace Umbraco.Core.Cache
// x.Value is Lazy<object> and not null, its value may be null
// remove null values as well, does not hurt
// get non-created as NonCreatedValue & exceptions as null
var value = FastDictionaryAppCacheBase.GetSafeLazyValue((Lazy<object>)x.Value, true);
var value = SafeLazy.GetSafeLazyValue((Lazy<object>)x.Value, true);
// if T is an interface remove anything that implements that interface
// otherwise remove exact types (not inherited types)
@@ -255,7 +252,7 @@ namespace Umbraco.Core.Cache
// x.Value is Lazy<object> and not null, its value may be null
// remove null values as well, does not hurt
// get non-created as NonCreatedValue & exceptions as null
var value = FastDictionaryAppCacheBase.GetSafeLazyValue((Lazy<object>)x.Value, true);
var value = SafeLazy.GetSafeLazyValue((Lazy<object>)x.Value, true);
if (value == null) return true;
// if T is an interface remove anything that implements that interface
@@ -314,7 +311,7 @@ namespace Umbraco.Core.Cache
}
}
private static CacheItemPolicy GetPolicy(TimeSpan? timeout = null, bool isSliding = false, CacheItemRemovedCallback removedCallback = null, string[] dependentFiles = null)
private static CacheItemPolicy GetPolicy(TimeSpan? timeout = null, bool isSliding = false, string[] dependentFiles = null)
{
var absolute = isSliding ? ObjectCache.InfiniteAbsoluteExpiration : (timeout == null ? ObjectCache.InfiniteAbsoluteExpiration : DateTime.Now.Add(timeout.Value));
var sliding = isSliding == false ? ObjectCache.NoSlidingExpiration : (timeout ?? ObjectCache.NoSlidingExpiration);
@@ -330,34 +327,6 @@ namespace Umbraco.Core.Cache
policy.ChangeMonitors.Add(new HostFileChangeMonitor(dependentFiles.ToList()));
}
if (removedCallback != null)
{
policy.RemovedCallback = arguments =>
{
//convert the reason
var reason = CacheItemRemovedReason.Removed;
switch (arguments.RemovedReason)
{
case CacheEntryRemovedReason.Removed:
reason = CacheItemRemovedReason.Removed;
break;
case CacheEntryRemovedReason.Expired:
reason = CacheItemRemovedReason.Expired;
break;
case CacheEntryRemovedReason.Evicted:
reason = CacheItemRemovedReason.Underused;
break;
case CacheEntryRemovedReason.ChangeMonitorChanged:
reason = CacheItemRemovedReason.Expired;
break;
case CacheEntryRemovedReason.CacheSpecificEviction:
reason = CacheItemRemovedReason.Underused;
break;
}
//call the callback
removedCallback(arguments.CacheItem.Key, arguments.CacheItem.Value, reason);
};
}
return policy;
}
}
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using System;
using Umbraco.Core.Serialization;
using Umbraco.Core.Sync;
namespace Umbraco.Core.Cache
@@ -9,29 +10,19 @@ namespace Umbraco.Core.Cache
/// <typeparam name="TInstanceType">The actual cache refresher type.</typeparam>
/// <typeparam name="TPayload">The payload type.</typeparam>
/// <remarks>The actual cache refresher type is used for strongly typed events.</remarks>
public abstract class PayloadCacheRefresherBase<TInstanceType, TPayload> : JsonCacheRefresherBase<TInstanceType>, IPayloadCacheRefresher<TPayload>
public abstract class PayloadCacheRefresherBase<TInstanceType, TPayload> : JsonCacheRefresherBase<TInstanceType, TPayload>, IPayloadCacheRefresher<TPayload>
where TInstanceType : class, ICacheRefresher
{
/// <summary>
/// Initializes a new instance of the <see cref="PayloadCacheRefresherBase{TInstanceType, TPayload}"/>.
/// </summary>
/// <param name="appCaches">A cache helper.</param>
protected PayloadCacheRefresherBase(AppCaches appCaches) : base(appCaches)
{ }
#region Json
/// <summary>
/// Deserializes a json payload into an object payload.
/// </summary>
/// <param name="json">The json payload.</param>
/// <returns>The deserialized object payload.</returns>
protected virtual TPayload[] Deserialize(string json)
/// <param name="serializer"></param>
protected PayloadCacheRefresherBase(AppCaches appCaches, IJsonSerializer serializer) : base(appCaches, serializer)
{
return JsonConvert.DeserializeObject<TPayload[]>(json);
}
#endregion
#region Refresher
@@ -5,7 +5,7 @@ namespace Umbraco.Core.Cache
/// <summary>
/// Specifies how a repository cache policy should cache entities.
/// </summary>
internal class RepositoryCachePolicyOptions
public class RepositoryCachePolicyOptions
{
/// <summary>
/// Ctor - sets GetAllCacheValidateCount = true
+63
View File
@@ -0,0 +1,63 @@
using System;
using System.Runtime.ExceptionServices;
namespace Umbraco.Core.Cache
{
public static class SafeLazy
{
// an object that represent a value that has not been created yet
internal static readonly object ValueNotCreated = new object();
public static Lazy<object> GetSafeLazy(Func<object> getCacheItem)
{
// try to generate the value and if it fails,
// wrap in an ExceptionHolder - would be much simpler
// to just use lazy.IsValueFaulted alas that field is
// internal
return new Lazy<object>(() =>
{
try
{
return getCacheItem();
}
catch (Exception e)
{
return new ExceptionHolder(ExceptionDispatchInfo.Capture(e));
}
});
}
public static object GetSafeLazyValue(Lazy<object> lazy, bool onlyIfValueIsCreated = false)
{
// if onlyIfValueIsCreated, do not trigger value creation
// must return something, though, to differentiate from null values
if (onlyIfValueIsCreated && lazy.IsValueCreated == false) return ValueNotCreated;
// if execution has thrown then lazy.IsValueCreated is false
// and lazy.IsValueFaulted is true (but internal) so we use our
// own exception holder (see Lazy<T> source code) to return null
if (lazy.Value is ExceptionHolder) return null;
// we have a value and execution has not thrown so returning
// here does not throw - unless we're re-entering, take care of it
try
{
return lazy.Value;
}
catch (InvalidOperationException e)
{
throw new InvalidOperationException("The method that computes a value for the cache has tried to read that value from the cache.", e);
}
}
public class ExceptionHolder
{
public ExceptionHolder(ExceptionDispatchInfo e)
{
Exception = e;
}
public ExceptionDispatchInfo Exception { get; }
}
}
}
@@ -8,13 +8,13 @@ namespace Umbraco.Web.Cache
{
public sealed class TemplateCacheRefresher : CacheRefresherBase<TemplateCacheRefresher>
{
private readonly IdkMap _idkMap;
private readonly IIdKeyMap _idKeyMap;
private readonly IContentTypeCommonRepository _contentTypeCommonRepository;
public TemplateCacheRefresher(AppCaches appCaches, IdkMap idkMap, IContentTypeCommonRepository contentTypeCommonRepository)
public TemplateCacheRefresher(AppCaches appCaches, IIdKeyMap idKeyMap, IContentTypeCommonRepository contentTypeCommonRepository)
: base(appCaches)
{
_idkMap = idkMap;
_idKeyMap = idKeyMap;
_contentTypeCommonRepository = contentTypeCommonRepository;
}
@@ -55,7 +55,7 @@ namespace Umbraco.Web.Cache
private void RemoveFromCache(int id)
{
_idkMap.ClearCache(id);
_idKeyMap.ClearCache(id);
AppCaches.RuntimeCache.Clear($"{CacheKeys.TemplateFrontEndCacheKey}{id}");
//need to clear the runtime cache for templates
@@ -38,7 +38,7 @@ namespace Umbraco.Web.Cache
var userGroupCache = AppCaches.IsolatedCaches.Get<IUserGroup>();
if (userGroupCache)
{
userGroupCache.Result.ClearByKey(UserGroupRepository.GetByAliasCacheKeyPrefix);
userGroupCache.Result.ClearByKey(CacheKeys.UserGroupGetByAliasCacheKeyPrefix);
}
//We'll need to clear all user cache too
@@ -59,7 +59,7 @@ namespace Umbraco.Web.Cache
if (userGroupCache)
{
userGroupCache.Result.Clear(RepositoryCacheKeys.GetKey<IUserGroup>(id));
userGroupCache.Result.ClearByKey(UserGroupRepository.GetByAliasCacheKeyPrefix);
userGroupCache.Result.ClearByKey(CacheKeys.UserGroupGetByAliasCacheKeyPrefix);
}
//we don't know what user's belong to this group without doing a look up so we'll need to just clear them all

Some files were not shown because too many files have changed in this diff Show More