Open
Bug 1256003
Opened 10 years ago
Updated 9 years ago
Fix feature description lookup for missing features (e.g. rest.cgi dying when required modules for features are missing)
Categories
(Bugzilla :: WebService, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: Frank, Assigned: dylanAtHome)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9
Steps to reproduce:
I setup an vagrant / virtual box test environment (using ubuntu/wily64 )
I follow the steps from http://bugzilla.readthedocs.org/en/latest/installing/quick-start.html.
Actual results:
The REST get http://localhost:2080/bugzilla-rest-master/rest.cgi/login?login=tests@mylyn.eclipse.org&password=mylyntest
fails with
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
webmaster@localhost to inform them of the time this error occurred,
and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.4.12 (Ubuntu) Server at localhost Port 2080</address>
</body></html>
Expected results:
The REST request should return the token
Workaround: git checkout a8adffb5ba7161a9ac491cca98d880577c1ab2fc # Bug 1250264: Extensions have no easy way to override favicon.co
but if you use
git checkout 2c33712dc066463ab9741a009e56d9a5c2ffedf6 #Bug 1246528 - Use Makefile.PL and allow Bugzilla use cpanm-compatible local dependencies
you get the problem
Comment 1•10 years ago
|
||
The error you're getting is due to an unmet dependency, and the error is not yet propagated properly. I'll have a fix today.
Comment 2•10 years ago
|
||
to verify my assumption, run perl -MBugzilla -E 'say Bugzilla->feature("rest") ? "yes" : "no"'
Flags: needinfo?(Frank)
Updated•10 years ago
|
Assignee: webservice → dylan
Reporter | ||
Comment 3•10 years ago
|
||
(In reply to Dylan William Hardison [:dylan] from comment #2)
> to verify my assumption, run perl -MBugzilla -E 'say
> Bugzilla->feature("rest") ? "yes" : "no"'
Here is the output.
Can't locate Bugzilla.pm in @INC (you may need to install the Bugzilla module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .).
BEGIN failed--compilation aborted.
Flags: needinfo?(Frank)
Comment 4•10 years ago
|
||
(In reply to Frank Becker from comment #3)
> (In reply to Dylan William Hardison [:dylan] from comment #2)
> > to verify my assumption, run perl -MBugzilla -E 'say
> > Bugzilla->feature("rest") ? "yes" : "no"'
> Here is the output.
> Can't locate Bugzilla.pm in @INC (you may need to install the Bugzilla
> module) (@INC contains: /etc/perl
> /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2
> /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20
> /usr/local/lib/site_perl .).
> BEGIN failed--compilation aborted.
I mean, run that command from the bugzilla directory
Flags: needinfo?(Frank)
Reporter | ||
Comment 5•10 years ago
|
||
(In reply to Dylan William Hardison [:dylan] from comment #4)
> (In reply to Frank Becker from comment #3)
> > (In reply to Dylan William Hardison [:dylan] from comment #2)
> > > to verify my assumption, run perl -MBugzilla -E 'say
> > > Bugzilla->feature("rest") ? "yes" : "no"'
> > Here is the output.
> > Can't locate Bugzilla.pm in @INC (you may need to install the Bugzilla
> > module) (@INC contains: /etc/perl
> > /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2
> > /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5
> > /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20
> > /usr/local/lib/site_perl .).
> > BEGIN failed--compilation aborted.
>
> I mean, run that command from the bugzilla directory
Sorry my mistake forgot to cd to /home/tools/bugzilla/bugzilla-rest-master/ now the output is
vagrant@vagrant-ubuntu-wily-64:/home/tools/bugzilla/bugzilla-rest-master$ perl -MBugzilla -E 'say Bugzilla->feature("rest")? "yes" : "no"'
yes
vagrant@vagrant-ubuntu-wily-64:/home/tools/bugzilla/bugzilla-rest-master$
Flags: needinfo?(Frank)
Comment 6•10 years ago
|
||
And is that on the current master?
Reporter | ||
Comment 7•10 years ago
|
||
(In reply to Dylan William Hardison [:dylan] from comment #6)
> And is that on the current master?
No current Master give me a No. Commit a8adffb5ba7161a9ac491cca98d880577c1ab2fc returns yes
Comment 8•10 years ago
|
||
Cool. If you install the modules that are marked as "recommended" (for instance, with cpanm --with-recommends --installdeps .), that will return "yes" and rest.cgi will not throw an error. I'll also have this error message fixed shortly. (My weekend involved far more hammers and nails and not nearly enough code).
Updated•10 years ago
|
Summary: REST login problem starting with commit for Bug 1246528 → Fix feature description lookup for missing features (e.g. rest.cgi dying when required modules for features are missing)
Updated•9 years ago
|
Assignee: dylan → dylan
You need to log in
before you can comment on or make changes to this bug.
Description
•