[rt-users] Can't locate object method "host"

Jeff Blaine jblaine at kickflop.net
Wed Aug 13 20:06:20 EDT 2014


On 8/13/2014 9:24 AM, Kevin Falcone wrote:
> On Tue, Aug 12, 2014 at 12:32:18PM -0400, Jeff Blaine wrote:
>> I keep getting the following errors when using the web UI. Here's one
>> case just now where I logged in as root at https://alms2.foo.com/ and
>> was then immediately thrown an error:
>>
>>     [15332] [Tue Aug 12 15:55:24 2014] [info]: Successful login for root
>> from 1xx.xx.x.165 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:816)
>>     [15332] [Tue Aug 12 15:55:24 2014] [error]: Can't locate object
>> method "host" via package "URI::_foreign" at
>> /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.
>>
>> Visiting https://alms2.mitre.org/ shows I *did* login as root though.
>>
>> Previously, Kevin Falcone had said:
>>
>>     "This is RT trying to issue the redirect after login, what URL did
>>     you use to access RT and what was the next parameter."
>>
>> I had replied:
>>
>>     I'm not sure what you mean by "what was the next parameter".
> 
> Look at the code that calls Redirect (which is where your error comes
> from).
> 
> https://github.com/bestpractical/rt-authen-externalauth/blob/master/html/Elements/DoAuth#L19
> 
> What's $next for your user that errors out.
> 
> You should also always turn on stacktraces when debugging something
> like this.
> 
> -kevin

Thanks for the replies, Kevin and Alex P.

The installed URI version is 1.61.

Here's a login and the error it causes with stacktraces on.

Aug 13 19:58:31 alms2 RT: [27927] Successful login for root from
xxx.xx.0.231#012Trace begun at /opt/rt4/sbin
/../lib/RT.pm line
298#012Log::Dispatch::__ANON__('Log::Dispatch=HASH(0x1e0e6c8)',
'Successful login for root from xxx.xx.0.231') called at
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line
816#012RT::Interface::Web::AttemptPasswordAuthentication('HASH(0x7485080)')
called at /opt/rt4/share/html/NoAuth/Login.html line
49#012HTML::Mason::Commands::__ANON__('pass', 'REDACTEDPASSWORD',
'next', '7809d15aff10a9764adc454707dbf271', 'user', 'root') called at
/usr/local/share/perl5/HTML/Mason/Component.pm line
138#012HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x759be50)',
'pass', 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271',
'user', 'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm
line 1305#012eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm
line 1295#012HTML::Mason::Request::comp(undef, undef, undef, 'pass',
'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271', 'user',
'root') called at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
600#012RT::Interface::Web::MaybeShowNoAuthPage('HASH(0x75fa250)') called
at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
315#012RT::Interface::Web::HandleRequest('HASH(0x75fa250)') called at
/opt/rt4/share/html/autohandler line
53#012HTML::Mason::Commands::__ANON__('pass', 'REDACTEDPASSWORD',
'next', '7809d15aff10a9764adc454707dbf271', 'user', 'root') called at
/usr/local/share/perl5/HTML/Mason/Component.pm line
138#012HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x75d6f68)',
'pass', 'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271',
'user', 'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm
line 1300#012eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm
line 1295#012HTML::Mason::Request::comp(undef, undef, undef, 'pass',
'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271', 'user',
'root') called at /usr/local/share/perl5/HTML/Mason/Request.pm line
484#012eval {...} at /usr/local/share/perl5/HT

Aug 13 19:58:31 alms2 RT: [27927] Can't locate object method "host" via
package "URI::_foreign" at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line
935.#012#012Stack:#012
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:935]#012
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:830]#012
[/opt/rt4/share/html/NoAuth/Login.html:49]#012
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:600]#012
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:315]#012
[/opt/rt4/share/html/autohandler:53]#012Trace begun at
/opt/rt4/sbin/../lib/RT.pm line
298#012Log::Dispatch::__ANON__('Log::Dispatch=HASH(0x1e0e6c8)', 'Can\'t
locate object method "host" via package "URI::_foreign" at
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 935.^J^JStack:^J
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:935]^J
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:830]^J
[/opt/rt4/share/html/NoAuth/Login.html:49]^J
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:600]^J
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:315]^J
[/opt/rt4/share/html/autohandler:53]^J') called at
/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm line
209#012HTML::Mason::Exception::as_rt_error('HTML::Mason::Exception=HASH(0x78f6ee8)')
called at /usr/local/share/perl5/HTML/Mason/Exceptions.pm line
282#012HTML::Mason::Exception::as_string('HTML::Mason::Exception=HASH(0x78f6ee8)',
undef, '') called at /usr/local/share/perl5/HTML/Mason/Request.pm line
570#012HTML::Mason::Request::_handle_error('RT::Interface::Web::Request=HASH(0x73a54b8)',
'HTML::Mason::Exception=HASH(0x78f6ee8)') called at
/usr/local/share/perl5/HTML/Mason/Request.pm line
521#012HTML::Mason::Request::exec('RT::Interface::Web::Request=HASH(0x73a54b8)')
called at /usr/local/share/perl5/HTML/Mason/PSGIHandler.pm line
96#012eval {...} at /usr/local/share/perl5/HTML/Mason/PSGIHandler.pm
line
96#012HTML::Mason::Request::PSGI::exec('RT::Interface::Web::Request=HASH(0x73a54b8)')
called at /usr/local/share/perl5/HTML/Mason/Interp.pm line
345#012HTML::Mason::Interp::exec(undef, undef, 'pass',
'REDACTEDPASSWORD', 'next', '7809d15aff10a9764adc454707dbf271', 'user',
'root') call

-- 
Jeff Blaine
kickflop.net
PGP/GnuPG Key ID: 0x0C8EDD02



More information about the rt-users mailing list