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

Don't fail on directory names that produce too long table names

    XMLWordPrintable

    Details

    • Tags:
    • Backlog priority:
      200

      Description

      The directory table name "casemanagement_mailbox_sync_state" is 33 characters, that is too long for some databases.
      In Oracle for instance, the limit is 30 characters - the table creation won't work.

      General error:

      org.nuxeo.ecm.directory.DirectoryException: Table 'Table(casemanagement_mailbox_sync_state)' creation failed: ORA-00972: identifier is too long
      	at org.nuxeo.ecm.directory.sql.SQLHelper.createTable(SQLHelper.java:176)
      	at org.nuxeo.ecm.directory.sql.SQLHelper.setupTable(SQLHelper.java:118)
      	at org.nuxeo.ecm.directory.sql.SQLDirectory.<init>(SQLDirectory.java:156)
      	at org.nuxeo.ecm.directory.sql.SQLDirectoryProxy.getDirectory(SQLDirectoryProxy.java:49)
      	at org.nuxeo.ecm.directory.sql.SQLDirectoryProxy.getSession(SQLDirectoryProxy.java:86)
      	at org.nuxeo.ecm.directory.DirectoryServiceImpl.open(DirectoryServiceImpl.java:272)
      Caused by: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long
              ...
      	at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:301)
      	at org.nuxeo.ecm.directory.sql.SQLHelper.createTable(SQLHelper.java:168)
      	... 29 more
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: