# HG changeset patch # User Alain Mazy # Date 1719926778 -7200 # Node ID 21abcb97ff3c4f04a1e751f937b9c04ba9e698bb # Parent 7099d59de4dddee13ca83253c7ab16bdcdd90210 Fix internal error when the auth-service was not configured to implement the role/permission API diff -r 7099d59de4dd -r 21abcb97ff3c NEWS --- a/NEWS Thu Jun 27 17:05:37 2024 +0200 +++ b/NEWS Tue Jul 02 15:26:18 2024 +0200 @@ -1,3 +1,5 @@ +* Fix internal error when the auth-service was not configured to implement the role/permission API + 2024-06-27 - v 0.8.0 ==================== diff -r 7099d59de4dd -r 21abcb97ff3c Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Thu Jun 27 17:05:37 2024 +0200 +++ b/Plugin/Plugin.cpp Tue Jul 02 15:26:18 2024 +0200 @@ -1071,7 +1071,7 @@ if (!authorizationService_->GetSettingsRoles(roles)) { - throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, "Could not retrieve roles from the auth-service", true); + LOG(WARNING) << "Could not retrieve roles from the auth-service. The auth-service might not provide this feature or is not configured correctly."; } OrthancPlugins::AnswerJson(roles, output);