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

Key: REPOR-145
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: David Peterson
Reporter: David Peterson
Votes: 1
Watchers: 1
Operations

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

Injection from 'request:parameters > XXX' outputs the String address instead of the value.

Created: 02/May/08 04:25 PM   Updated: 02/Sep/08 01:45 AM
Component/s: None
Affects Version/s: 2.1.1
Fix Version/s: 3.0.0

Time Tracking:
Not Specified


 Description  « Hide
I used the report macro as you suggested in your earlier reply. But i am getting

Project Information for [Ljava.lang.String;@19d3993

when testing using parameter "project=test" in the url to this page.

{report-on:injected=true}
Project Information for '%request:parameters > project%'
{report-on}


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Bharathi Vedurumudi - 21/May/08 01:45 PM
Hi David,
Is there any update on this bug? is anyone looking into this? please let me know
Thanks
Bharathi

David Peterson - 21/May/08 02:33 PM
Just had a quick look into it. Essentially, parameters are always coming back as a String array, rather than a single string value (you can have multiple parameters with the same name). I've got a fix for the next version, but in the meantime you should be able to get around it by adding "> first" to retrieve the first array item. Eg:
{report-on:injected=true}
Project Information for '%request:parameters > project > first%'
{report-on}

Jonathan Appel [CustomWare] - 02/Sep/08 01:45 AM
Fixed in version 3.0.0, tested against Confluence 2.8.