Bugzilla REST API produces only a 404 error - rest

I have Bugzilla installed on Windows 7, Apache 2.4. It is accessible at: http://localhost:80/bugzilla/ which means when I type that address in my browser, I see the bugzilla homepage, I can login as admin and everything is fine.
I read in Bugzilla's documentation that Bugzilla has a "native REST API" that can be used to interact with it. For example it is alleged that sending a GET to the address: /rest/version will return the version of the installed bugzilla; The problem is, it doesn't!
I construct a request like: http://localhost:80/bugzilla/rest/version and I get a 404 not found error. I get this exact result for "any" request out of the rest documentation examples.
What am I missing? What am I doing wrong?
Incidentally, checksetup.pl shows that my installation is missing these 3 packages:
perl-ldap
mod_perl
Apache-SizeLimit
Could this be the cause?
Update 1: perl-ldap (Net::LDAP) installed. But cheksetup.pl still shows it as not installed and the problem still exists.
Update 2: LDAP installed but the problem still exists :(

My bugzilla installation also retuns "404 not found".
I had to use this URL to work ok: http://localhost:80/bugzilla/rest.cgi/version
Bugzilla installation comes with a default .htaccess file that does the rewrite work:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteOptions
inherit RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE]
</IfModule>
All I had to do: "a2enmod rewrite" and "service apache2 restart" to enable the apache module, then the URL "website/rest/version" works ok.

I found a simple solution,
inside the rest API link you have to replace /rest/ to /rest.cgi/
example: The REST API for getting the details of bugs.
==> http:your bugzila ip/rest.cgi/bug (this rest.cgi syntax work perfectly)

Related

Endless 'Loading...' message after Login in Sugar 7.2.1

I am using the latest commercial version of SugarCRM, with 7.2.1 in Ubuntu 14.04.
I have logged-in to the sugar and it shows Endless 'Loading...' message. And there is one Fatal Error in my console i.e., TypeError: error.payload is undefined at cache/include/javascript/sugar_sidecar.min.js?v=v05JhcpoUqgUDSTVs1g86g on line 599"
I've seen this endless 'Loading...' message appear when some of the file & folder permissions are incorrectly set. The article here has resolved it for me: http://support.sugarcrm.com/04_Find_Answers/02KB/02Administration/100Install/Required_File_System_Permissions_on_Linux/
Ben.
Endless loading can be caused by a number of things, probably all of them JavaScript issues. The last few I encountered had to do with accessing the cached javascript files. Make sure you have mod_rewrite enabled if you're using Apache, and that .htaccess has the RewriteBase setting correctly pointing to the site. Also check config.php that site_url is correct.
The SugarCRM PHP code is horrendous and generates loads of errors (warnings/notices/etc.)
I would add the following, either in your Apache settings or the .htaccess file in the root directory of SugarCRM.
# Avoid all those strict warnings
php_value error_reporting 0
This technically turns off all the warnings and notices, some of which would be transformed to errors as your question seems to show.

Zend A 404 error occurred Page not found

I am new to zend frame work. I am in the process of learning this, in fact at the very beginning of this. My problem is that I download the zend studio and try to run the zend application by following a tutorial on net but the when I run the code it said that
'A 404 error occurred
Page not found The requested URL could not be matched by routing '.
I googled man time and applied all the possible solutions on it but all in vein. Kindly help me in this regard.
To Do list:
check your server folder permission -> 777 for the development
check .htaccess file in the public folder, there is a good example .htaccess files for Zend in here stackoverflow
check your php configuration for model rewrite, unlikely sometimes it does not install
check your apache site-enable file for model rewrite and allowaccess
you need to google them out, but that is it, after you finish your first one , all other project just copy from the first one

zend framework: Creating the Default Module

I did everything as it is written in the book of Vaswani V. - the Zend Framework. A Beginner's Guide (page 33), but the page "http://square.localhost/default/index/index" returns the response "not found". What is wrong?
I had the exact same problem with that part of the book. Fortunately, the book's companion site (zf-beginners-guide.com) has an errata/troubleshooting section that solves the problem nicely. Quoting from the site:
If you see a "File not found" error after implementing the modular
directory layout and accessing the URL
http://square.localhost/default/index/index, check that the new
virtual host supports .htaccess overrides. You can enable this by
adding the following lines to your virtual host configuration,
remembering to change the directory path to your virtual host's
document root.
<Directory "/usr/local/apache/htdocs/square/public">
AllowOverride All
Options All
</Directory>
Incidentally, if you're using Ubuntu, it may not have mod_rewrite enabled by default. (I just ran into the exact same problem myself BTW). If you're still having trouble, try this:
sudo a2enmod rewrite
sudo service apache2 restart
(Big thanks to Mahok for the help on that, BTW!)

QuickStart zend

I was following quickstart tutorial. My servername is "quickstart.local" which works fine but when i click guestbook then the link "quickstart.local/guestbook" doesn't work and message "An error occurred Application error" is displayed.
Any idea? Tried to find answers hard but to no avail.
Thanks for any help
Make sure that resources.frontController.params.displayExceptions = 1 (in your config) if you don't have logging enabled and you should see the exception details. You could always modify the ErrorHandler (default: application/controllers/ErrorController.php) so that you get the error details emailed to you, etc.
If you are using Zend Studio / Eclipse, then you could try using the debugger if available.
I would guess the .htaccess file is misconfigurated or the Apache won't handle the .htaccess the way it should. Does http://quickstart.local/index.php/guestbook work? In case yes: mod_rewrite module on your server does not work correctly.

Eclipse Helios/Galileo Update sites cannot be accessed on Windows machine with IE7

When starting the update, the following error is displayed:
Network connection problems encountered during search.
Unable to access "http://download.eclipse.org/releases/helios".
Error accessing site stream. [Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd]
Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
Error accessing site stream. [Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd]
Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
As described at
http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic
http://www.outofcontrol.ca/2009/02/20/w3org-dtdxhtml1-strictdtd-blocks-windows-ie-users/
w3.org blocks IE calls to http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd (as it is loading it much too frequently). I was able to load the DTD by setting a different UserAgent for IE7 using
%windir%\System32\cmd.exe /k %windir%\System32\reg.exe ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent" /v Version /d "Opera/9.2.1" /f
I tried to -D overrides suggested at:
Change user agent in Eclipse 3.5 for new software installations
to no avail. I think eclipse does not follow the User-Agent set by IE7 ...
Is there an other way to override the User-Agent for Eclipse?
Thanks
Eclipse has gone "Market", joining AppStore by Apple and Marketplace by google.
From Help Menu, try Eclipse Marketplace instead of Install New Software to install and update your required plug-in
This seems to be related to using the "classic updater" against Helios update site as described at
https://bugs.eclipse.org/bugs/show_bug.cgi?format=multiple&id=317957
I have the same problem both on Galileo and Helios and Windows 7 64 bit, and have found yet no solution (adding a '/' or removing a '/' to the end of the update sites URLs does not work).
In Helios, at least, I have found that using the "Eclipse Marketplace" for updates/addins does work.