mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[CST-12754] fixes for unmapped pattern
This commit is contained in:
@@ -59,6 +59,11 @@ public class LDNMessageEntity implements ReloadableEntity<String> {
|
||||
*/
|
||||
public static final Integer QUEUE_STATUS_UNTRUSTED = 5;
|
||||
|
||||
/**
|
||||
* Message is not processed since action is not mapped
|
||||
*/
|
||||
public static final Integer QUEUE_STATUS_UNMAPPED_ACTION = 6;
|
||||
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
|
@@ -223,6 +223,9 @@ public class LDNMessageServiceImpl implements LDNMessageService {
|
||||
}
|
||||
} else {
|
||||
log.info("Found x" + msgs.size() + " LDN messages but none processor found.");
|
||||
msg.setQueueStatus(LDNMessageEntity.QUEUE_STATUS_UNMAPPED_ACTION);
|
||||
msg.setQueueAttempts(msg.getQueueAttempts() + 1);
|
||||
update(context, msg);
|
||||
}
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
|
Reference in New Issue
Block a user