History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: REPOR-133
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: David Peterson
Reporter: Nick Waanders
Votes: 0
Watchers: 0
Operations

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

Space labels recipe fails

Created: 26/Mar/08 09:37 PM   Updated: 04/Apr/08 06:33 AM
Component/s: None
Affects Version/s: 1.3.2
Fix Version/s: 2.1.1

Time Tracking:
Not Specified

File Attachments: 1. Text File reporting-space-label-recipe.txt (16 kb)

Environment: Confluence 2.5.7


 Description  « Hide
I'm wondering if there isn't a problem with your space labels recipe... I tried your example as given, but haven't had any success with it at all - it only produces the space title, none of the label data. (reporting 1.3.2, Confluence 2.5.7)

I then tried using the {expand-on} macro - this did work - I'm using "labels" rather than "labels in content" and will add a boolean filter to get team labels:

{report-table}
{space-reporter:space=@all}
{expand-on:space:labels|as=lbl}
{space-reporter}
{report-column:title=Prefix}{report-info:expanded:item>key}{report-column}
{report-column:title=Space}{report-info:expanded:item}{report-column}
{report-column:title=Label}{report-info:expanded:lbl}{report-column}
{report-column:title=Team}{report-info:expanded:lbl>is team}{report-column}{report-table}

DP: Yeah, you're right. I'd say the issue is that 'labels in content' isn't actually returning the labels in content.
NW: Tried switching "labels in content" to "labels" but that doesn't work either!



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
David Peterson - 27/Mar/08 04:29 AM
For the record, the 'labels' key will list labels on the space itself, while 'labels in content' is supposed to list labels which are attached to content in the space.

David Peterson - 03/Apr/08 04:54 AM
Hi Nick,

I actually can't replicate the problem using Reporting 2.0.2 and Confluence 2.7.1. Is it possible that it is actually a problem with Confluence 2.5 rather than the Reporting plugin?

Could you test with Confluence 2.7 and let me know your results.

In a slightly-related issue, I did uncover a bug in Confluence where it does not correctly generate the URL for team labels. I've logged it with Atlassian here.


Nick Waanders - 03/Apr/08 05:18 AM - edited
Hi David,
On my test installation of confluence 2.7.3. the space labels recipe (using labels in content) produces the following error:

Error formatting macro: report-block: net.customware.confluence.reporting.supplier.SupplierValueException: Error while comparing 'space:name': null
This is not currently in the context of a report.
This is not currently in the context of a report.

I've attached the stack trace.

Nick

ps This installation has v.2.0.1 of the reproting plugin.


David Peterson - 03/Apr/08 08:56 AM
Hi Nick,

Could you please do a test run again with Reporting 2.1.0 (just released - may take a few minutes to hit the repository) and let me know what the results are.

If it's still failing, could you please copy-n-paste the exact markup you're using and I'll try to replicate it.


Nick Waanders - 03/Apr/08 10:19 PM
Hi David - I've ugpraded the plugin to 2.1.0. The error is still occurring as reported above. The markup was copied from the space labels recipe wiki page:
{report-block:output=wiki}
  {space-reporter:space=@all}
      {text-sort:space:name}
  {space-reporter}

{report-body}
h2. {report-info:space:title|link=true}

{report-table}

{local-reporter:space:labels in content}
  {text-sort:label:title}
{local-reporter}

{report-column:title=Label}{report-info:label:title|link=true}{report-column}
{report-column:title=#}{report-info:label:content count}{report-column}
{report-column:title=Content}{report-info:label:content|link=true}{report-column}

{report-table}

{report-body}

{report-block}

David Peterson - 04/Apr/08 02:16 AM
Hi Nick,

I've copy-n-pasted your example into my test server and it works flawlessly. Is it possible you have some bad data in your server which is causing an unexpected condition for the reporting macros?

In any case, could you see if a fuller error stack is in your log files? I've had a quick look for that error message and found the place it's thrown, but it's unclear at what point the NullPointerException is being thrown. The stack trace should have line numbers, which would be most useful.


David Peterson - 04/Apr/08 02:59 AM
Nick - I've created a new issue for this specific problem - REPOR-138. Keep an eye on that issue to see when it is resolved.