Re: Unable to bulk update Assets

Shawn M Moore <[email protected]> Wed, 8 Feb 2017 15:58:27 -0500
Newsgroups gmane.comp.bug-tracking.request-tracker.user
Message-ID <[email protected]>
--Apple-Mail=_22C7801C-7066-45A2-B861-2A6E69F4C4EC
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi Chris,

> On Feb 8, 2017, at 15:28, Chris McClement <[email protected]> =
wrote:
>=20
> I'm unable to apply any bulk updates to custom fields in my Asset =
database. For example, I have a Custom Field called "Asset Category". I =
have configured the CF to be filled from a dropdown list ("Select one =
value") and defined a range of categories to select from. Applying a =
bulk update to assets where I've selected, for example, setting the CF =
to "PC" (or any of the other options I've defined) fails with the =
following message displayed in the web browser:
>=20
> An internal RT error has occurred. Your administrator can find more =
details in RT's log files.
>=20
> I've had a look in my syslog, and every time I attempt this bulk =
update, the following two entries appear:
>=20
> Feb  9 09:17:06 rt RT: [11319] Use of uninitialized value $1 in hash =
element at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 3164.
> Feb  9 09:17:06 rt RT: [11319] Can't call method "new" without a =
package or object reference at /opt/rt4/sbin/../lib/RT/Interface/Web.pm =
line 3099.#012#012Stack:#012  =
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:3099]#012  =
[/opt/rt4/share/html/Asset/Search/Bulk.html:183]#012  =
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:696]#012  =
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:375]#012  =
[/opt/rt4/share/html/autohandler:53]
>=20
> Does anyone have an ideas what might be causing this?

We have a fix for this in the upcoming releases of RT; in the meantime =
you can apply the patch to your RT instance:

=
https://github.com/bestpractical/rt/commit/0cf934de1da1cea2433c9da3946357b=
da9c16c7f.patch =
<https://github.com/bestpractical/rt/commit/0cf934de1da1cea2433c9da3946357=
bda9c16c7f.patch>

> For completeness, applying a bulk update to one of the core fields =
(e.g. "Owner") works fine.

Yes, the bug affects only custom fields.

Best,
Shawn=

--Apple-Mail=_22C7801C-7066-45A2-B861-2A6E69F4C4EC
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi Chris,<div class=3D""><br class=3D""><div><blockquote =
type=3D"cite" class=3D""><div class=3D"">On Feb 8, 2017, at 15:28, Chris =
McClement &lt;<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D"">I'm unable to apply any bulk updates to custom fields in my =
Asset database. For example, I have a Custom Field called "Asset =
Category". I have configured the CF to be filled from a dropdown list =
("Select one value") and defined a range of categories to select from. =
Applying a bulk update to assets where I've selected, for example, =
setting the CF to "PC" (or any of the other options I've defined) fails =
with the following message displayed in the web browser:<div =
class=3D""><br class=3D""></div><div class=3D""><span =
style=3D"font-family: times; font-size: inherit;" class=3D"">An internal =
RT error has occurred. Your administrator can find more details in RT's =
log files.</span><br class=3D""></div><div class=3D""><span =
style=3D"font-family: times; font-size: inherit;" class=3D""><br =
class=3D""></span></div>I've had a look in my syslog, and every time I =
attempt this bulk update, the following two entries appear:<div =
class=3D""><span style=3D"font-family: times; font-size: inherit;" =
class=3D""><br class=3D""></span></div><div class=3D""><div =
class=3D""><font face=3D"times" size=3D"3" class=3D"">Feb &nbsp;9 =
09:17:06 rt RT: [11319] Use of uninitialized value $1 in hash element at =
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 3164.</font></div><div =
class=3D""><font face=3D"times" size=3D"3" class=3D"">Feb &nbsp;9 =
09:17:06 rt RT: [11319] Can't call method "new" without a package or =
object reference at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line =
3099.#012#012Stack:#012 =
&nbsp;[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:3099]#012 =
&nbsp;[/opt/rt4/share/html/Asset/Search/Bulk.html:183]#012 =
&nbsp;[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:696]#012 =
&nbsp;[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:375]#012 =
&nbsp;[/opt/rt4/share/html/autohandler:53]</font></div><div =
style=3D"font-family: times; font-size: inherit;" class=3D""><br =
class=3D""></div></div>Does anyone have an ideas what might be causing =
this?<br class=3D""></div></div></blockquote><div><br class=3D""></div>We =
have a fix for this in the upcoming releases of RT; in the meantime you =
can apply the patch to your RT instance:</div><div><br =
class=3D""></div><div><a =
href=3D"https://github.com/bestpractical/rt/commit/0cf934de1da1cea2433c9da=
3946357bda9c16c7f.patch" =
class=3D"">https://github.com/bestpractical/rt/commit/0cf934de1da1cea2433c=
9da3946357bda9c16c7f.patch</a></div><div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D""><div dir=3D"ltr" class=3D"">For =
completeness, applying a bulk update to one of the core fields (e.g. =
"Owner") works fine.</div>
</div></blockquote></div><br class=3D""></div><div class=3D"">Yes, the =
bug affects only custom fields.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Best,</div><div =
class=3D"">Shawn</div></body></html>=

--Apple-Mail=_22C7801C-7066-45A2-B861-2A6E69F4C4EC--