[
https://jira.jboss.org/jira/browse/JBPORTAL-2195?page=com.atlassian.jira....
]
Thomas Heute updated JBPORTAL-2195:
-----------------------------------
Fix Version/s: 2.7.1 Final
2.6.8 Final
(was: 2.6.7 Final)
(was: 2.7.0 Final)
This doesn't happen on Hypersonic.
MySQL returns a ConstraintViolationException (which is translated in a
DuplicatePortalObjectException)
Creating portal objects with a name or path exceeding 255 characters
fails
--------------------------------------------------------------------------
Key: JBPORTAL-2195
URL:
https://jira.jboss.org/jira/browse/JBPORTAL-2195
Project: JBoss Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Portal Core Admin
Affects Versions: 2.6.6 Final
Reporter: Martin Putz
Assignee: Thomas Heute
Fix For: 2.7.1 Final, 2.6.8 Final
Creating a single portal page with a name longer than 255 characters OR creating multiple
nested portal pages resulting in a path longer than 255 characters fails with the
following exception:
java.sql.BatchUpdateException: Batch entry 0 insert into JBP_OBJECT_NODE
("PATH", NAME, PARENT_KEY, PK) values (test.abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz.asdfasdf sadfasdfasdf, asdfasdf
sadfasdfasdf, NULL, 101) was aborted. Call getNextException to see the cause.
...
at
org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer$1.createChild(PersistentPortalObjectContainer.java:103)
at org.jboss.portal.core.impl.model.portal.ObjectNode.addChild(ObjectNode.java:151)
at
org.jboss.portal.core.impl.model.portal.PortalObjectImpl.addChild(PortalObjectImpl.java:680)
at org.jboss.portal.core.impl.model.portal.PageImpl.createPage(PageImpl.java:74)
The problem is that PersistentPortalObjectContainer.createChild only handles
ConstraintViolationExceptions.
This exception should be handled gracefully and a proper error message should be
displayed instead of the stack trace.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira