Asset shredder not working in 3.8.x

I posted twice to the code.google.com site but thought this would be a
better forum to see if anyone is having the same issues that I am.

Background: we have been using RT and AT for a couple of years now and
the shredder for tickets and assets worked until the update to 3.8.x. I
am currently at version 3.8.2. Here are my two posts to the google code
site:

I am running into issues adding the asset shredder plugin when running
RT 3.8.1 with
AT 1.2.3. I get errors just going to the Shredder page once I add the
plugin files:

Error during compilation of
/opt/rt3/share/html/Admin/Tools/Shredder/Elements/SelectPlugin: Can’t
locate object
method “Type” via package “RT::Shredder::Plugin::Assets” at
/opt/rt3/bin/…/lib/RT/Shredder/Plugin.pm line 141. Stack:
[/opt/rt3/bin/…/lib/RT/Shredder/Plugin.pm:141]
[/opt/rt3/share/html/Admin/Tools/Shredder/Elements/SelectPlugin:72]
[/usr/share/perl5/HTML/Mason/Interp.pm:811]
[/usr/share/perl5/HTML/Mason/Interp.pm:441]
[/usr/share/perl5/HTML/Mason/Request.pm:1093]
[/usr/share/perl5/HTML/Mason/Request.pm:1026]
[/usr/share/perl5/HTML/Mason/Request.pm:1204]
[/opt/rt3/share/html/Admin/Tools/Shredder/index.html:65]
[/opt/rt3/share/html/Admin/Tools/Shredder/autohandler:59]
[/opt/rt3/share/html/Admin/autohandler:49]
[/opt/rt3/share/html/autohandler:308]
AND

We just updated to RT 3.8.2 and tried this again. I think I now know
more relevant
information. We do not use the normal built in Asset types. We have
modified them
to be specific to our Dell computers and have actually removed the built
in types. Could this be our issue? Could someone point me in the right
direction to fix this?
I am a sys admin and have some coding knowledge (but definitely not a
perl expert).
Thanks so much for any information!

Pete

Thanks for any help or direction,

Pete

Peter Boguszewski
Library Systems Administrator
UW Madison - Library Technology Group
pboguszewski@library.wisc.edu
608.262.4768

smime.p7s (3.27 KB)

Peter,

I’m guessing the design of shredder has changed between it’s days as an RT
3.4 extension and it’s current status as a feature of RT 3.8. The asset
shredder hasn’t been upgraded to handle any changes. Patches are welcome.

-ToddOn Thu, Feb 12, 2009 at 3:14 PM, Peter Boguszewski < pboguszewski@library.wisc.edu> wrote:

I posted twice to the code.google.com site but thought this would be a
better forum to see if anyone is having the same issues that I am.

Background: we have been using RT and AT for a couple of years now and the
shredder for tickets and assets worked until the update to 3.8.x. I am
currently at version 3.8.2. Here are my two posts to the google code site:

I am running into issues adding the asset shredder plugin when running RT
3.8.1 with
AT 1.2.3. I get errors just going to the Shredder page once I add the
plugin files:

Error during compilation of
/opt/rt3/share/html/Admin/Tools/Shredder/Elements/SelectPlugin: Can’t
locate object
method “Type” via package “RT::Shredder::Plugin::Assets” at
/opt/rt3/bin/…/lib/RT/Shredder/Plugin.pm line 141. Stack:
[/opt/rt3/bin/…/lib/RT/Shredder/Plugin.pm:141]
[/opt/rt3/share/html/Admin/Tools/Shredder/Elements/SelectPlugin:72]
[/usr/share/perl5/HTML/Mason/Interp.pm:811]
[/usr/share/perl5/HTML/Mason/Interp.pm:441]
[/usr/share/perl5/HTML/Mason/Request.pm:1093]
[/usr/share/perl5/HTML/Mason/Request.pm:1026]
[/usr/share/perl5/HTML/Mason/Request.pm:1204]
[/opt/rt3/share/html/Admin/Tools/Shredder/index.html:65]
[/opt/rt3/share/html/Admin/Tools/Shredder/autohandler:59]
[/opt/rt3/share/html/Admin/autohandler:49]
[/opt/rt3/share/html/autohandler:308]
AND

We just updated to RT 3.8.2 and tried this again. I think I now know more
relevant
information. We do not use the normal built in Asset types. We have
modified them
to be specific to our Dell computers and have actually removed the built in
types. Could this be our issue? Could someone point me in the right
direction to fix this?
I am a sys admin and have some coding knowledge (but definitely not a perl
expert).
Thanks so much for any information!

Pete

Thanks for any help or direction,

Pete


Peter Boguszewski
Library Systems Administrator
UW Madison - Library Technology Group
pboguszewski@library.wisc.edu
608.262.4768


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

I got it working over here.

So in addition to changing any references to RT::Shredder:: from
RTx::Shredder::, the only other error you get is:

[Mon Jan 11 19:50:54 2010] [crit]: Can’t locate object method “SetResolvers” via package “RT::Shredder::Plugin::Assets” at /usr/pkg/sbin/rt-shredder line 287. (/usr/pkg/lib/rt3/RT.pm:377)
Can’t locate object method “SetResolvers” via package “RT::Shredder::Plugin::Assets” at /usr/pkg/sbin/rt-shredder line 287.

If you stub out SetResolvers in RT/Shredder/Plugins/Assets.pm to Return 1
( i.e. sub SetResolvers { return 1 } ),
then it seems to work fine; however I dunno if that is supposed to be the
totally correct way of doing this.

Peter C. Lai | Bard College at Simon’s Rock
Systems Administrator | 84 Alford Rd.
Information Technology Svcs. | Gt. Barrington, MA 01230 USA
peter AT simons-rock.edu | (413) 528-7428