[Rt-devel] FIXED: Can't add new watchers by principal ID via web

Richard Harman rt-devel at richardharman.com
Sun Feb 18 19:07:25 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

With Ruslan steering me in the right direction, I found the problem:

This diff is against 3.7-EXPERIMENTAL-RTIR-2.2, Web.pm rev. 7022.  This
resolves a clobbered regex-match $1 by stashing the principal ID in a
temporary variable.

The issue was this: each successful m// match resets $1 .. $9.  Even
though in the diff I use m/(?:x|y|z)/, the numbered match variables
still get reset to undef. :/

- -----------------------------------------------------------
"Looks like there'll be no money for you, Crazy Round Man."
                                             - Samurai Jack
Richard G Harman Jr           <me+nospam at richardharman.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFF2Oo93rKdb192Vz8RAjaGAJ9VKgBsdesXS2XL51Sqddm4+7InEACeM3jQ
begbTBAWMeqCvAxjDwZ68Ec=
=n2SQ
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RT_Interface_Web-unclobber_principal_addwatcher-3.7-EXPERIMENTAL-RTIR-2.2.diff
Type: text/x-patch
Size: 1063 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20070218/57259451/RT_Interface_Web-unclobber_principal_addwatcher-3.7-EXPERIMENTAL-RTIR-2.2.bin


More information about the Rt-devel mailing list