mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +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;
|
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
|
@Id
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
|
@@ -223,6 +223,9 @@ public class LDNMessageServiceImpl implements LDNMessageService {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.info("Found x" + msgs.size() + " LDN messages but none processor found.");
|
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) {
|
} catch (SQLException e) {
|
||||||
|
Reference in New Issue
Block a user