[IMGREC-70] Do not submit ImageRecognitionRequests for soft deleted images Created: 06/Aug/19  Updated: 12/Sep/19  Resolved: 19/Aug/19

Status: Closed
Project: Image Recognition
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1

Type: Bug Priority: Neutral
Reporter: Le Hai Thanh Assignee: Oanh Thai Hoang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1d 1.5h
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by TXTREC-46 Do not submit textClassification requ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: Image Rec
Sprint: Add-Ons 18
Story Points: 2

 Description   

Step to reproduce:

  • Upload asset
  • Clean up `mgnl:lastTaggingAttemptDate` and `mgnl:tags`
  • Make as deleted (soft delete) by deleting without publishing
  • Restart `ImageRecognitionModule` to tag this image

 

AC

  • Filter images which are marked as deleted

Error

2019-08-06 14:27:34,995 ERROR info.magnolia.ai.image.ImageRecognitionModule     : Submission of image recognition request has failed.2019-08-06 14:27:34,995 ERROR info.magnolia.ai.image.ImageRecognitionModule     : Submission of image recognition request has failed.javax.jcr.PathNotFoundException: jcr:content at org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2167) ~[jackrabbit-core-2.18.1.jar:2.18.1] at org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2161) ~[jackrabbit-core-2.18.1.jar:2.18.1] at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) ~[jackrabbit-core-2.18.1.jar:2.18.1] at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) ~[jackrabbit-core-2.18.1.jar:2.18.1] at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2161) ~[jackrabbit-core-2.18.1.jar:2.18.1] at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNode(DelegateNodeWrapper.java:204) ~[magnolia-core-6.2-SNAPSHOT.jar:?] at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNode(ContentDecoratorNodeWrapper.java:151) ~[magnolia-core-6.2-SNAPSHOT.jar:?] at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNode(DelegateNodeWrapper.java:204) ~[magnolia-core-6.2-SNAPSHOT.jar:?] at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNode(ContentDecoratorNodeWrapper.java:151) ~[magnolia-core-6.2-SNAPSHOT.jar:?] at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNode(DelegateNodeWrapper.java:204) ~[magnolia-core-6.2-SNAPSHOT.jar:?] at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNode(ContentDecoratorNodeWrapper.java:151) ~[magnolia-core-6.2-SNAPSHOT.jar:?] at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNode(DelegateNodeWrapper.java:204) ~[magnolia-core-6.2-SNAPSHOT.jar:?] at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNode(ContentDecoratorNodeWrapper.java:151) ~[magnolia-core-6.2-SNAPSHOT.jar:?] at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNode(DelegateNodeWrapper.java:204) ~[magnolia-core-6.2-SNAPSHOT.jar:?] at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNode(ContentDecoratorNodeWrapper.java:151) ~[magnolia-core-6.2-SNAPSHOT.jar:?] at info.magnolia.ai.image.ImageRecognitionModule.getBytes(ImageRecognitionModule.java:285) ~[magnolia-image-recognition-1.1-SNAPSHOT.jar:?] at info.magnolia.ai.image.ImageRecognitionModule.submitImageRecognitionRequests(ImageRecognitionModule.java:166) ~[magnolia-image-recognition-1.1-SNAPSHOT.jar:?] at info.magnolia.ai.image.ImageRecognitionModule.start(ImageRecognitionModule.java:135) ~[magnolia-image-recognition-1.1-SNAPSHOT.jar:?] at info.magnolia.ai.image.ImageRecognitionModule.lambda$new$0(ImageRecognitionModule.java:115) ~[magnolia-image-recognition-1.1-SNAPSHOT.jar:?]

AC:

  • The Predicate should exclude soft deleted images or ignore these image during `submitImageRecognitionRequest`

 


Generated at Mon Feb 12 02:09:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.