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
// case when user joined identity after sending initial application and former user was already member of VO
1767
-
thrownewRegistrarException("User is already member (with ID: "+ex.getMember().getId()+") of your VO/group. (user joined his identities after sending new application). You can reject this application and re-validate old member to keep old data (e.g. login,email).", ex);
1767
+
thrownewRegistrarException("User is already member (with ID: "+ex.getMember().getId()+") of your VO/group. (user joined his identities after sending new application). You can reject this application " + appId + " and re-validate old member to keep old data (e.g. login,email).", ex);
1768
1768
} catch (MemberNotExistsExceptionex) {
1769
-
thrownewRegistrarException("To approve application user must already be member of VO.", ex);
1769
+
thrownewRegistrarException("To approve application " + appId + " user must already be member of VO.", ex);
1770
1770
} catch (NotGroupMemberExceptionex) {
1771
-
thrownewRegistrarException("To approve application user must already be member of Group.", ex);
1771
+
thrownewRegistrarException("To approve application " + appId + " user must already be member of Group.", ex);
thrownewRegistrarException("User specified by the data in application was not found. If you tried to approve application for the Group, try to check, if user already has approved application in the VO. Application to the VO must be approved first.", ex);
1773
+
thrownewRegistrarException("User specified by the data in application " + appId + " was not found. If you tried to approve application for the Group, try to check, if user already has approved application in the VO. Application to the VO must be approved first.", ex);
1774
1774
} finally {
1775
1775
synchronized (runningApproveApplication) {
1776
1776
runningApproveApplication.remove(appId);
@@ -1821,6 +1821,13 @@ public Application approveApplication(PerunSession sess, int appId) throws Perun
if (app == null) thrownewRegistrarException("Application with ID "+appId+" doesn't exists.");
1951
+
if (app == null) thrownewRegistrarException("Application with ID " + appId + " doesn't exists.");
1945
1952
Membermember;
1946
1953
1947
1954
//Authorization
@@ -1957,9 +1964,9 @@ public Application approveApplicationInternal(PerunSession sess, int appId) thro
1957
1964
1958
1965
// only VERIFIED applications can be approved
1959
1966
if (!AppState.VERIFIED.equals(app.getState())) {
1960
-
if (AppState.APPROVED.equals(app.getState())) thrownewRegistrarException("Application is already approved. Try to refresh the view to see changes.");
1961
-
if (AppState.REJECTED.equals(app.getState())) thrownewRegistrarException("Rejected application cant' be approved. Try to refresh the view to see changes.");
1962
-
thrownewRegistrarException("User didn't verify his email address yet. Please wait until application will be in a 'Submitted' state. You can send mail verification notification to user again if you wish.");
1967
+
if (AppState.APPROVED.equals(app.getState())) thrownewRegistrarException("Application " + appId + " is already approved. Try to refresh the view to see changes.");
1968
+
if (AppState.REJECTED.equals(app.getState())) thrownewRegistrarException("Rejected application " + appId + " cant' be approved. Try to refresh the view to see changes.");
1969
+
thrownewRegistrarException("User didn't verify his email address yet. Please wait until application " + appId + " will be in a 'Submitted' state. You can send mail verification notification to user again if you wish.");
@@ -2028,7 +2035,7 @@ public Application approveApplicationInternal(PerunSession sess, int appId) thro
2028
2035
// and we don't want to validate expired, suspended or disabled users without VO admin owns action !!
2029
2036
// meaning, user should submit membership extension application first !!
2030
2037
if (!Arrays.asList(Status.VALID, Status.INVALID).contains(member.getStatus())) {
2031
-
thrownewCantBeApprovedException("Application of member with membership status: "+member.getStatus()+" can't be approved. Please wait until member extends/re-validate own membership in a VO.");
2038
+
thrownewCantBeApprovedException("Application " + appId + " of member with membership status: "+member.getStatus()+" can't be approved. Please wait until member extends/re-validate own membership in a VO.");
2032
2039
}
2033
2040
2034
2041
// store all attributes (but not logins)
@@ -2164,7 +2171,7 @@ public Application approveApplicationInternal(PerunSession sess, int appId) thro
2164
2171
// and we don't want to validate expired, suspended or disabled users without VO admin owns action !!
2165
2172
// meaning, user should submit membership extension application first !!
2166
2173
if (!Arrays.asList(Status.VALID, Status.INVALID).contains(member.getStatus())) {
2167
-
thrownewCantBeApprovedException("Application of member with membership status: "+member.getStatus()+" can't be approved. Please wait until member extends/re-validate own membership in a VO.");
2174
+
thrownewCantBeApprovedException("Application " + appId + " of member with membership status: "+member.getStatus()+" can't be approved. Please wait until member extends/re-validate own membership in a VO.");
0 commit comments