niwadhwa / bugzilla-vcs

Automatically exported from code.google.com/p/bugzilla-vcs
0 stars 0 forks source link

404 error running hook.pl with mercurial v4.0 with Hg #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Running hook.pl against my Hg repository.  I can run the sync.pl fine but I get 
errors with the hook.pl script.  I can browse to the url it is listing as 
getting a 404 error fine.  It seems to be appending the protocol (http or 
https) to the end of the url.  (see bottom of post for snippet of iis log).

What is the expected output? What do you see instead?

c:\Websites\bugzilla>perl extensions\VCS\hook.pl --repo https://localhost/ 
--login admin@cdtech.com --pass aDm1n1 --bugzilla http://localhost/ --project 
hg --bug 3 --revision 5472872b61d0 --login admin@cdtech.com --pass aDm1n1
Bugzilla Error: (32000) An error occurred while attempting to fetch commit 54728
72b61d0 from the "hg" project in the "https://localhost/" repository. Sometimes
this means that you specified an invalid repository or project. The error was: E
rror getting https://localhost/hg/rss-log/https:: 404 Not Found at C:/Perl/site/
lib/VCI/VCS/Hg/Repository.pm line 24 VCI::VCS::Hg::Repository::x_get('VCI::VCS::
Hg::Repository=HASH(0x4a8cccc)', 'Path::Abstract::Underload=SCALAR(0x4d286cc)')
called at C:/Perl/site/lib/VCI/VCS/Hg/Project.pm line 37 VCI::VCS::Hg::Project::
x_get('VCI::VCS::Hg::Project=HASH(0x4c3b4e4)', 'ARRAY(0x4d26d3c)') called at C:/
Perl/site/lib/VCI/VCS/Hg/History.pm line 30 VCI::VCS::Hg::History::_x_get_rss_co
mmits('VCI::VCS::Hg::Project=HASH(0x4c3b4e4)', 'XML::Simple=HASH(0x4d13524)', 'h
ttps:', '') called at C:/Perl/site/lib/VCI/VCS/Hg/History.pm line 15 VCI::VCS::H
g::History::x_from_rss('VCI::VCS::Hg::History', '', 'VCI::VCS::Hg::Project=HASH(
0x4c3b4e4)') called at C:/Perl/site/lib/VCI/VCS/Hg/Project.pm line 45 VCI::VCS::
Hg::Project::_build_history('VCI::VCS::Hg::Project=HASH(0x4c3b4e4)') called at a
ccessor history defined at C:/Perl/site/lib/VCI/Abstract/Project.pm line 13 VCI:
:Abstract::Project::history('VCI::VCS::Hg::Project=HASH(0x4c3b4e4)') called at C
:/Perl/site/lib/VCI/Abstract/Project.pm line 57 VCI::Abstract::Project::get_comm
it('VCI::VCS::Hg::Project=HASH(0x4c3b4e4)', 'HASH(0x4c3428c)') called at /loader
/0x36c25a4/Bugzilla/Extension/VCS/Commit.pm line 308 eval {...} called at /loade
r/0x36c25a4/Bugzilla/Extension/VCS/Commit.pm line 308 Bugzilla::Extension::VCS::
Commit::get_commit('Bugzilla::Extension::VCS::Commit', 'HASH(0x4a0463c)') called
 at /loader/0x36c25a4/Bugzilla/Extension/VCS/Commit.pm line 230 Bugzilla::Extens
ion::VCS::Commit::_check_revision('Bugzilla::Extension::VCS::Commit', '5472872b6
1d0', 'revision', 'HASH(0x2dd3274)') called at Bugzilla/Object.pm line 475 Bugzi
lla::Object::run_create_validators('Bugzilla::Extension::VCS::Commit', 'HASH(0x3
d24774)') called at /loader/0x36c25a4/Bugzilla/Extension/VCS/Commit.pm line 109
Bugzilla::Extension::VCS::Commit::run_create_validators('Bugzilla::Extension::VC
S::Commit', 'HASH(0x3d24774)') called at /loader/0x36c25a4/Bugzilla/Extension/VC
S/Commit.pm line 165 Bugzilla::Extension::VCS::Commit::create('Bugzilla::Extensi
on::VCS::Commit', 'HASH(0x3d24774)') called at /loader/0x36c25a4/Bugzilla/Extens
ion/VCS/WebService.pm line 37 Bugzilla::Extension::VCS::WebService::add_commit('
Bugzilla::Extension::VCS::WebService', 'HASH(0x3d24774)') called at C:/Perl/site
/lib/SOAP/Lite.pm line 2799 eval {...} called at C:/Perl/site/lib/SOAP/Lite.pm l
ine 2784 eval {...} called at C:/Perl/site/lib/SOAP/Lite.pm line 2750 SOAP::Serv
er::handle('Bugzilla::WebService::Server::XMLRPC=HASH(0x3cfd0e4)', '<?xml versio
n="1.0" encoding="us-ascii"?><methodCall><methodN...') called at C:/Perl/site/li
b/SOAP/Transport/HTTP.pm line 432 SOAP::Transport::HTTP::Server::handle('Bugzill
a::WebService::Server::XMLRPC=HASH(0x3cfd0e4)') called at C:/Perl/site/lib/SOAP/
Transport/HTTP.pm line 590 SOAP::Transport::HTTP::CGI::handle('Bugzilla::WebServ
ice::Server::XMLRPC=HASH(0x3cfd0e4)') called at C:\Websites\bugzilla\xmlrpc.cgi
line 50

What version of the product are you using? On what operating system?
Bugzilla v4.0 and Mercurial 1.8.1 on Windows Vista X64.  

Other information.
2011-03-18 15:48:27 127.0.0.1 GET /hg/rss-log/tip - 443 - 127.0.0.1 
VCI::VCS::Hg+0.7.1 200 0 0 159
2011-03-18 15:48:27 127.0.0.1 GET /hg/rss-log/https: - 443 - 127.0.0.1 
VCI::VCS::Hg+0.7.1 404 0 0 203
2011-03-18 16:02:55 127.0.0.1 GET /hg/rss-log/tip - 443 - 127.0.0.1 
VCI::VCS::Hg+0.7.1 200 0 0 225
2011-03-18 16:02:55 127.0.0.1 GET /hg/rss-log/https: - 443 - 127.0.0.1 
VCI::VCS::Hg+0.7.1 404 0 0 206

Original issue reported on code.google.com by gdud...@gmail.com on 18 Mar 2011 at 4:07

GoogleCodeExporter commented 9 years ago
I figured out the issue.  It was the url rewrites and redirects I was using in 
IIS.  You can close this bug.  One question though:  with vcs should it list a 
link I can click on to go to the web view of the repository in the area it 
lists the commit information?

Original comment by gdud...@gmail.com on 18 Mar 2011 at 4:23

GoogleCodeExporter commented 9 years ago
Oh awesome, I'm so glad to hear that it wasn't a bug in the VCS extension.

Yeah, the commit id itself should be a link to the web view, if you've set up 
the parameters properly. Somebody else has reported a bug where that didn't 
work for them, though, so there could be something wrong with it.

Original comment by avatrax...@gmail.com on 25 Mar 2011 at 3:41