Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18075

Fix Picture migration for pictures with no filename

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.4
    • Fix Version/s: 7.10
    • Component/s: Image Management

      Description

      This may occur on a 7.3 instance when there is an old Picture with no filename, and this causes a startup failure on 7.4.

      2015-10-05 10:58:01,808 ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Component service:org.nuxeo.ecm.core.repository.RepositoryServiceComponent notification of application started failed.
      java.lang.NullPointerException
              at org.nuxeo.ecm.platform.picture.PictureMigrationHandler.migratePicture(PictureMigrationHandler.java:152)
              at org.nuxeo.ecm.platform.picture.PictureMigrationHandler.doMigration(PictureMigrationHandler.java:97)
              at org.nuxeo.ecm.platform.picture.PictureMigrationHandler.doInitializeRepository(PictureMigrationHandler.java:76)
              at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:86)
              at org.nuxeo.ecm.core.repository.RepositoryService$3.run(RepositoryService.java:144)
      

      Note that a workaround in such cases is to execute in the database:

      UPDATE content SET name = '' WHERE name IS NULL;
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: