Uploaded image for project: 'Hippo Essentials'
  1. Hippo Essentials
  2. ESSENTIALS-979

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Similar issues:
    • Flagged:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: