[JIRA] (JENKINS-50856) Cannot connect to bitbucket server from Blueocean.

3 views
Skip to first unread message

manaswinee.mohanty@unilever.com (JIRA)

unread,
Apr 18, 2018, 3:15:03 AM4/18/18
to jenkinsc...@googlegroups.com
Manaswinee Mohanty created an issue
 
Jenkins / Bug JENKINS-50856
Cannot connect to bitbucket server from Blueocean.
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: blueoceanerror.PNG
Components: blueocean-plugin
Created: 2018-04-18 07:14
Environment: Jenkins version 2.89.2
blueocean-bitbucket-pipeline 1.5.0
blueocean 1.4.2
blueocean-pipeline-editor 1.4.2
blueocean-rest 1.5.0
Priority: Critical Critical
Reporter: Manaswinee Mohanty

Cannot connect from Blueocean to Bitbucket server to create new pipeline. The page stays at the username password entry. We have checked the console log for Javascript error and found below.

blueocean-core-js.js:54559 PUT validate/ 404 (Not Found)" class="external-link" rel="nofollow">http://localhost:8084/blue/rest/organizations/jenkins/scm/bitbucket-server/validate/ 404 (Not Found) . The same is attached as a screenshot.

This blocks blueocean to Bitbucket server integration.

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

vivek.pandey@gmail.com (JIRA)

unread,
May 14, 2018, 6:05:02 PM5/14/18
to jenkinsc...@googlegroups.com
Vivek Pandey commented on Bug JENKINS-50856
 
Re: Cannot connect to bitbucket server from Blueocean.

Manaswinee Mohanty Its hard to tell from attached image whats going on. Are there any server side log? Please also attach HAR file. If it has sensitive info, please send it to me directly over email.

vivek.pandey@gmail.com (JIRA)

unread,
May 21, 2018, 9:11:23 PM5/21/18
to jenkinsc...@googlegroups.com
Vivek Pandey updated an issue
 
Change By: Vivek Pandey
Sprint: Blue Ocean 1.6 - beta 2 , Blue Ocean - 1.6 - beta 4

vivek.pandey@gmail.com (JIRA)

unread,
May 21, 2018, 9:14:08 PM5/21/18
to jenkinsc...@googlegroups.com

vivek.pandey@gmail.com (JIRA)

unread,
May 21, 2018, 9:14:09 PM5/21/18
to jenkinsc...@googlegroups.com
Vivek Pandey updated an issue
Change By: Vivek Pandey
Sprint: Blue Ocean - Candidates, Blue Ocean 1.6 - beta 2

tharaka.uo@gmail.com (JIRA)

unread,
Dec 16, 2018, 6:39:02 PM12/16/18
to jenkinsc...@googlegroups.com
Tharaka De Silva updated an issue
Change By: Tharaka De Silva
Attachment: build.gradle
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

tharaka.uo@gmail.com (JIRA)

unread,
Dec 16, 2018, 6:39:03 PM12/16/18
to jenkinsc...@googlegroups.com

tharaka.uo@gmail.com (JIRA)

unread,
Dec 16, 2018, 6:40:02 PM12/16/18
to jenkinsc...@googlegroups.com
Tharaka De Silva updated an issue
Change By: Tharaka De Silva
Attachment: my-site.com.har
Attachment: server_log.txt

tharaka.uo@gmail.com (JIRA)

unread,
Dec 16, 2018, 6:41:01 PM12/16/18
to jenkinsc...@googlegroups.com
Tharaka De Silva edited a comment on Bug JENKINS-50856
 
Re: Cannot connect to bitbucket server from Blueocean.
[~vivek] I am facing the same issue. Here is the [^my-site.com.har] and the [^server_log.txt] files which you requested. I manipulated the host values and masked the credential values.

tharaka.uo@gmail.com (JIRA)

unread,
Dec 16, 2018, 6:41:02 PM12/16/18
to jenkinsc...@googlegroups.com

Vivek Pandey I am facing the same issue. Here is the my-site.com.har and the server_log.txt files which you requested.

tharaka.uo@gmail.com (JIRA)

unread,
Dec 16, 2018, 6:42:02 PM12/16/18
to jenkinsc...@googlegroups.com
Tharaka De Silva edited a comment on Bug JENKINS-50856
[~vivek] I am facing the same issue. Here is the [^my-site.com.har] and the [^server_log.txt] files which you requested. I manipulated the host values and masked the credential values.

tharaka.uo@gmail.com (JIRA)

unread,
Dec 16, 2018, 6:47:01 PM12/16/18
to jenkinsc...@googlegroups.com
Tharaka De Silva edited a comment on Bug JENKINS-50856
[~vivek] I am facing the same issue. Here is are the [^my-site.com.har] and the [^server_log.txt] files which you requested.

sachinsgirib@gmail.com (JIRA)

unread,
Mar 15, 2019, 10:31:03 AM3/15/19
to jenkinsc...@googlegroups.com

When the username contains @ for email then it does not let login.

for other users with no special chars it lets login.

ipi.kiiskinen.apps@gmail.com (JIRA)

unread,
Jun 24, 2019, 9:18:02 AM6/24/19
to jenkinsc...@googlegroups.com

We have the same issue. If username is an email address (contains @) in pipeline creation phase, connection test to Bitbucket Server fails. For us this is a blocker to use blue ocean, since all our usernames are email-addresses.

martti.laaksonen@csc.fi (JIRA)

unread,
Jul 17, 2019, 7:32:04 AM7/17/19
to jenkinsc...@googlegroups.com
Martti Laaksonen updated an issue
 
Change By: Martti Laaksonen
Attachment: fix-for-bitbucket-server-email-address-usernames.patch

martti.laaksonen@csc.fi (JIRA)

unread,
Jul 17, 2019, 7:39:03 AM7/17/19
to jenkinsc...@googlegroups.com
Martti Laaksonen commented on Bug JENKINS-50856
 
Re: Cannot connect to bitbucket server from Blueocean.

The underlying problem seems to be that Bitbucket Server REST API expects a userSlug instead of username when fetching the user information from Bitbucket.

The attached patch seems to fix that particular problem.

I haven't been able to find out much (or any) information about how Bitbucket generates the userSlug from username but when looking at the Bitbucket database table sta_normal_user in our installation, the @-signs have been replaced with underscores (_).

fix-for-bitbucket-server-email-address-usernames.patch

 

Reply all
Reply to author
Forward
0 new messages