Andy Butland
2b8146f72d
Media: Add protection to restrict access to media in recycle bin ( closes #2931 ) ( #20378 )
...
* Add MoveFile it IFileSystem and implement on file systems.
* Rename media file on move to recycle bin.
* Rename file on restore from recycle bin.
* Add configuration to enabled recycle bin media protection.
* Expose backoffice authentication as cookie for non-backoffice usage.
Protected requests for media in recycle bin.
* Display protected image when viewing image cropper in the backoffice media recycle bin.
* Code tidy and comments.
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Introduced helper class to DRY up repeated code between image cropper and file upload notification handlers.
* Reverted client-side and management API updates.
* Moved update of path to media file in recycle bin with deleted suffix to the server.
* Separate integration tests for add and remove.
* Use interpolated strings.
* Renamed variable.
* Move EnableMediaRecycleBinProtection to ContentSettings.
* Tidied up comments.
* Added TODO for 18.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-04 07:39:44 +00:00
Andy Butland
825f791d01
Remove the non-controversial, straightforward obsoleted constructs for Umbraco 16 ( #18661 )
...
* Removed obsoletes from IConfigManipulator.
* Removed obsolete models builder extensions.
* Removed the obsolete ContentDashboardSettings.
* Removed the obsolete InstallMissingDatabase setting on GlobalSettings.
* Removed obsolete NuCache settings.
* Removed obsolete RuntimeMinificationSettings.
* Removed obsolete health check constant.
* Removed obsolete icon constant.
* Removed obsolete telemetry constant.
* Removed obsolete property and constructor on UmbracoBuilder.
* Removed obsolete constructor on AuditNotificationsHandler.
* Removed obsolete constructor on HTTP header health checks.
* Removed obsolete constructor on MediaFileManager.
* Removed obsolete GetDefaultFileContent on ViewHelper.
* Remove obsoleted methods on embed providers.
* Fix tests.
* Removed obsolete constructors on BlockEditorDataConverter.
* Removed obsolete SeedCacheDuration property on CacheSettings.
* Removed obsolete PublishCulture on ContentRepositoryExtensions.
* Removed obsolete MonitorLock.
* Removed obsolete synchronous HasSavedValues from IDataTypeUsageService and IDataTypeUsageRepository.
* Removed obsolete HasSavedPropertyValues from IPropertyTypeUsageService and IPropertyTypeUsageRepository.
* Removed obsolete methods in ITrackedReferencesService and ITrackedReferencesRepository.
* Removed obsolete DateValueEditor constructors.
* Removed obsolete GetAutomaticRelationTypesAliases.
* Removed obsolete constructor on TextOnlyValueEditor.
* Removed obsolete constructors on RegexValidator and RequiredValidator.
* Removed obsolete constructs on SliderValueConverter and TagsValueConverter.
* Removed obsolete GetContentType methods from IPublishedCache.
* Removed ContentFinderByIdPath.
* Removed obsolete constructor on DefaultMediaUrlProvider.
* Removed obsolete constructor on Domain.
* Removed obsolete constructor on PublishedRequest.
* Removed obsolete methods on CheckPermissions.
* Removed obsolete GetUserId from IBackOfficeSecurity.
* Removed obsolete methods on LegacyPasswordSecurity.
* Removed obsolete constructors on AuditService.
* Removed obsolete methods on IContentEditingService.
* Remove obsolete constructors and methods on ContentService/IContentService.
* Removed obsolete constructor in ContentTypeEditingService.
* Removed obsolete constructor in MediaTypeEditingService.
* Removed obsolete constructor in MemberTypeEditingService.
* Removed obsolete constructor in ContentTypeService.
* Removed obsolete constructors in ContentTypeServiceBase.
* Removed obsolete constructors and methods in ContentVersionService.
* Removed obsolete constructor in DataTypeUsageService.
* Removed obsolete constructor in DomainService.
* Removed obsolete constructor in FileService.
* Removes obsolete AttemptMove from IContentService.
* Removes obsolete SetPreventCleanup from IContentVersionService.
* Removes obsolete GetReferences from IDataTypeService.
* Removed obsolete SetConsentLevel from IMetricsConsentService.
* Removed obsolete methods from IPackageDataInstallation.
* Removed obsolete methods from IPackagingService.
* Removed obsolete methods on ITwoFactorLoginService.
Removed obsolete ITemporaryMediaService.
* Removed obsolete constructor from MediaService, MemberTypeService and MediaTypeService.
* More obsolete constructors.
* Removed obsoleted overloads on IPropertyValidationService.
* Fixed build for tests.
* Removed obsolete constructor for PublicAccessService, UserService and RelationService.
* Removed GetDefaultMemberType.
* Removed obsolete user group functionality from IUserService.
* Removed obsolete extension methods on IUserService.
* Removed obsolete method from ITelemetryService.
* Removed obsolete UdiParserServiceConnectors.
* Removed obsolete method on ICookieManager.
* Removed obsolete DynamicContext.
* Removed obsolete XmlHelper.
* Fixed failing integration tests.
* Removed obsoletes in Umbraco.Cms.Api.Common
* Removed obsoletes in Umbraco.Cms.Api.Delivery
* Removed obsoletes in Umbraco.Cms.Api.Management
* Removed obsoletes in Umbraco.Examine.Lucene
* Removed obsoletes in Umbraco.Infrastructure
* Fix failing delivery API contract integration test.
* Made integration tests internal.
* Removed obsoletes from web projects.
* Fix build.
* Removed Twitter OEmbed provider
* Removed obsolete constructor on PublishedDataType.
* Removed obsolete constructors on PublishedCacheBase.
* Removed the obsolete PropertyEditorTagsExtensions.
* Removed obsoletion properties on configuration response models (#18697 )
* Removed obsolete methods from server-side models.
* Update client-side types and sdk.
* Update client-side files.
* Removed obsoletion of Utf8ToAsciiConverter.ToAsciiString overload. (#18694 )
* Removed obsolete method in UserService. (#18710 )
* Removed obsoleted group alias keys from being publicly available. (#18682 )
* Removed unneceessary ApiVersion attribute.
* Clean-up obsoletions on MemberService (#18703 )
* Removed obsoleted method on MemberService, added future obsoletion to interface and updated all callers.
* Removed obsoletion on member service method that's not obsolete on the interface.
2025-03-21 17:02:31 +00:00
Bjarke Berg
49c71b1989
Merge
2023-09-20 14:13:21 +02:00
Bjarke Berg
ed73b82fd0
Merge remote-tracking branch 'origin/v11/dev' into v12/dev
...
# Conflicts:
# tests/Umbraco.Tests.Integration/NewBackoffice/OpenAPIContractTest.cs
# tests/Umbraco.Tests.Integration/Umbraco.Core/Services/ContentServiceTests.cs
2023-09-20 09:51:56 +02:00
Sven Geusens
c8e054baa2
V10/feature/pipeline test filters ( #14766 )
...
* Add configuration/code to not run certain tests based on variables/release builds
* Applied longrunning testAttribute to the worst offenders (>200ms on my machine)
* Fix yaml notation
* split up windows/non windows test runs
* Added supression for moved tests
* Fix yaml validation issues
* Change yaml string parameter null value to empty string
* Convert empty strings to whitespace strings
* Rename and cleanup some paramater to better reflect why we use them
* Nightly build test
* Change nightly build authentication type
* template paramater fix
* Update nightly pipeline name
---------
Co-authored-by: Sven Geusens <sge@umbraco.dk >
2023-09-12 14:16:27 +02:00
Bjarke Berg
5dd945f372
Reintroduced management api after v12 merge
2023-05-09 09:21:16 +02:00
Bjarke Berg
0f1c2f7022
Ensure no management api for v12 ( #14197 )
...
* Remove management api
* Remove actual files
2023-05-04 13:32:41 +02:00
Elitsa Marinovska
2c8927c2e9
Rename old FIXME to TODO ( #13646 )
...
* Rename old FIXME to TODO, so we can track new FIXME starting v13
* Remove empty TODO
2023-01-18 12:28:54 +01:00
Nikolaj Geisle
7aeb400fce
V10: fix build warnings in test projects ( #12509 )
...
* Run code cleanup
* Dotnet format benchmarks project
* Fix up Test.Common
* Run dotnet format + manual cleanup
* Run code cleanup for unit tests
* Run dotnet format
* Fix up errors
* Manual cleanup of Unit test project
* Update tests/Umbraco.Tests.Benchmarks/HexStringBenchmarks.cs
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch >
* Update tests/Umbraco.Tests.Integration/Testing/TestDbMeta.cs
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch >
* Update tests/Umbraco.Tests.Benchmarks/TypeFinderBenchmarks.cs
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch >
* Update tests/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch >
* Update tests/Umbraco.Tests.Integration/Umbraco.Core/Events/EventAggregatorTests.cs
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch >
* Fix according to review
* Fix after merge
* Fix errors
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk >
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch >
Co-authored-by: Zeegaan <nge@umbraco.dk >
2022-06-21 08:09:38 +02:00
Paul Johnson
00133e880d
Move test projects from src/ to tests/ ( #11357 )
...
* Update gitignore
* Move csproj
* Update project references
* Update solutions
* Update build scripts
* Tests used to share editorconfig with projects in src
* Fix broken tests.
* Stop copying around .editorconfig
merged root one with linting
* csharp_style_expression_bodied -> suggestion
* Move StyleCop rulesets to matching directories and update shared build properties
* Remove legacy build files, update NuGet.cofig and solution files
* Restore myget source
* Clean up .gitignore
* Update .gitignore
* Move new test classes to tests after merge
* Gitignore + nuget config
* Move new test
Co-authored-by: Ronald Barendse <ronald@barend.se >
2021-10-18 08:14:04 +01:00