Closed Bug 1225442 Opened 9 years ago Closed 9 years ago

remote: error: incoming.bugzilla hook failed: Bugzilla error: <Fault 410: 'You must log in before using this part of Bugzilla.'>

Categories

(Bugzilla :: Bugzilla-General, defect, P1)

5.0.1

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: tanvi.vidhate, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 Build ID: 20151030084315 Steps to reproduce: Environment Setup :- Bugzilla & Mercurial 1. Upgraded bugzilla to 5.0.1 from 4.0 2. Committed and pushed code changes to mercurial intergrated bugzilla. Actual results: We have a bugzilla-mercurial integration for bug tracking and code changes. After upgrading bugzilla from 4.0 to 5.0.1, while pushing our committed code changes to mercurial, we faced the following error: searching for changes remote: adding changesets remote: adding manifests remote: adding file changes remote: added 1 changesets with 1 changes to 1 files remote: error: incoming.bugzilla hook failed: Bugzilla error: <Fault 410: 'You must log in before using this part of Bugzilla.' Expected results: searching for changes remote: adding changesets remote: adding manifests remote: adding file changes remote: added 1 changesets with 1 changes to 1 files
Severity: normal → major
OS: Unspecified → All
Priority: -- → P1
Hardware: Unspecified → All
I fixed the issue by doing the following: With the new bugzilla 5.0.1 , the xmlrpc communication takes place by using tokens unlike cookies beng used in the past. So we had to modify the bugzilla.py file to incoporate this token exchange. Following changes were useful to us: 624,626c624 < login = self.bzproxy.User.login({'login': user, 'password': passwd, < 'restrict_login': True}) < self.bztoken = login.get('token', '') --- > self.bzproxy.User.login(dict(login=user, password=passwd)) 636c634 < c = self.bzproxy.Bug.comments(dict(ids=[id], include_fields=['text'],token=self.bztoken)) --- > c = self.bzproxy.Bug.comments(dict(ids=[id], include_fields=['text'])) 642,643c640 < permissive=True, < token=self.bztoken)) --- > permissive=True)) 664d660 < args['token'] = self.bztoken 675d670 < args['token'] = self.bztoken This is issue is now resolved. Hope this information will help others facing the same issue.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.