Cannot delete branch that contains "" characters

Issue #15139 new
Lucas Moura
staff created an issue

A customer reportede the error below, I was able to reproduce.

Uncaught Error: Syntax error, unrecognized expression: [aria-controls="branch-actions-my_"Amazing"_branch"]
    at Function.t.error (common.js:sourcemap:153)
    at t.tokenize (common.js:sourcemap:153)
    at t.select (common.js:sourcemap:153)
    at Function.t [as find] (common.js:sourcemap:153)
    at re.fn.init.find (common.js:sourcemap:153)
    at e.fn.init.re.fn.init (common.js:sourcemap:153)
    at new e.fn.init (common.js:sourcemap:130)
    at re (common.js:sourcemap:143)
    at g (common.js:sourcemap:114)
    at v (common.js:sourcemap:114)
    at HTMLDivElement.<anonymous> (common.js:sourcemap:114)
    at HTMLDivElement.n (raven.js?ae06:314)
    at h (common.js:sourcemap:41)
    at m.show (common.js:sourcemap:41)
    at HTMLDivElement.show (common.js:sourcemap:114)
    at HTMLDivElement.toggle (common.js:sourcemap:114)
    at HTMLButtonElement.t (common.js:sourcemap:114)
    at HTMLButtonElement.dispatch (common.js:sourcemap:154)
    at HTMLButtonElement.g.handle (common.js:sourcemap:153)
    at HTMLButtonElement.n (raven.js?ae06:314)
t.error @ common.js:sourcemap:153
t.tokenize @ common.js:sourcemap:153
t.select @ common.js:sourcemap:153
t @ common.js:sourcemap:153
find @ common.js:sourcemap:153
re.fn.init @ common.js:sourcemap:153
e.fn.init @ common.js:sourcemap:130
re @ common.js:sourcemap:143
g @ common.js:sourcemap:114
v @ common.js:sourcemap:114
(anonymous) @ common.js:sourcemap:114
n @ raven.js?ae06:314
h @ common.js:sourcemap:41
show @ common.js:sourcemap:41
show @ common.js:sourcemap:114
toggle @ common.js:sourcemap:114
t @ common.js:sourcemap:114
dispatch @ common.js:sourcemap:154
g.handle @ common.js:sourcemap:153
n @ raven.js?ae06:314
common.js:sourcemap:254 Uncaught TypeError: Cannot read property 'toString' of null
    at o (common.js:sourcemap:254)
    at window.onerror (common.js:sourcemap:254)
    at h (common.js:sourcemap:41)
    at m.show (common.js:sourcemap:41)
    at HTMLDivElement.show (common.js:sourcemap:114)
    at HTMLDivElement.toggle (common.js:sourcemap:114)
    at HTMLButtonElement.t (common.js:sourcemap:114)
    at HTMLButtonElement.dispatch (common.js:sourcemap:154)
    at HTMLButtonElement.g.handle (common.js:sourcemap:153)
    at HTMLButtonElement.n (raven.js?ae06:314)
o @ common.js:sourcemap:254
window.onerror @ common.js:sourcemap:254
h @ common.js:sourcemap:41
show @ common.js:sourcemap:41
show @ common.js:sourcemap:114
toggle @ common.js:sourcemap:114
t @ common.js:sourcemap:114
dispatch @ common.js:sourcemap:154
g.handle @ common.js:sourcemap:153
n @ raven.js?ae06:314
raven.js?ae06:318 Uncaught Error: Syntax error, unrecognized expression: [aria-controls="branch-actions-my_"Amazing"_branch"]
    at Function.t.error (common.js:sourcemap:153)
    at t.tokenize (common.js:sourcemap:153)
    at t.select (common.js:sourcemap:153)
    at Function.t [as find] (common.js:sourcemap:153)
    at re.fn.init.find (common.js:sourcemap:153)
    at e.fn.init.re.fn.init (common.js:sourcemap:153)
    at new e.fn.init (common.js:sourcemap:130)
    at re (common.js:sourcemap:143)
    at g (common.js:sourcemap:41)
    at v (common.js:sourcemap:41)
    at C.popLayersBeside (common.js:sourcemap:41)
    at C.push (common.js:sourcemap:41)
    at m.show (common.js:sourcemap:41)
    at HTMLDivElement.show (common.js:sourcemap:114)
    at HTMLDivElement.toggle (common.js:sourcemap:114)
    at HTMLButtonElement.t (common.js:sourcemap:114)
    at HTMLButtonElement.dispatch (common.js:sourcemap:154)
    at HTMLButtonElement.g.handle (common.js:sourcemap:153)
    at HTMLButtonElement.n (raven.js?ae06:314)
t.error @ common.js:sourcemap:153
t.tokenize @ common.js:sourcemap:153
t.select @ common.js:sourcemap:153
t @ common.js:sourcemap:153
find @ common.js:sourcemap:153
re.fn.init @ common.js:sourcemap:153
e.fn.init @ common.js:sourcemap:130
re @ common.js:sourcemap:143
g @ common.js:sourcemap:41
v @ common.js:sourcemap:41
popLayersBeside @ common.js:sourcemap:41
push @ common.js:sourcemap:41
show @ common.js:sourcemap:41
show @ common.js:sourcemap:114
toggle @ common.js:sourcemap:114
t @ common.js:sourcemap:114
dispatch @ common.js:sourcemap:154
g.handle @ common.js:sourcemap:153
n @ raven.js?ae06:314
common.js:sourcemap:254 Uncaught TypeError: Cannot read property 'toString' of null
    at o (common.js:sourcemap:254)
    at window.onerror (common.js:sourcemap:254)

Steps to reproduce :

  1. Create a branch ( git checkout -b 'my_"Amazing"_branch' )
  2. Push branch to remote.
  3. In remote, try to open the branch context menu (bitbucket UI -> repo -> branches -> "..." at the right column.
  4. see console for errors, no context menu is opened.

Comments (0)

  1. Log in to comment