Skip to content

Commit

Permalink
Merge branch 'hotfix-6.0.2' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Apr 4, 2024
2 parents 3a276bf + 92012f3 commit f0f5003
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v6.0.2

* Fix issue where Service provider single logout binding was taking too much space in DB and failing db migration
* Give data migration a name to ensure it happens sooner rather than later during db migration routines

## v6.0.1

* Fix issue where organisation short name setting containing spaces would crash server on certificate generation
Expand Down
2 changes: 1 addition & 1 deletion handlers/admin/datamanager/Saml2DataManagerBase.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ component extends="preside.system.base.EnhancedDataManagerBase" {

if ( isFeatureEnabled( "samlSsoProviderSlo" ) ) {
data.single_logout_location = meta.serviceProviderSsoRequirements.logoutService.location ?: "";
data.single_logout_binding = ListLast( meta.serviceProviderSsoRequirements.logoutService.binding ?: "" );
data.single_logout_binding = ListLast( meta.serviceProviderSsoRequirements.logoutService.binding ?: "", ":" );
}

if ( !_validateMeta( argumentCollection=arguments, objectName="saml2_sp", data=data ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ component {
property name="saml2LegacyMigrationService" inject="saml2LegacyMigrationService";

private boolean function runAsync() {
saml2LegacyMigrationService.migrate();
var alreadyRun = getPresideObject( "db_migration_history" ).dataExists( filter={ migration_key="Saml6Overhaul-async" } );

if ( !alreadyRun ) {
saml2LegacyMigrationService.migrate();
}

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion services/saml/util/Saml2LegacyMigrationService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ component {

if ( $isFeatureEnabled( "samlSsoProviderSlo" ) ) {
newSp.single_logout_location = meta.serviceProviderSsoRequirements.logoutService.location ?: "";
newSp.single_logout_binding = ListLast( meta.serviceProviderSsoRequirements.logoutService.binding ?: "" );
newSp.single_logout_binding = ListLast( meta.serviceProviderSsoRequirements.logoutService.binding ?: "", ":" );
}

return newSp;
Expand Down

0 comments on commit f0f5003

Please sign in to comment.