Bug #5210
openwebook problems
0%
Description
i create webhook with url: http://:@/job//buildWithParameters?token=&rc_pullid=${pull_request_id}
[10:03]
event: pullrequest created
[10:03]
if i create pull request from web interface - all ok: jenkins started build
[10:04]
if i create pull request from api method create_pull_request - i get error
[10:04]
2017-02-13 15:29:32.214 ERROR [rhodecode.integrations] failure occured when sending event to integration ")>
Traceback (most recent call last):
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/integrations/init.py", line 54, in integrations_event_handler
integration_model.send_event(integration, event)
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/model/integration.py", line 99, in send_event
handler.send_event(event)
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/integrations/types/webhook.py", line 233, in send_event
data = event.as_dict()
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/pullrequest.py", line 38, in as_dict
data = super(PullRequestEvent, self).as_dict()
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/repo.py", line 118, in as_dict
data = super(RepoEvent, self).as_dict()
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/base.py", line 63, in as_dict
'actor_ip': self.actor_ip,
File "/opt/rhodecode/store/nbkrz4134nvflk843f05al8y2qdrl5ma-python2.7-rhodecode-enterprise-ce-4.6.0/lib/python2.7/site-packages/rhodecode/events/base.py", line 49, in actor_ip
return self.request.user.ip_addr
AttributeError: 'Request' object has no attribute 'user'
Updated by Marcin Kuzminski [CTO] almost 8 years ago
- Status changed from New to In Progress
Updated by Redmine Integration almost 8 years ago
pullrequest created by marcink (status: under_review). https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2861
Updated by Redmine Integration almost 8 years ago
- Status changed from In Progress to Resolved
Commit 20a1b221ddd8 by Marcin Kuzminski marcin@rhodecode.com on default branch changed this issue. https://internal-code.rhodecode.com/rhodecode-enterprise-ce/changeset/20a1b221ddd8dec2d7f6dac3eb195e459d83e49e
Updated by Redmine Integration almost 8 years ago
pullrequest merged by marcink (status: approved). https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2861
Updated by Redmine Integration almost 8 years ago
Commit 0b87835b93f9 by Marcin Kuzminski marcin@rhodecode.com on stable branch changed this issue. https://internal-code.rhodecode.com/rhodecode-enterprise-ce/changeset/0b87835b93f9b84c70d6ddffe3e62404bfefa4eb