Grails

Regression - "attrs" passed to taglib used to support clone() but doesn't in RC2

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.2-RC2
  • Fix Version/s: 1.2 final
  • Component/s: None
  • Labels:
    None

Description

This breaks any code that uses attrs.clone() in tags, which is probably a niche situation but nevertheless used to be perfectly viable. Breaks Authentication plugin currently, but can be worked around in a new release of auth plugin if need be.

Workaround I imagine is:

def x = attrs.clone() ===> def x = [:] + attrs

[deleted comment re: Weceem duh Weceem uses Acegi plugin]

Activity

Hide
Marc Palmer added a comment -

If you can't get around to fixing this, don't do it on account of authentication plugin. I have released 2.0.1 of the auth plugin that uses the above workaround.

Show
Marc Palmer added a comment - If you can't get around to fixing this, don't do it on account of authentication plugin. I have released 2.0.1 of the auth plugin that uses the above workaround.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: