Issue Details (XML | Word | Printable)

Key: VISIB-27
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Unassigned
Reporter: sjungling@csuchico.edu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Visibility Plugin

Confluence crashes when trying to save a page that uses {show-to:group}

Created: 25/Oct/07 10:07 PM   Updated: 15/Nov/07 06:54 AM
Component/s: {show-to}
Affects Version/s: 1.5
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. File catalina.out (39 kB)
2. Text File confluence_screen.txt (11 kB)
3. Text File LinkParserHelper.class (4 kB)
4. Text File stack_trace.txt (22 kB)

Environment: Confluence 2.6


 Description  « Hide
When trying to edit and save a page that uses the {show-to:group=my-groups} macro, Confluence dies. If I use just plain ol {show-to} (which I understand wouldn't really do anything) it appears to work.

Stack Trace:



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
David Peterson added a comment - 26/Oct/07 03:31 AM - edited
I've replicated this issue. There is a bug in Confluence where macros which return null from the 'getBodyRenderMode()' method (which is quite legitimiate, and in fact the only way to get certain types of rendering happening) throw a NullPointerException, which triggers the exception shown to the user. It has been fixed for Confluence 2.6.1, which is imminent.

In the meantime, I'm attaching a fixed class file (LinkParserHelper.class) which needs to be put in the following location in your Confluence home directory:

/confluence/WEB-INF/classes/com/atlassian/confluence/links

You will have to create the 'links' directory.


David Peterson added a comment - 26/Oct/07 03:32 AM
Attached a fixed LinkParserHelper class file. Confluence should be restarted after putting this file in '/confluence/WEB-INF/com/atlassian/confluence/links'.


David Peterson added a comment - 27/Oct/07 01:38 AM
Hi Scott,

The NullPointerException is exactly what the patched class file is supposed to fix. I just noticed my earlier comment was incorrect - the path should be this:

/confluence/WEB-INF/classes/com/atlassian/confluence/links

Note the extra 'confluence' in there. Sorry about that...I'll edit my previous comment to clarify things for other.



David Peterson added a comment - 15/Nov/07 06:54 AM
Closing as 'Won't Fix' as this is technically a Confluence bug, which is resolved in Confluence 2.6.1, now available.