Bjarke Berg
04bb4e99b6
Fixed possible null reference exceptions
2021-01-14 19:41:32 +01:00
Elitsa Marinovska
3a51965358
Placing the code for checking if a ModelState is invalid directly
2021-01-13 16:14:20 +01:00
Elitsa Marinovska
5feb273c3a
Some more refactoring
2021-01-12 16:01:09 +01:00
Elitsa Marinovska
b0f4f9f440
Refactoring the use of ValidationErrorResult with the build-in types for status response results
2021-01-12 14:00:14 +01:00
Elitsa Marinovska
c482b6df3d
Another step towards getting rid of HttpResponseException
2020-12-29 12:55:48 +01:00
Elitsa Marinovska
358a8ec2af
Initial stage of getting rid of HttpResponseException and replacing it with the usage of ValidationErrorResult
2020-12-22 16:36:07 +01:00
Bjarke Berg
0151c435f1
Netcore: Package support for media + media types ( #9547 )
...
* Add support for media when installing a package
* clean up
* Fix tests
* Add support for media when installing a package
* clean up
* Fix tests
* moved tests + test data
* Migrated package tests + resources
* Fix issue with media picker on package page, was empty after save.
* Added missing files
* Fix casing issue of resources
* Added test for media
* Fix tests for linux
* Fix test
* Fix issue with move media..
* Fix issue with adding files to packages
* Add MediaType permissions.
* Fix test
* Fix test
* Retry flaky tests, and added TODOs to fix those
* new attempt to fix test
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch >
2020-12-16 22:26:47 +01:00
Bjarke Berg
7776e203a6
Fix issue with auth on media upload
2020-12-10 08:55:47 +01:00
Matthew Wise
fdb6c21075
Converted OutgoingEditorModelEventAttribute to a type filter
2020-12-02 14:21:05 +00:00
Shannon
bde025f661
streamlines the naming of the content/media permissions handlers
2020-11-24 00:42:52 +11:00
Shannon
4dbfe5867b
migrates the custom content persmission helper and media permissions helper checks to authz policies and cleans up that code/class/namespaces
2020-11-24 00:37:26 +11:00
Shannon
e7b4c5a811
Converts FeatureAuthorize to authz policy
2020-11-20 12:40:29 +11:00
Shannon
63fceebca0
Removes UmbracoApplicationAuthorizeAttribute and migrates usages to authz policies
2020-11-19 22:17:42 +11:00
Shannon
99247d7fbe
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/6973-migrating-authenticationcontroller
...
# Conflicts:
# src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComposer.cs
2020-11-18 16:02:51 +11:00
Elitsa Marinovska
dd5f400cf3
Netcore: Migration of Model classes from Umbraco.Infrastructure to Core ( #9404 )
...
* Migrating more model, mapping and tree classes
* Migrating files from Mapping dir without Newtonsoft dependency
* Migrating files from PublishedContent and Editors dirs without Newtonsoft dependency + some more of the same kind
* Migrating DataType class without the usage of Newtonsoft.Json and making the corresponding changes to all classes affected
* Combining 3 ContentExtensions files into 1
* Refactoring from migrating ContentExtensions
* Migrating more classes
* Migrating ContentRepositoryExtensions - combining it with existing file in Umbraco.Core
* removing Newtonsoft json dependency & migrating file. Adding partial migration of ConfigurationEditor, so PropertyTagsExtensions can be migrated
* Migrating ContentTagsExtensions, and refactoring from changes in PropertyTagsExtensions
* Changes that should be reverted once ConfigurationEditor class is fully migrated
* VS couldn't find Composing, so build was failing. Removing the using solves the problem
* Handling a single case for deserializing a subset of an input
* Small changes and added tests to JsonNetSerializer
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Migrated ConfigurationEditor
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
Co-authored-by: Bjarke Berg <mail@bergmania.dk >
2020-11-17 20:27:10 +01:00
Bjarke Berg
b47f946ffe
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/6973-migrating-authenticationcontroller
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
# Conflicts:
# src/Umbraco.Infrastructure/HealthCheck/NotificationMethods/EmailNotificationMethod.cs
# src/Umbraco.Web/Editors/AuthenticationController.cs
2020-10-26 14:34:06 +01:00
Mole
9cd752c2f8
Netcore: Align Namespaces in Tests and Web.BackOffice ( #9274 )
...
* Align namespaces in integration tests
* Align namespaces in unit tests
* Align namespaces in Backoffice.Filters
* Align namespaces in Backoffice.ActionResults
* Align namespaces in Backoffice.Mapping
* Align namespaces in Backoffice.PorpertyEditors and SignalR
* Align namespaces in Backoffice.Trees
* Align unit tests after migration
2020-10-26 13:34:08 +01:00
Shannon
d1b35deb43
Migrates remaining backofficecontroller but still a bunch of work to do , streamlines Backoffice to BackOffice (but is that what we want?)
2020-10-21 16:51:00 +11:00
Mole
8258178c5a
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-logging
...
# Conflicts:
# src/Umbraco.Infrastructure/Media/UploadAutoFillProperties.cs
# src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyEditor.cs
# src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyEditor.cs
# src/Umbraco.Tests/Models/MediaXmlTest.cs
# src/Umbraco.Tests/Routing/MediaUrlProviderTests.cs
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
# src/Umbraco.Web.BackOffice/Controllers/MediaController.cs
2020-09-23 13:32:49 +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
Mole
c0616d516a
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-logging
...
# Conflicts:
# src/Umbraco.Infrastructure/Scheduling/ScheduledPublishing.cs
# src/Umbraco.Infrastructure/Scheduling/SchedulerComponent.cs
# src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
# src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs
# src/Umbraco.Web.BackOffice/Controllers/MacrosController.cs
# src/Umbraco.Web.BackOffice/Controllers/PackageInstallController.cs
# src/Umbraco.Web.BackOffice/Controllers/RedirectUrlManagementController.cs
# src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
# src/Umbraco.Web.BackOffice/Filters/ContentModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/ContentSaveModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/ContentSaveValidationAttribute.cs
# src/Umbraco.Web.BackOffice/Filters/MediaItemSaveValidationAttribute.cs
# src/Umbraco.Web.BackOffice/Filters/MediaSaveModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/MemberSaveModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/MemberSaveValidationAttribute.cs
# src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs
# src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs
# src/Umbraco.Web.BackOffice/Trees/MediaTreeController.cs
# src/Umbraco.Web.Common/Install/InstallController.cs
2020-09-22 13:44:22 +02:00
Bjarke Berg
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
Mole
ab3ac5ad91
Remove a bunch of references to the old logger
2020-09-21 11:19:46 +02:00
Mole
d61b9f54fa
Merge options
2020-09-18 12:53:06 +02:00
Nikolaj
488093add3
Remove LogWarning<T> from LoggerExtensions
2020-09-16 10:08:18 +02:00
Nikolaj
dda6fb12a3
Remove LogError<T> from LoggerExtensions
2020-09-16 09:40:49 +02:00
Nikolaj
a1ecc4a5c9
Change Warn to LogWarning
2020-09-14 10:17:32 +02:00
Nikolaj
d7e3bce741
Rename Error to align it with MS ILogger
2020-09-14 09:10:53 +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
3d55dcd3c4
Merge remote-tracking branch 'netcore/dev' into netcore/netcore
2020-08-26 08:05:15 +02: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
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
Shannon
4edf7fdf83
Ensure all back office controllers are plugin controllers and use constant
2020-08-04 12:27:21 +10: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
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