Skip to content

Bitbucket server issue "URL using bad/illegal format or missing URL" #1905

@dessmith

Description

@dessmith

I'm logging into a Bitbucket server version 7.6.19 and I'm experiencing issues as simlarly described in #1369.

In Fork when I add the bit bucket server and attempt to login with my Personal Access Token I get a "Error: Token is not valid" error showing in the dialogue.

On the terminal a curl "https://git-server.com/rest/api/1.0/application-properties" \ -H 'Authorization: Bearer TOKEN'

gives me a response of

{"version":"7.6.19","buildNumber":"7006019","buildDate":"1666749597380","displayName":"Bitbucket"}curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL

Using Proxyman I can see the raw response in Fork as (I've redacted some parts as xxxx / XXXX)

Alt-Svc: h3=":443"; ma=2592000
Cache-Control: private, no-cache
Cache-Control: no-cache, no-transform
Content-Type: application/json;charset=UTF-8
Date: Tue, 06 Jun 2023 14:51:33 GMT
Pragma: no-cache
Set-Cookie: BITBUCKETSESSIONID=XXX; Max-Age=1209600; Expires=Tue, 20-Jun-2023 14:51:33 GMT; Path=/; Secure; HttpOnly
Strict-Transport-Security: max-age=31536000;
Vary: X-AUSERNAME
Vary: X-AUSERID
Vary: Cookie
X-Arequestid: @1NH8WGZx1011x7434316x0
X-Asessionid: wgtk0m
X-Auserid: 4998
X-Ausername: X12345678  <--- Redacted but username is in this format
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Xss-Protection: 1; mode=block
Transfer-Encoding: chunked
Set-Cookie: visid_incap_2881399=XXX/XXX/XXX; expires=Tue, 04 Jun 2024 23:54:05 GMT; HttpOnly; path=/; Domain=.xxxx-xxx.com
Set-Cookie: nlbi_2881399=HEABRD4MljsashWfIZz/vgAXXXXm+NXXXXl2b+6KWxioP3S; path=/; Domain=.xxxx-xxx.com
Set-Cookie: incap_ses_1578_2881399=dXXXX5DiXXXX/BS/XXXXX2QAAAAAZyZUra/3kCcSXbouCebArg==; path=/; Domain=.xxxx-xxx.com
X-CDN: Imperva
Content-Encoding: gzip
X-Iinfo: 11-58345102-XXXXX105 NNYY CT(573 154 0) RT(16XXXX309XXXX 12) q(0 0 0 -1) r(0 0) U16

{"version":"7.6.19","buildNumber":"7006019","buildDate":"1666749597380","displayName":"Bitbucket"}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions