groovy

XmlTemplateEngine does not handle namespace prefixes correctly

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6-rc-1
  • Fix Version/s: 1.6.4, 1.7-beta-1
  • Component/s: XML Processing
  • Labels:
    None
  • Number of attachments :
    0

Description

XmlTemplateEngine$GspPrinter#boolean printSpecialNode(Node) contains qn.getPrefix().equals("gsp") in a condition.

So http://groovy.codehaus.org/2005/gsp will not be processed if another prefix than gsp is used.

Issue Links

Activity

Hide
Paul King added a comment -

I changed the code to accept the uri as well. It would be nicer to have just the uri but for legacy reasons I have left that check in too. JavaDoc and tests have also been improved.

Show
Paul King added a comment - I changed the code to accept the uri as well. It would be nicer to have just the uri but for legacy reasons I have left that check in too. JavaDoc and tests have also been improved.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: