Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ protected void prePublish(ElasticContext ec, AccessUtil au, AppResponse response
try {
item = itemUtil.readItemJson(indexName,itemType,id);
} catch (FileNotFoundException e) {
LOGGER.debug("item with id "+id+" not found ");
}
} else {
if (fileid != null && fileid.length() > 0) {
Expand All @@ -245,7 +246,7 @@ protected void prePublish(ElasticContext ec, AccessUtil au, AppResponse response
}

// update sys info
if (item == null) {
if (item == null ||(item.containsKey("found") && !item.getBoolean("found"))) {
this.setIsNew(true);
if ((id != null) && (id.length() > 0)) {
// TODO validate the id?
Expand Down
Loading