Ticket #440 (closed Bug)

Opened 3 years ago

Last modified 3 years ago

navigation query node with nested body resolves context-values wrong

Reported by: mpo@… Owned by: somebody
Priority: Major Milestone:
Component: Ext - navigation trees Version: 2.0
Keywords: Cc:

Description

[jira2trac import : issue created on April 5, 2007 2:45:00 AM CEST http://issues.cocoondev.org/browse/DSY-440 ]

As reported by Alan Mortensen on the list:
http://lists.cocoondev.org/pipermail/daisy/2007-April/006269.html

a nested query referencing ${1}, ${documentId}, ... inserts some strange toString version of 'org.outerj.daisy.navigation.impl.ContextValue?' into the statement, it should however insert the actual values contained in those objects.

A fast first checkup of the ContextResolver? code shows that for dates and links the value.getValue() is formatted, while in the default case the toString is directly called on the value object.

Just changing that seems to enable most of the suggested nested query statements.
A patch will be provided. Some extra testing might be due though.

Attachments

10640_DSY-440-patch.txt (942 bytes) - added by paul 3 years ago.
DSY-440-patch.txt

Change History

Changed 3 years ago by paul

DSY-440-patch.txt

comment:1 Changed 3 years ago by paul

  • Status changed from new to closed

[jira2trac import : comment created by mpo on April 5, 2007 2:46:19 AM CEST]

patch inserting the extra getValue()

comment:2 Changed 3 years ago by paul

[jira2trac import : comment created by mpo on April 5, 2007 9:35:03 AM CEST]

fix committed in revision 3921
http://svn.cocoondev.org/viewsvn?rev=3921&view=rev

Note: See TracTickets for help on using tickets.