Ticket creation from web interface fails undefined ParseAddressFromHeader

Hi,

Because I did not get an answer on the user mailing list and have a
suspicion my problem is not a configuration issue but has to do with
me making a mistake during update, I am trying my luck here.

Upon creation of a ticket through the web interface I get the following error:

Undefined subroutine &RT::EmailParser::ParseAddressFromHeader called
at /opt/rt3/bin/…/lib/RT/User_Local.pm line 272.

My staff has reported this error recently, but it might be related to
an update from 3.8.2 to 3.8.4 as that is the last change that was made
to our installation. In the wiki and lists I could only find this
error in relation to LDAP authentication. We are in fact
authenticating using LDAP (AD). Here is our full setup

Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.4 PHP/5.2.3-1ubuntu6.5
mod_ssl/2.2.8 OpenSSL/0.9.8g mod_perl/2.0.3 Perl/v5.8.8

Any suggestions as on where to start looking for a fix to this problem?

I can see the routine ParseAddressFromHeader does not exist in
/opt/rt3/lib/RT/EmailParser.pm. I have installed all perl mail
functionality I could find using CPAN.

Sorry for duplicating this issue on two mail lists.

Thanks a lot!

– Jac

This function probably is in RT/Interface/Email.pm.On Tue, Sep 1, 2009 at 9:16 AM, Jac Gubbelsjhj.gubbels@gmail.com wrote:

Hi,

Because I did not get an answer on the user mailing list and have a
suspicion my problem is not a configuration issue but has to do with
me making a mistake during update, I am trying my luck here.

Upon creation of a ticket through the web interface I get the following error:

Undefined subroutine &RT::EmailParser::ParseAddressFromHeader called
at /opt/rt3/bin/…/lib/RT/User_Local.pm line 272.

My staff has reported this error recently, but it might be related to
an update from 3.8.2 to 3.8.4 as that is the last change that was made
to our installation. In the wiki and lists I could only find this
error in relation to LDAP authentication. We are in fact
authenticating using LDAP (AD). Here is our full setup

Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.4 PHP/5.2.3-1ubuntu6.5
mod_ssl/2.2.8 OpenSSL/0.9.8g mod_perl/2.0.3 Perl/v5.8.8

Any suggestions as on where to start looking for a fix to this problem?

I can see the routine ParseAddressFromHeader does not exist in
/opt/rt3/lib/RT/EmailParser.pm. I have installed all perl mail
functionality I could find using CPAN.

Sorry for duplicating this issue on two mail lists.

Thanks a lot!

– Jac


List info: The rt-devel Archives

Best regards, Ruslan.

[…]

Upon creation of a ticket through the web interface I get the
following error:

Undefined subroutine &RT::EmailParser::ParseAddressFromHeader called
at /opt/rt3/bin/…/lib/RT/User_Local.pm line 272.
[…]
Any suggestions as on where to start looking for a fix to this problem?

I would suggest you start looking at /opt/rt3/lib/RT/User_Local.pm.
What code is in there? Where did it come from?

The default RT installation does not contain User_Local.pm…
You may have created it yourself or it may have been installed by a
plugin or you may have found it on the wiki or… without seeing the
code it is impossible to tell. (nor to fix it)

(You might also want to take a look at
LdapSummary - Request Tracker Wiki )

Best regards,

Bram

Thank you for that info. I did not even realize User_Local was
none-native to RT. Mr. Zakirov’s patch does the job though. Thanks a
lot for all your help.
– JacOn Tue, Sep 1, 2009 at 7:47 PM, Bramrtdevel@lists.wizbit.be wrote:

[…]

Upon creation of a ticket through the web interface I get the following
error:

Undefined subroutine &RT::EmailParser::ParseAddressFromHeader called
at /opt/rt3/bin/…/lib/RT/User_Local.pm line 272.

[…]

Any suggestions as on where to start looking for a fix to this problem?

I would suggest you start looking at /opt/rt3/lib/RT/User_Local.pm.
What code is in there? Where did it come from?

The default RT installation does not contain User_Local.pm…
You may have created it yourself or it may have been installed by a plugin
or you may have found it on the wiki or… without seeing the code it is
impossible to tell. (nor to fix it)

(You might also want to take a look at
LdapSummary - Request Tracker Wiki )

Best regards,

Bram

The following lines instead of lines 272-273 will probably fix issue.

my ( $Address, $Name ) =
    RT::Interface::Email::ParseAddressFromHeader($email);

This is old overlay for LDAP integration these days with RT 3.8 you
probably should use RT-Extension-ExternalAuth.On Tue, Sep 1, 2009 at 4:02 PM, Jac Gubbelsjhj.gubbels@gmail.com wrote:

Man you’re great. I do not intend to have you figure out something
stupid that I should be able to find myself though. If so, just give
me a pointer and I’ll dive back in myself. Need to learn this stuff
anyway. Otherwise, great if you can provide a patch of course (bid odd
though that that’s necessary given the fact that to the best of my
knowledge I followed upgrade instructions carefully!?)
Cheers – Jac

On Tue, Sep 1, 2009 at 2:46 PM, Ruslan Zakirovruslan.zakirov@gmail.com wrote:

Jac, If you show me that User_Local.pm then probably I can help with a patch.

On Tue, Sep 1, 2009 at 3:44 PM, Jac Gubbelsjhj.gubbels@gmail.com wrote:

I can see the file and the function in it, but do not understand what
causes the error. Is there a path problem somehow caused by the
update? Forgive me my ignorance but I do not know very much about
perl. Appreciate your help very much though!
– Jac

On Tue, Sep 1, 2009 at 1:44 PM, Ruslan Zakirovruslan.zakirov@gmail.com wrote:

This function probably is in RT/Interface/Email.pm.

On Tue, Sep 1, 2009 at 9:16 AM, Jac Gubbelsjhj.gubbels@gmail.com wrote:

Hi,

Because I did not get an answer on the user mailing list and have a
suspicion my problem is not a configuration issue but has to do with
me making a mistake during update, I am trying my luck here.

Upon creation of a ticket through the web interface I get the following error:

Undefined subroutine &RT::EmailParser::ParseAddressFromHeader called
at /opt/rt3/bin/…/lib/RT/User_Local.pm line 272.

My staff has reported this error recently, but it might be related to
an update from 3.8.2 to 3.8.4 as that is the last change that was made
to our installation. In the wiki and lists I could only find this
error in relation to LDAP authentication. We are in fact
authenticating using LDAP (AD). Here is our full setup

Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.4 PHP/5.2.3-1ubuntu6.5
mod_ssl/2.2.8 OpenSSL/0.9.8g mod_perl/2.0.3 Perl/v5.8.8

Any suggestions as on where to start looking for a fix to this problem?

I can see the routine ParseAddressFromHeader does not exist in
/opt/rt3/lib/RT/EmailParser.pm. I have installed all perl mail
functionality I could find using CPAN.

Sorry for duplicating this issue on two mail lists.

Thanks a lot!

– Jac


List info: The rt-devel Archives


Best regards, Ruslan.


Best regards, Ruslan.

Best regards, Ruslan.