Uploaded image for project: '[Read Only] - Hippo Essentials'
  1. [Read Only] - Hippo Essentials
  2. ESSENTIALS-979

Improve ImageSetUpdater: more robust if jcr:data is not present; upscale per variant.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 3.2.0
    • None
    • Flagged

    Description

      The standard image set updater script failed for a client because the property jcr:data was not present on the original image variant.

      This was improved in the project by adding a session refresh like so

        } catch (RepositoryException e) {
          log.error("Failed in generating image variants", e);
          // added:        
          node.getSession().refresh(false);
        }
      

      Let's put that in the standard script, and possibly also a hasProperty check before this piece of code:

        data.getProperty(JcrConstants.JCR_DATA).getBinary().getStream();
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jhoffman Jeroen Hoffman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: