[request-tracker-maintainers] Bug#848041: request-tracker4 requires allow-blessed in Web.pm
James Zuelow
james.zuelow at juneau.org
Tue Dec 13 13:55:37 UTC 2016
Package: request-tracker4
Version: 4.2.13-4
Severity: important
The request-tracker4 package in testing, combined with the Perl
packages in testing requires a small edit in Web.pm
I run request-tracker4, apache2, and postfix. I've been tracking testing in order to get a newer version of request-tracker4 than is available in Jessie.
After upgrading request-tracker4 when I run the unmodified package, Apache generates a 500 internal
server error as such:
xxxxxxxxx
[31143] [Tue Dec 13 13:29:06 2016] [error]: encountered object '1', but neither allow_blessed, convert_blessed nor allow_tags settings are enabled (or TO_JSON/FREEZE method missing) at /usr/share/perl5/JSON.pm line 154.
Stack:
[/usr/share/perl5/JSON.pm:154]
[/usr/share/request-tracker4/lib/RT/Interface/Web.pm:197]
[/usr/share/request-tracker4/lib/RT/Interface/Web.pm:4065]
[/usr/share/request-tracker4/html/Elements/JavascriptConfig:79]
[/usr/share/request-tracker4/html/Elements/Header:64]
[/usr/share/request-tracker4/html/index.html:4]
[/usr/share/request-tracker4/lib/RT/Interface/Web.pm:681]
[/usr/share/request-tracker4/lib/RT/Interface/Web.pm:369]
[/usr/share/request-tracker4/html/autohandler:53] (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:209)
xxxxxxxxxx
I've tried updating JSON via CPAN, etc. without success. However a simple addition to Web.pm resolves the issue. I've been running this modification in production without any issues. There has been at least one other person on rt-users that has needed this in conjunction with a Debian install, so I'm fairly sure that this isn't being caused by a local modification. (Unless we've both made the same modification without realizing it.) However Best Practical hasn't responded on: rt-users, so this may be Debian specific.
Patch for /usr/share/request-tracker4/lib/RT/Interface/Web.pm:
xxxxxxxxxx
--- Web.pm 2016-12-13 04:40:12.199936566 -0900
+++ Web-jfz.pm 2016-12-13 04:39:53.643473002 -0900
@@ -194,7 +194,7 @@
=cut
sub EncodeJSON {
- my $s = JSON::to_json(shift, { allow_nonref => 1 });
+ my $s = JSON::to_json(shift, { allow_blessed => 1, allow_nonref => 1 });
$s =~ s{/}{\\/}g;
return $s;
}
xxxxxxxxxx
Thank you!
James
-- Package-specific info:
Changed files:
usr/share/request-tracker4/lib/RT/Interface/Web.pm
There are locally modified files in /usr/local/share/request-tracker4/,
these may (or may not) be the source of the problem.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-1-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages request-tracker4 depends on:
ii dbconfig-common 2.0.6
ii debconf [debconf-2.0] 1.5.59
ii fonts-droid-fallback 1:6.0.1r16-1
ii fonts-noto-hinted 20161116-1
ii libapache-session-perl 1.93-2
ii libcgi-emulate-psgi-perl 0.22-1
ii libcgi-pm-perl 4.35-1
ii libcgi-psgi-perl 0.15-2
ii libclass-accessor-perl 0.34-1
ii libconvert-color-perl 0.11-2
ii libcrypt-eksblowfish-perl 0.009-2+b2
ii libcrypt-ssleay-perl 0.73.04-1+b2
ii libcrypt-x509-perl 0.51-1
ii libcss-squish-perl 0.09-1
ii libdata-guid-perl 0.048-1
ii libdata-ical-perl 0.22+dfsg-1
ii libdate-extract-perl 0.05-1
ii libdate-manip-perl 6.56-1
ii libdatetime-format-natural-perl 1.04-1
ii libdatetime-locale-perl 1:1.11-1
ii libdatetime-perl 2:1.41-1
ii libdbi-perl 1.636-1+b1
ii libdbix-searchbuilder-perl 1.67-1
ii libdevel-globaldestruction-perl 0.14-1
ii libemail-address-list-perl 0.05-1
ii libemail-address-perl 1.908-1
ii libencode-perl 2.88-1
ii libfcgi-procmanager-perl 0.25-1
ii libfile-sharedir-perl 1.102-1
ii libfile-which-perl 1.21-1
ii libgd-graph-perl 1.48-2
ii libgd-text-perl 0.86-9
ii libgnupg-interface-perl 0.52-5
ii libgraphviz-perl 2.22-1
ii libhtml-formattext-withlinks-andtables-perl 0.06-1
ii libhtml-formattext-withlinks-perl 0.15-1
ii libhtml-mason-perl 1:1.56-1
ii libhtml-mason-psgihandler-perl 0.53-1
ii libhtml-quoted-perl 0.04-1
ii libhtml-rewriteattributes-perl 0.05-1
ii libhtml-scrubber-perl 0.15-1
ii libhttp-message-perl 6.11-1
ii libipc-run-perl 0.94-1
ii libipc-run3-perl 0.048-1
ii libjson-perl 2.90-1
ii liblist-moreutils-perl 0.416-1+b1
ii liblocale-maketext-fuzzy-perl 0.11-1
ii liblocale-maketext-lexicon-perl 1.00-1
ii liblog-dispatch-perl 2.57-1
ii libmailtools-perl 2.13-1
ii libmime-tools-perl 5.508-1
ii libmime-types-perl 2.13-1
ii libmodule-refresh-perl 0.17-1
ii libmodule-versions-report-perl 1.06-1
ii libnet-cidr-perl 0.18-1
ii libperl5.24 [libencode-perl] 5.24.1~rc4-1
ii libperlio-eol-perl 0.16-1+b1
ii libplack-perl 1.0042-1
ii libregexp-common-net-cidr-perl 0.02-1
ii libregexp-common-perl 2016060801-1
ii libregexp-ipv6-perl 0.03-1
ii librole-basic-perl 0.13-2
ii libstring-shellquote-perl 1.03-1.2
ii libsymbol-global-name-perl 0.05-1
ii libtext-autoformat-perl 1.740000-2
ii libtext-password-pronounceable-perl 0.30-1
ii libtext-quoted-perl 2.09-1
ii libtext-template-perl 1.46-1
ii libtext-wikiformat-perl 0.79-1
ii libtext-wrapper-perl 1.05-2
ii libtime-parsedate-perl 2015.103-2
ii libtimedate-perl 2.3000-2
ii libtree-simple-perl 1.29-1
ii libuniversal-require-perl 0.17-1
ii liburi-perl 1.71-1
ii libwww-perl 6.15-1
ii libxml-rss-perl 1.59-1
ii libxml-simple-perl 2.22-1
ii lsb-base 9.20161125
ii perl 5.24.1~rc4-1
pn perl:any <none>
ii postfix [mail-transport-agent] 3.1.3-4
ii rsyslog [system-log-daemon] 8.23.0-2
ii rt4-apache2 4.2.13-4
ii rt4-clients 4.2.13-4
ii rt4-db-mysql 4.2.13-4
ii ucf 3.0036
Versions of packages request-tracker4 recommends:
ii cron [cron-daemon] 3.0pl1-128
ii libhtml-formatexternal-perl 26-2
ii w3m 0.5.3-33
Versions of packages request-tracker4 suggests:
pn rt4-doc-html <none>
-- debconf information:
request-tracker4/internal/skip-preseed: false
request-tracker4/pgsql/authmethod-admin: ident
* request-tracker4/dbconfig-install: false
request-tracker4/db/app-user: rtuser at localhost
request-tracker4/remote/port: 3306
request-tracker4/database-type: mysql
request-tracker4/remote/host:
request-tracker4/dbconfig-remove:
request-tracker4/missing-db-package-error: abort
* request-tracker4/dbconfig-reinstall: false
request-tracker4/mysql/method: Unix socket
request-tracker4/db/dbname: rtdb
* request-tracker4/organization: rt.cbj.local
request-tracker4/pgsql/authmethod-user: password
request-tracker4/install-error: retry (skip questions)
* request-tracker4/webpath: /rt
request-tracker4/pgsql/no-empty-passwords:
request-tracker4/purge: false
* request-tracker4/correspondaddress: help at mis-rt-lnx.ci.juneau.ak.us
request-tracker4/pgsql/manualconf:
* request-tracker4/webbaseurl: http://rt.cbj.local
* request-tracker4/install-cronjobs: true
request-tracker4/internal/reconfiguring: false
request-tracker4/remote/newhost:
* request-tracker4/commentaddress: help-comment at mis-rt-lnx.ci.juneau.ak.us
request-tracker4/upgrade-backup: true
request-tracker4/pgsql/admin-user: postgres
request-tracker4/remove-error: abort
* request-tracker4/handle-siteconfig-permissions: true
request-tracker4/db/basepath:
request-tracker4/pgsql/changeconf: false
request-tracker4/pgsql/method: TCP/IP
* request-tracker4/mysql/admin-user: root
request-tracker4/upgrade-error: abort
request-tracker4/passwords-do-not-match:
* request-tracker4/rtname: cbj.local
request-tracker4/dbconfig-upgrade: true
More information about the pkg-request-tracker-maintainers
mailing list