Andy Butland
d7d39658e0
Permissions: Fix removal of check on removal the final admin user ( closes #19917 ) ( #19921 )
...
Reworks update of user groups on a user by updating in place rather than deleting and re-adding.
Ensure user groups affected by the update are invalidated in the repository cache.
Co-authored-by: Kenn Jacobsen <kja@umbraco.dk >
2025-09-22 12:51:27 +02: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
Andy Butland
b07a24ba55
Added clarifying comments to the logic for granular permissions. ( #18705 )
2025-03-18 11:08:30 +01:00
Andy Butland
e91a25dcb6
Restrict valid API user client IDs to 100 characters. ( #18688 )
2025-03-18 06:33:24 +01:00
Bjarke Berg
ba8092fac7
Fixes https://github.com/umbraco/Umbraco-CMS/issues/17506 ( #17536 )
...
Now the validation of ClientId has a max of 255 characters
2024-11-15 09:40:26 +01:00
Kenn Jacobsen
669c585ac4
Validate client IDs before applying them ( #17426 )
...
* Validate client IDs before applying them
* Add operation result to return
* Update src/Umbraco.Cms.Api.Management/Controllers/User/ClientCredentials/ClientCredentialsUserControllerBase.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Zeegaan <skrivdetud@gmail.com >
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2024-11-07 10:42:40 +01:00
Bjarke Berg
2494d8c5aa
Granular permissions in Management API ( #15734 )
...
* It builds..
* Added granular permissions
* Added granular permissions
* Rename content to document
* Added migration
* Fixed issues causing the migration from v13 was not possible.
* Merged Permissions and Granular Permissions in viewmodel
* Prepared the viewmodel to a future where permissions can be more types.
* OpenApi
* Allow to translate a single char to many strings
* Use frontend friendly values for known permissions
* Validate the documents exist
* Allow setting non-document settings
* Add "$type" when required
* Rename to presentation model and update OpenApi.json
* OpenApi.json
* Fix tests
* OpenAPI
* Fixed issues with upgrades
* Add the discriminator name
* Fixed issues that only happended on SqlServer
* Fixed queries for SqlServer
* Clean up
* More cleanup
* Fix issue when migrating sqlserver
* Split fallback permissions into own concept in view model
* Also split on current user
* Added a extenable pattern for mappers between DTO => Granular Permission => ViewModel and ViewModel => Granular Permission
* Fixed issue with new exists method, that did not take duplicate keys into account.
* Added sections to current user response model
* Formatting fixes
* Move class to its own file
* xml comment
---------
Co-authored-by: Zeegaan <skrivdetud@gmail.com >
2024-02-27 21:57:02 +01: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
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