Issue Details (XML | Word | Printable)

Key: REPOR-174
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: David Peterson
Reporter: Tony Atkins
Votes: 0
Watchers: 0
Operations

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

Text sort of list data fails when using content reporter...

Created: 15/Aug/08 03:09 PM   Updated: 29/Sep/08 08:24 AM
Component/s: {content-reporter}
Affects Version/s: 2.1.1
Fix Version/s: 3.0.1

Time Tracking:
Not Specified

File Attachments: 1. Text File SampleChild20080815.txt (0.1 kB)
2. Text File SampleReport20080815.txt (1 kB)

Image Attachments:

1. reportingScreen20080815.png
(81 kB)


 Description  « Hide
Sorting using list data elements in a report-block or report-table that uses the content-reporter throws an error like:

Error formatting macro: report-block: net.customware.confluence.reporting.supplier.SupplierValueException: Error while comparing 'data:Sort Value': Unsupported class type - org.randombits.confluence.metadata.reference.WikiReference
This is not currently in the context of a report.
This is not currently in the context of a report.
This is not currently in the context of a report.

Removing the sort completely eliminates the problem. I've aso found I can work around this by using the local reporter in cases where I only care about the children of a particular page. I will include sample source in a comment shortly.

I'm not sure if this is related to REPOR-144, so I'm putting it in as a new issue.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Tony Atkins added a comment - 15/Aug/08 03:16 PM
I have attached a screen shot and sample code.

These examples were prepared in confluence 2.9, forgot to mention that.


David Peterson added a comment - 15/Aug/08 04:02 PM
It probably shouldn't throw the exception, but to resolve your issue, try this sort instead:
{text-sort:data:Sort Value > reference:value}

This will give it an actual text value to sort on, rather than the WikiReference object which is stored by 'label-option'.

I'll leave this open so we have a look at making the exception a little less ugly.

Also, as noted elsewhere, Confluence 2.9 isn't supported at this point, although I don't think that is causing the problem here.


Tony Atkins added a comment - 15/Aug/08 04:10 PM
Thanks for the workaround, that's perfect.

David Peterson added a comment - 03/Sep/08 12:25 PM
The next version resolves the exception output problem, and also lets you do a text-sort directly on a list-data 'reference' object (or any other object), based on its 'toString' value.

Tony Atkins added a comment - 26/Sep/08 03:54 PM
I just updated to 3.0.0, the problem still persists. Will the fix be in a later version? I'm happy with the workaround for now, just wondering.

David Peterson added a comment - 27/Sep/08 12:05 AM
Hmm. I had thought it was resolved. I'll check it again for the next release.

David Peterson added a comment - 29/Sep/08 08:24 AM
Hi Tony,

I've replicated the issue this time, and resolved it for the next version. Let me know again if there are still issues.