New and Improved 3.13 Beta. Highlights: Shareable filters and dashboards and lots of other goodies. Any feedback can be raised as JIRA issues in the JIRA project.
Issue Details (XML | Word | Printable)

Key: CONF-8434
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Don Willis [Atlassian]
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Confluence

Exporting spaces with pages containing a ContentPermission may throw an exception

Created: 04/May/07 01:24 AM   Updated: 06/Aug/07 01:04 AM
Component/s: None
Affects Version/s: 2.5
Fix Version/s: 2.5.1, 2.6.0

Time Tracking:
Not Specified

File Attachments: 1. File ContentPermission.class (6 kB)


Participants: Don Willis [Atlassian] and Samuel Le Berrigaud [Atlassian]
Since last comment: 1 year, 3 weeks, 2 days ago
Resolution Date: 06/May/07 06:41 PM
Labels:


 Description  « Hide
Exporting a space that contains a page level permission can throw an exception like this one:

CONFLUENCE
System Error
A system error has occurred - our apologies!

Please contact your Confluence administrator to create a support issue on our support system at http://support.atlassian.com with the following information:

1. a description of your problem and what you were doing at the time it occurred
2. cut & paste the error and system information found below
3. attach the application server log file (if possible).

We will respond as promptly as possible.
Thank you!

Cause:
com.atlassian.confluence.importexport.ImportExportException: Couldn't backup database data.
at com.atlassian.confluence.importexport.impl.AbstractXmlExporter.backupEntities(AbstractXmlExporter.java:181)
caused by: java.lang.NullPointerException
at com.atlassian.confluence.security.ContentPermission.hashCode(ContentPermission.java:257)

Stack Trace: [hide]

com.atlassian.confluence.importexport.ImportExportException: Couldn't backup database data.
at com.atlassian.confluence.importexport.impl.AbstractXmlExporter.backupEntities(AbstractXmlExporter.java:181)
at com.atlassian.confluence.importexport.impl.AbstractXmlExporter.backupEverything(AbstractXmlExporter.java:85)
at com.atlassian.confluence.importexport.impl.FileXmlExporter.backupEverything(FileXmlExporter.java:73)
at com.atlassian.confluence.importexport.impl.AbstractXmlExporter.doExport(AbstractXmlExporter.java:78)
at com.atlassian.confluence.importexport.impl.FileXmlExporter.doExport(FileXmlExporter.java:40)
at com.atlassian.confluence.importexport.impl.XmlExporter.doExport(XmlExporter.java:24)
at com.atlassian.confluence.importexport.DefaultImportExportManager.exportAs(DefaultImportExportManager.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
at $Proxy49.exportAs(Unknown Source)
at com.atlassian.confluence.importexport.actions.ExportSpaceAction.execute(ExportSpaceAction.java:111)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55)
at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:39)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Don Willis [Atlassian] added a comment - 04/May/07 02:12 AM
Patch for 2.5:

Replace

WEB-INF/classes/com/atlassian/confluence/security/ContentPermission

with the attached ContentPermission.class file