[jboss-jira] [JBoss JIRA] Updated: (JBPORTAL-2195) Creating portal objects with a name or path exceeding 255 characters fails

Thomas Heute (JIRA) jira-events at lists.jboss.org
Mon Oct 20 03:57:31 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBPORTAL-2195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Heute updated JBPORTAL-2195:
-----------------------------------

    Fix Version/s: 2.6.7 Final
                   2.7.0 Final


> 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.6.7 Final, 2.7.0 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

        



More information about the jboss-jira mailing list