Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 4827efc6 authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

Pull request #238: Fix the error for invalid ServiceGroup owner

Merge in EDELIVERY/smp from bugfix/EDELIVERY-9564-rest-api-user-not-found-for-header-for-invalid-http-header-servicegroup-owner to development

* commit 'b47fdac74947ec15a985d5ad305312d5a28adda6':
  Fix the error for invalid ServiceGroup owner
parents 7b5a2f60 77c4c436
No related branches found
No related tags found
No related merge requests found
<smp-dialog style="width: 400px"
[title]="'Password about to expire!'"
[title]="'Password about to expire'"
[text]="'Your password is more than three months old. Please change it as soon as possible!'"
[type]="'information'"
[dialogRef]="dialogRef">
......
......@@ -170,7 +170,7 @@ export class SearchTableComponent implements OnInit {
this.dialog.open(ConfirmationDialogComponent, {
data: {
title: "Not persisted data!",
title: "Not persisted data",
description: "Action will refresh all data and not saved data will be lost. Do you wish to continue?"
}
}).afterClosed().subscribe(result => {
......
......@@ -28,7 +28,7 @@ public enum ErrorCode {
USER_IS_NOT_OWNER(400,"SMP:124",ErrorBusinessCode.UNAUTHORIZED,"User %s is not owner of service group (part. id: %s, part. sch.: '%s')!"), // OWASP recommendation
INVALID_CERTIFICATE_MESSAGE_DIGEST(500, "SMP:125", ErrorBusinessCode.TECHNICAL, "Could not initialize MessageDigest"),
INVALID_CERTIFICATE_ENCODING(500, "SMP:126", ErrorBusinessCode.TECHNICAL, "Could not encode certificate"),
INVALID_OWNER(500, "SMP:127", ErrorBusinessCode.TECHNICAL, "Invalid owner id: %s"),
INVALID_OWNER(400, "SMP:127", ErrorBusinessCode.NOT_FOUND, "Invalid owner id: %s"),
// service group error
ILLEGAL_STATE_SG_MULTIPLE_ENTRY (500,"SMP:130",ErrorBusinessCode.TECHNICAL,"More than one service group ( part. id: %s, part. sch.: '%s') is defined in database!"),
......@@ -52,11 +52,8 @@ public enum ErrorCode {
// SML integration
SML_INTEGRATION_EXCEPTION (500,"SMP:150",ErrorBusinessCode.TECHNICAL,"Could not create new DNS entry through SML! Error: %s "),
//
XML_SIGNING_EXCEPTION (500,"SMP:500",ErrorBusinessCode.TECHNICAL,"Error occurred while signing response!"),
JAXB_INITIALIZATION (500,"SMP:511",ErrorBusinessCode.TECHNICAL, "Could not create Unmarshaller for class [%s]!"),
XML_PARSE_EXCEPTION (500,"SMP:512",ErrorBusinessCode.TECHNICAL, "Error occurred while parsing input stream for [%s]. Error: %s!"),
INVALID_REQUEST(400,"SMP:513",ErrorBusinessCode.TECHNICAL, "Invalid request [%s]. Error: %s!"),
......
......@@ -123,7 +123,7 @@ public class ServiceGroupService {
if (!newOwner.isPresent()) {
LOG.error("The owner [{}] does not exist! Save service group is rejected!", ownerName);
SMPRuntimeException ex = new SMPRuntimeException(USER_NOT_EXISTS);
SMPRuntimeException ex = new SMPRuntimeException(INVALID_OWNER);
LOG.businessError(SMPMessageCode.BUS_SAVE_SERVICE_GROUP_FAILED, domain, normalizedParticipantId.getValue(), normalizedParticipantId.getScheme(), ex.getMessage());
throw ex;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment