[rt-users] Wrong ticket URL in Links

Nguyen Anh Phu phuna24 at gmail.com
Wed Aug 23 00:45:29 EDT 2006


Hi all,

I install rt-3.6.1 on one PC in my intranet. In my intranet all PCs
get IP Addresses from a DHCP server, there's no DNS server here.
Now I have a question related to WebBaseURL variable. What value
should I set to this variable to make rt accessible from other PCs in
the same intranet?

1. If I set WebBaseURL to "http://localhost", then everything works
fine except links in Links part of a ticket, all of them are use
"http://localhost" for their URL. Are they made by concate

2. If I set WebBaseURL to "" (empty string) then links in Links part
are OK. If I create a new ticket using "Quick ticket creation" it's
OK. However, if I create a new ticket using "New ticket in" button I
get this error:

====================================

error:   	Can't locate object method "host" via package
"URI::_generic" at /opt/rt3_libot/lib/RT/Interface/Web.pm line 193.

context:  	
...  	
189:  	
190:  	# If the user is coming in via a non-canonical
191:  	# hostname, don't redirect them to the canonical host,
192:  	# it will just upset them (and invalidate their credentials)
193:  	if ($uri->host eq $server_uri->host &&
194:  	$uri->port eq $server_uri->port) {
195:  	$uri->host($ENV{'HTTP_HOST'});
196:  	$uri->port($ENV{'SERVER_PORT'});
197:  	}
...  	
code stack:  	/opt/rt3_libot/lib/RT/Interface/Web.pm:193
/opt/rt3_libot/share/html/Ticket/Display.html:162
/opt/rt3_libot/share/html/Ticket/Create.html:300
/opt/rt3_libot/share/html/autohandler:279

raw error

Can't locate object method "host" via package "URI::_generic" at
/opt/rt3_libot/lib/RT/Interface/Web.pm line 193.


Trace begun at /usr/local/share/perl/5.8.4/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object
method "host" via package "URI::_generic" at
/opt/rt3_libot/lib/RT/Interface/Web.pm line 193.^J') called at
/opt/rt3_libot/lib/RT/Interface/Web.pm line 193
RT::Interface::Web::Redirect('/rtlibot/Ticket/Display.html?id=11')
called at /opt/rt3_libot/share/html/Ticket/Display.html line 162
HTML::Mason::Commands::__ANON__('TimeEstimated', '', 'Status', 'new',
'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors',
'phu at hts.ntt-it.co.jp', 'InitialPriority', 0, 'Starts', '', 'Attach',
'', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits',
'minutes', 'Cc', '', 'Subject', 'Testttttttttttttt', 'new-RefersTo',
'', 'FinalPriority', 0, 'TimeLeft', '', 'TimeLeft-TimeUnits',
'minutes', 'RefersTo-new', '', 'Owner', 30, 'DependsOn-new', '',
'new-MemberOf', '', 'MemberOf-new', '', 'Content', '',
'TimeWorked-TimeUnits', 'minutes', 'Due', '') called at
/usr/local/share/perl/5.8.4/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa336890)',
'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue',
'General', 'AdminCc', '', 'Requestors', 'phu at hts.ntt-it.co.jp',
'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '',
'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '',
'Subject', 'Testttttttttttttt', 'new-RefersTo', '', 'FinalPriority',
0, 'TimeLeft', '', 'TimeLeft-TimeUnits', 'minutes', 'RefersTo-new',
'', 'Owner', 30, 'DependsOn-new', '', 'new-MemberOf', '',
'MemberOf-new', '', 'Content', '', 'TimeWorked-TimeUnits', 'minutes',
'Due', '') called at /usr/local/share/perl/5.8.4/HTML/Mason/Request.pm
line 1256
eval {...} at /usr/local/share/perl/5.8.4/HTML/Mason/Request.pm line 1250
HTML::Mason::Request::comp(undef, undef, 'TimeEstimated', '',
'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc',
'', 'Requestors', 'phu at hts.ntt-it.co.jp', 'InitialPriority', 0,
'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new',
'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject',
'Testttttttttttttt', 'new-RefersTo', '', 'FinalPriority', 0,
'TimeLeft', '', 'TimeLeft-TimeUnits', 'minutes', 'RefersTo-new', '',
'Owner', 30, 'DependsOn-new', '', 'new-MemberOf', '', 'MemberOf-new',
'', 'Content', '', 'TimeWorked-TimeUnits', 'minutes', 'Due', '')
called at /opt/rt3_libot/share/html/Ticket/Create.html line 300
HTML::Mason::Commands::__ANON__('TimeEstimated', '', 'Status', 'new',
'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors',
'phu at hts.ntt-it.co.jp', 'InitialPriority', 0, 'Starts', '', 'Attach',
'', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits',
'minutes', 'Cc', '', 'Subject', 'Testttttttttttttt', 'new-RefersTo',
'', 'FinalPriority', 0, 'RefersTo-new', '', 'TimeLeft-TimeUnits',
'minutes', 'TimeLeft', '', 'DependsOn-new', '', 'Owner', 30,
'new-MemberOf', '', 'MemberOf-new', '', 'Content', '', 'Due', '',
'TimeWorked-TimeUnits', 'minutes', 'TimeEstimated', '', 'Status',
'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '',
'Requestors', 'phu at hts.ntt-it.co.jp', 'InitialPriority', 0, 'Starts',
'', 'Attach', '', 'TimeWorked', '', 'id', 'new',
'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject',
'Testttttttttttttt', 'FinalPriority', 0, 'new-RefersTo', '',
'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', '',
'DependsOn-new', '', 'Owner', 30, 'new-MemberOf', '', 'MemberOf-new',
'', 'Content', '', 'Due', '', 'TimeWorked-TimeUnits', 'minutes')
called at /usr/local/share/perl/5.8.4/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa260b18)',
'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue',
'General', 'AdminCc', '', 'Requestors', 'phu at hts.ntt-it.co.jp',
'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '',
'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '',
'Subject', 'Testttttttttttttt', 'new-RefersTo', '', 'FinalPriority',
0, 'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft',
'', 'DependsOn-new', '', 'Owner', 30, 'new-MemberOf', '',
'MemberOf-new', '', 'Content', '', 'Due', '', 'TimeWorked-TimeUnits',
'minutes', 'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '',
'Queue', 'General', 'AdminCc', '', 'Requestors',
'phu at hts.ntt-it.co.jp', 'InitialPriority', 0, 'Starts', '', 'Attach',
'', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits',
'minutes', 'Cc', '', 'Subject', 'Testttttttttttttt', 'FinalPriority',
0, 'new-RefersTo', '', 'RefersTo-new', '', 'TimeLeft-TimeUnits',
'minutes', 'TimeLeft', '', 'DependsOn-new', '', 'Owner', 30,
'new-MemberOf', '', 'MemberOf-new', '', 'Content', '', 'Due', '',
'TimeWorked-TimeUnits', 'minutes') called at
/usr/local/share/perl/5.8.4/HTML/Mason/Request.pm line 1256
eval {...} at /usr/local/share/perl/5.8.4/HTML/Mason/Request.pm line 1250
HTML::Mason::Request::comp(undef, undef, 'TimeEstimated', '',
'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc',
'', 'Requestors', 'phu at hts.ntt-it.co.jp', 'InitialPriority', 0,
'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new',
'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject',
'Testttttttttttttt', 'new-RefersTo', '', 'FinalPriority', 0,
'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', '',
'DependsOn-new', '', 'Owner', 30, 'new-MemberOf', '', 'MemberOf-new',
'', 'Content', '', 'Due', '', 'TimeWorked-TimeUnits', 'minutes',
'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue',
'General', 'AdminCc', '', 'Requestors', 'phu at hts.ntt-it.co.jp',
'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '',
'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '',
'Subject', 'Testttttttttttttt', 'FinalPriority', 0, 'new-RefersTo',
'', 'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft',
'', 'DependsOn-new', '', 'Owner', 30, 'new-MemberOf', '',
'MemberOf-new', '', 'Content', '', 'Due', '', 'TimeWorked-TimeUnits',
'minutes') called at /usr/local/share/perl/5.8.4/HTML/Mason/Request.pm
line 915
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x9fecbf0)',
'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue',
'General', 'AdminCc', '', 'Requestors', 'phu at hts.ntt-it.co.jp',
'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '',
'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '',
'Subject', 'Testttttttttttttt', 'FinalPriority', 0, 'new-RefersTo',
'', 'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft',
'', 'DependsOn-new', '', 'Owner', 30, 'new-MemberOf', '',
'MemberOf-new', '', 'Content', '', 'Due', '', 'TimeWorked-TimeUnits',
'minutes') called at /opt/rt3_libot/share/html/autohandler line 279
HTML::Mason::Commands::__ANON__('TimeEstimated', '', 'Status', 'new',
'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors',
'phu at hts.ntt-it.co.jp', 'InitialPriority', 0, 'Starts', '', 'Attach',
'', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits',
'minutes', 'Cc', '', 'Subject', 'Testttttttttttttt', 'new-RefersTo',
'', 'FinalPriority', 0, 'RefersTo-new', '', 'TimeLeft-TimeUnits',
'minutes', 'TimeLeft', '', 'DependsOn-new', '', 'Owner', 30,
'new-MemberOf', '', 'MemberOf-new', '', 'Content', '', 'Due', '',
'TimeWorked-TimeUnits', 'minutes') called at
/usr/local/share/perl/5.8.4/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9f79364)',
'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue',
'General', 'AdminCc', '', 'Requestors', 'phu at hts.ntt-it.co.jp',
'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '',
'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '',
'Subject', 'Testttttttttttttt', 'new-RefersTo', '', 'FinalPriority',
0, 'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft',
'', 'DependsOn-new', '', 'Owner', 30, 'new-MemberOf', '',
'MemberOf-new', '', 'Content', '', 'Due', '', 'TimeWorked-TimeUnits',
'minutes') called at /usr/local/share/perl/5.8.4/HTML/Mason/Request.pm
line 1251
eval {...} at /usr/local/share/perl/5.8.4/HTML/Mason/Request.pm line 1250
HTML::Mason::Request::comp(undef, undef, undef, 'TimeEstimated', '',
'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc',
'', 'Requestors', 'phu at hts.ntt-it.co.jp', 'InitialPriority', 0,
'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new',
'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject',
'Testttttttttttttt', 'new-RefersTo', '', 'FinalPriority', 0,
'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', '',
'DependsOn-new', '', 'Owner', 30, 'new-MemberOf', '', 'MemberOf-new',
'', 'Content', '', 'Due', '', 'TimeWorked-TimeUnits', 'minutes')
called at /usr/local/share/perl/5.8.4/HTML/Mason/Request.pm line 460
eval {...} at /usr/local/share/perl/5.8.4/HTML/Mason/Request.pm line 460
eval {...} at /usr/local/share/perl/5.8.4/HTML/Mason/Request.pm line 412
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9fecbf0)')
called at /usr/local/share/perl/5.8.4/HTML/Mason/ApacheHandler.pm line
168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9fecbf0)')
called at /usr/local/share/perl/5.8.4/HTML/Mason/ApacheHandler.pm line
826
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x945efec)',
'Apache2::RequestRec=SCALAR(0xa2d2504)') called at
/opt/rt3_libot/bin/webmux.pl line 123
eval {...} at /opt/rt3_libot/bin/webmux.pl line 123
RT::Mason::handler('Apache2::RequestRec=SCALAR(0xa2d2504)') called at -e line 0
eval {...} at -e line 0


====================================

Is it possible to get rt running in intranet without a *fix* name for
the machine hosting it?

Any help would be appreciated.
Best regards,

-- 
Nguyen Anh Phu



More information about the rt-users mailing list