Details
-
Bug
-
Resolution: Fixed
-
Medium
-
6.4.3, 6.9.1, 6.10.0, 6.13.10, 6.15.7
-
26
-
Severity 2 - Major
-
5
-
Description
Summary
- Exception when opening drafts page after uninstalling Questions plugin
Environment
- Collaborative editing is ON
- Disabling question plugin
- Questions plugin version 2.5.5 , 2.6.6
Steps to Reproduce
- Install Confluence questions plugin
- Create a test question
- Disable confluence questions plugin
- Navigate to profile>drafts page
Expected Results
Actual Results
The below exception is thrown in the UI as attachment and below the confluence.log file:
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getBodyAsString' in class com.atlassian.confluence.content.CustomContentEntityObject threw exception java.lang.UnsupportedOperationException: The body of this ContentEntityObject \(''\) was 'BodyType:XHTML' but was expected to be 'BodyType:RAW' at /users/viewmydrafts.vm[line 47, column 29]\\ at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:223\)\\ \\ caused by: java.lang.UnsupportedOperationException: The body of this ContentEntityObject \(''\) was 'BodyType:XHTML' but was expected to be 'BodyType:RAW'\\ at com.atlassian.confluence.core.ContentEntityObject.getBodyContent(ContentEntityObject.java:290\)
Workaround options
- First option: Disabling collaborative editing, user should be able to navigate to drafts page normally.
- Second option: Re-enabling question plugin then clear drafts.
Workaround via Database
- Shutdown Confluence.
- Backup database.
- Identify all the drafts created by Questions plugin.
select * from content c where pluginkey='com.atlassian.confluence.plugins.confluence-questions:answer-draft'
- Change the status of all these drafts to deleted.
update content set content_status = 'deleted' where contentid in (select c.contentid from content c where pluginkey='com.atlassian.confluence.plugins.confluence-questions:answer-draft');
- Restart Confluence.
Attachments
Issue Links
- is duplicated by
-
CONFSERVER-56136 Cannot Access My Drafts After Uninstalling Confluence Questions
- Closed
- is incorporated by
-
CONFSERVER-55067 Confluence Questions drafts cannot be edited or discarded
- Closed
- is related to
-
CONFSERVER-55067 Confluence Questions drafts cannot be edited or discarded
- Closed