Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
11.10.11
-
None
-
Unknown
-
Description
With a page that has a fullname very close to 255 characters (but under), the DocumentMovedListener will fail and block the rename because the information stored in the notifications data will be over to 255 (because the wiki name is added).
This is also breaking the Nested Pages Migrator
Here is the exception.
Caused by: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2553)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2285)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:323)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:473)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:393)
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:164)
at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:130)
at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:136)
at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:136)
at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:197)
at org.hibernate.hql.internal.ast.exec.BasicExecutor.doExecute(BasicExecutor.java:100)
at org.hibernate.hql.internal.ast.exec.BasicExecutor.execute(BasicExecutor.java:59)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.executeUpdate(QueryTranslatorImpl.java:454)
at org.hibernate.engine.query.spi.HQLQueryPlan.performExecuteUpdate(HQLQueryPlan.java:377)
at org.hibernate.internal.SessionImpl.executeUpdate(SessionImpl.java:1420)
at org.hibernate.query.internal.AbstractProducedQuery.doExecuteUpdate(AbstractProducedQuery.java:1623)
at org.hibernate.query.internal.AbstractProducedQuery.executeUpdate(AbstractProducedQuery.java:1605)
at org.xwiki.notifications.filters.internal.DocumentMovedListener.updatePreferences(DocumentMovedListener.java:142)
at org.xwiki.notifications.filters.internal.DocumentMovedListener.onEvent(DocumentMovedListener.java:103)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:320)
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:285)
at org.xwiki.refactoring.internal.job.MoveJob.copyOrMove(MoveJob.java:134)
at org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.maybeCopyOrMove(AbstractCopyOrMoveJob.java:210)
at org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.process(AbstractCopyOrMoveJob.java:151)
at org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.process(AbstractCopyOrMoveJob.java:124)
at org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.process(AbstractCopyOrMoveJob.java:100)
at org.xwiki.refactoring.internal.job.RenameJob.process(RenameJob.java:50)
at org.xwiki.refactoring.internal.job.AbstractEntityJobWithChecks.runInternal(AbstractEntityJobWithChecks.java:65)
at org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.runInternal(AbstractCopyOrMoveJob.java:56)
at org.xwiki.refactoring.internal.job.MoveJob.runInternal(MoveJob.java:68)
at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:242)
at org.xwiki.job.AbstractJob.run(AbstractJob.java:219)
at org.xwiki.contrib.nestedpagesmigrator.internal.executor.RenameJobExecutor.rename(RenameJobExecutor.java:73)
at org.xwiki.contrib.nestedpagesmigrator.internal.executor.MigrationPlanExecutor.moveDocument(MigrationPlanExecutor.java:216)
at org.xwiki.contrib.nestedpagesmigrator.internal.executor.MigrationPlanExecutor.performAction(MigrationPlanExecutor.java:139)
at org.xwiki.contrib.nestedpagesmigrator.internal.executor.MigrationPlanExecutor.performAction(MigrationPlanExecutor.java:153)
at org.xwiki.contrib.nestedpagesmigrator.internal.executor.MigrationPlanExecutor.performAction(MigrationPlanExecutor.java:153)
at org.xwiki.contrib.nestedpagesmigrator.internal.executor.MigrationPlanExecutor.performAction(MigrationPlanExecutor.java:153)
... 14 more
Attachments
Issue Links
- is related to
-
XWIKI-18372 Copy/Rename a page with a long reference should display a warning when the resulted path would be longer than 768 characters
- Open