Bug 755721 - Request Tracker RT3 perl deprecated errors and crashes
Summary: Request Tracker RT3 perl deprecated errors and crashes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rt3
Version: 16
Hardware: i686
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Ralf Corsepius
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-21 21:06 UTC by Trevor Cordes
Modified: 2012-02-10 21:59 UTC (History)
4 users (show)

Fixed In Version: rt3-3.8.11-6.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-10 21:54:57 UTC
Type: ---


Attachments (Terms of Use)

Description Trevor Cordes 2011-11-21 21:06:15 UTC
Description of problem:
Perl upgrades in F16 break some of RT3.

Version-Release number of selected component (if applicable):
perl-5.14.2-190.fc16.i686
rt3-3.8.10-4.fc16.noarch

How reproducible:
always

Steps to Reproduce:
1. Install F16
2. Install RT3
3. set up rt3 and access pages, such as a ticket search page
  
Actual results:
Error during compilation of /usr/share/rt3/html/Search/Elements/SelectChartType: Use of qw(...) as parentheses is deprecated at /usr/share/rt3/html/Search/Elements/SelectChartType line 53. 
and similar errors.

Some pages finish loading and allow use even though errors are shown, some pages (like the reply to ticket page) fail to compile, breaking the app.

Expected results:
No warnings, no crashes.

Additional info:
For each warning, going into the named source file and changing instances of qw(foo bar) to proper syntax ('foo','bar') fixes the errors and everything works (so far, not all pages tested).

Comment 1 Trevor Cordes 2012-01-26 21:11:31 UTC
Latest RT3 version yum update still has the bug.  And it undid all my changes (of course) so now I have to redo them.  Surely I can't be the only one seeing this bug?  Doesn't anyone else run RT3 on Fedora?

rt3-3.8.10-5.fc16.noarch

Comment 2 Xavier Bachelot 2012-01-26 21:25:56 UTC
According to the changelog, this should be fixed in rt 3.8.11. Ralf pushed this release to rawhide a few days ago, so I guess it will be in Fedora 16 soon.

Comment 3 Ralf Corsepius 2012-01-27 09:56:54 UTC
(In reply to comment #2)
> According to the changelog, this should be fixed in rt 3.8.11. Ralf pushed this
> release to rawhide a few days ago, so I guess it will be in Fedora 16 soon.

Hmm, I am hesitant to do so, because to my knowledge, rt-3.8.11 once again 
is data-base incompatible to it predecessors. I.e. I would expect such an upgrade to break existing installations and would require users to manually intervene, because we still can't handle db-upgrades from inside of rpm (It's unlikely this will ever change).

That said, if you (Trevor or Xavier) want to try yourself, you could try to rebuild the rawhide/f17 rt3 rpm for f16 and try to use it.
Unfortunately, I currently can't easily test myself 
(I scratched my local rt3 test installation to test rt4).

Comment 4 Trevor Cordes 2012-01-27 14:43:21 UTC
What if I make patches that fix the few errors in 3.8.10 so that F16 3.8.10 can work properly throughout the remainder of F16's life?

Comment 5 Xavier Bachelot 2012-01-28 01:06:38 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > According to the changelog, this should be fixed in rt 3.8.11. Ralf pushed this
> > release to rawhide a few days ago, so I guess it will be in Fedora 16 soon.
> 
> Hmm, I am hesitant to do so, because to my knowledge, rt-3.8.11 once again 
> is data-base incompatible to it predecessors. I.e. I would expect such an
> upgrade to break existing installations and would require users to manually
> intervene, because we still can't handle db-upgrades from inside of rpm (It's
> unlikely this will ever change).
> 
I don't see DB updates from 3.8.10 to 3.8.11 in the release notes, did I miss something ?

(In reply to comment #4)
> What if I make patches that fix the few errors in 3.8.10 so that F16 3.8.10 can
> work properly throughout the remainder of F16's life?
If 3.8.11 can't be used, that would be a good idea. From a quick glance, you can probably pick the commits from RT's git repo, the fixes for this issue are in the 3.8/qw-deprecations branch.

Comment 6 Ralf Corsepius 2012-01-30 09:00:53 UTC
Thoughout last weekend, I installed a F16/rt3 testsystem on a spare box and exercised a couple of tests.

In a nutshell: To my big surprise, I found many bugs in 3.8.10, related to 2 topics:

1. mysql incompatibilities between rt-3.8.10's mysql database initialization files and Fedora's mysql.

[@Xavier: IIUC, these probably also hit CentOS.
Try to set up rt3 as described in /usr/share/doc/rt3-*/README.fedora.
For me, /usr/sbin/rt-setup-database failed miserably.
]

Running rt's testsuite on a live rt3-installation also exposed them.

2. Running rt's testsuite on a live system exposed plenty of the qw() issues.


Both issues seem to be addressed in rtems-3.8.11. Also, I haven't noticed any db-incompatibilities between 3.8.10 and 3.8.11, but this doesn't mean much due to the limited amount of tests I performed.

To summarize: I am leaning to upgrade rt3 on all Fedoras to 3.8.11, even if this should break the data bases, because the current rt3-3.8.10 seems unusable.

Comment 7 Fedora Update System 2012-01-31 15:12:56 UTC
rt3-3.8.11-6.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/rt3-3.8.11-6.fc16

Comment 8 Fedora Update System 2012-01-31 15:13:05 UTC
rt3-3.8.11-6.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/rt3-3.8.11-6.fc15

Comment 9 Fedora Update System 2012-01-31 21:54:39 UTC
Package rt3-3.8.11-6.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rt3-3.8.11-6.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-1051/rt3-3.8.11-6.fc15
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2012-02-10 21:54:57 UTC
rt3-3.8.11-6.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2012-02-10 21:59:55 UTC
rt3-3.8.11-6.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.