You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.error("Google client ID not set, token verification will fail. Set GOOGLE_CLIENT_ID in your environment.");
136
+
logger.error("Google client ID not set, token verification will fail. Set GOOGLE_CLIENT_ID in your environment. clientId value: " + (clientId == null ? "null" : "empty string"));
131
137
// Create a dummy verifier that will reject all tokens
logger.warn("User email exists but no mapping found - this may be due to data inconsistency. Attempting graceful repair in makeUser.");
104
+
logger.warn("User email exists but no mapping found - this may be due to data inconsistency. Attempting graceful repair in makeUser: " + e.getMessage());
105
105
106
106
// Attempt to repair the data inconsistency gracefully
107
107
try {
@@ -216,7 +216,7 @@ public Optional<AuthResponseDTO> getUserIfExistsbyExternalId(String externalUser
216
216
thrownewIncorrectProviderException("The email: " + email + " is already associated to a " + providerName + " account. Please login through " + providerName + " instead");
217
217
}
218
218
} catch (BaseNotFoundExceptione) {
219
-
logger.warn("User email exists but no mapping found - checking for data inconsistency and attempting cleanup.");
219
+
logger.warn("User email exists but no mapping found - checking for data inconsistency and attempting cleanup: " + e.getMessage());
220
220
221
221
// Get the user by email to check their status
222
222
try {
@@ -231,7 +231,7 @@ public Optional<AuthResponseDTO> getUserIfExistsbyExternalId(String externalUser
231
231
logger.info("Orphaned user deleted. Treating as no user found to allow fresh registration.");
232
232
returnOptional.empty();
233
233
} else {
234
-
logger.warn("Active user exists without OAuth mapping - possible data corruption. Manual intervention may be required.");
234
+
logger.warn("Active user exists without OAuth mapping - possible data corruption. Manual intervention may be required. Email: " + email + ", User ID: " + orphanedUser.getId());
235
235
returnOptional.empty();
236
236
}
237
237
} catch (ExceptioncleanupEx) {
@@ -265,7 +265,7 @@ public BaseUserDTO createUserFromOAuth(UserCreationDTO userCreationDTO, String i
265
265
logger.info("Making new user: " + newUser.getUsername());
thrownewIncorrectProviderException("Email already exists for a " + providerName + " account. Please login through " + providerName + " instead");
398
398
}
399
399
} catch (BaseNotFoundExceptione) {
400
-
logger.warn("User email exists but no mapping found - this may be due to data inconsistency. Attempting graceful repair in registration flow.");
400
+
logger.warn("User email exists but no mapping found - this may be due to data inconsistency. Attempting graceful repair in registration flow: " + e.getMessage());
401
401
402
402
// Attempt to repair the data inconsistency gracefully
logger.info("Mapping already exists for the same user, no action needed");
477
477
return;
478
478
} else {
479
-
logger.warn("Mapping exists for different user. This indicates a race condition or data inconsistency.");
479
+
logger.warn("Mapping exists for different user. This indicates a race condition or data inconsistency. External ID: " + externalUserId + ", existing user: " + existing.getUser().getId() + ", new user: " + user.getId());
480
480
481
481
// Check if the existing mapping points to a deleted/non-existent user
0 commit comments