Uploaded image for project: 'Image Recognition'
  1. Image Recognition
  2. IMGREC-70

Do not submit ImageRecognitionRequests for soft deleted images

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.1
    • None
    • None

      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`

       

        Acceptance criteria

              oanh.thai Oanh Thai Hoang
              thanh.lehai Le Hai Thanh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 1d 1.5h
                    1d 1.5h