Skip to content
This repository was archived by the owner on Jun 9, 2021. It is now read-only.
This repository was archived by the owner on Jun 9, 2021. It is now read-only.

Configuration UI is broken - Uncaught Error: plugin/prnfb/admin missing aui #347

Open
@romandecker

Description

@romandecker

We are no longer able to configure the plugin from its configuration UI. The notifications we have configured in the past continue to work, but the configuration UI is broken for us, so we can't make any changes.

  • Bitbucket Server version used: v6.3.0

When opening the configuration UI, the dropdowns for buttons and notifications stay empty, event though we have notifications configured (and they still work!). We also get the following console log in the browser devtools:

Uncaught Error: plugin/prnfb/admin missing aui
    at w (almond.js?_statichash=1b4fe21375bf56ecfa2584c852c3927b-CDN%2F369421503%2F811079b%2F1389%2F449808fae6ab9437afa8f189c3a82e50&locale=en-US:11)
    at u (almond.js?_statichash=1b4fe21375bf56ecfa2584c852c3927b-CDN%2F369421503%2F811079b%2F1389%2F449808fae6ab9437afa8f189c3a82e50&locale=en-US:9)
    at g (almond.js?_statichash=1b4fe21375bf56ecfa2584c852c3927b-CDN%2F369421503%2F811079b%2F1389%2F449808fae6ab9437afa8f189c3a82e50&locale=en-US:11)
    at require (require-lite.js?_statichash=1b4fe21375bf56ecfa2584c852c3927b-CDN%2F369421503%2F811079b%2F1389%2F449808fae6ab9437afa8f189c3a82e50&locale=en-US:3)
    at HTMLDocument.<anonymous> (admin.js?_statichash=d41d8cd98f00b204e9800998ecf8427e-CDN%2F369421503%2F811079b%2F1389%2F3.24:1)
    at c (jquery.js?_statichash=1b4fe21375bf56ecfa2584c852c3927b-CDN%2F369421503%2F811079b%2F1389%2F449808fae6ab9437afa8f189c3a82e50&locale=en-US:30)
    at Object.fireWith [as resolveWith] (jquery.js?_statichash=1b4fe21375bf56ecfa2584c852c3927b-CDN%2F369421503%2F811079b%2F1389%2F449808fae6ab9437afa8f189c3a82e50&locale=en-US:30)
    at Function.ready (jquery.js?_statichash=1b4fe21375bf56ecfa2584c852c3927b-CDN%2F369421503%2F811079b%2F1389%2F449808fae6ab9437afa8f189c3a82e50&locale=en-US:30)
    at HTMLDocument.H (jquery.js?_statichash=1b4fe21375bf56ecfa2584c852c3927b-CDN%2F369421503%2F811079b%2F1389%2F449808fae6ab9437afa8f189c3a82e50&locale=en-US:30)

Configuration

http://localhost:7990/bitbucket/rest/prnfb-admin/1.0/settings

{
    "adminRestriction": "ADMIN",
    "keyStorePassword": "KEEP_THIS_TO_LEAVE_UNCHANGED",
    "shouldAcceptAnyCertificate": false
}

http://localhost:7990/bitbucket/rest/prnfb-admin/1.0/settings/buttons

[
    {
        "buttonFormList": [],
        "buttonFormListString": "[]",
        "name": "",
        "projectKey": "PRS",
        "repositorySlug": "sps",
        "uuid": "6510b76f-c485-49fe-b657-a7f85d2b1955"
    }
]

http://localhost:7990/bitbucket/rest/prnfb-admin/1.0/settings/notifications

[
    {
        "filterRegexp": "^develop$",
        "filterString": "${PULL_REQUEST_TO_BRANCH}",
        "headers": [],
        "method": "GET",
        "name": "Build Preview on merges to develop",
        "password": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "projectKey": "PRS",
        "proxyPassword": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "proxyUser": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "repositorySlug": "prs",
        "triggerIfCanMerge": "ALWAYS",
        "triggerIgnoreStateList": [],
        "triggers": ["DECLINED", "MERGED"],
        "updatePullRequestRefs": false,
        "url": "https://our.configured.url.com/whatever",
        "user": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "uuid": "f32a09cc-3ab0-4e90-87bc-8de808e06887",
        "postContentEncoding": "NONE"
    },
    {
        "filterRegexp": "^develop$",
        "filterString": "${PULL_REQUEST_TO_BRANCH}",
        "headers": [],
        "method": "GET",
        "name": "Build feature branches before merges to develop",
        "password": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "projectKey": "PRS",
        "proxyPassword": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "proxyUser": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "repositorySlug": "prs",
        "triggerIfCanMerge": "ALWAYS",
        "triggerIgnoreStateList": [],
        "triggers": ["OPENED", "RESCOPED_FROM"],
        "updatePullRequestRefs": false,
        "url": "https://our.configured.url.com/whatever",
        "user": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "uuid": "6fdb9046-095d-4332-b1e1-60ac41279da4",
        "postContentEncoding": "NONE"
    },
    {
        "headers": [],
        "method": "POST",
        "name": "Cleanup after merge",
        "password": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "projectKey": "PRS",
        "proxyPassword": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "proxyUser": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "repositorySlug": "sps",
        "triggerIfCanMerge": "ALWAYS",
        "triggerIgnoreStateList": [],
        "triggers": ["DECLINED", "DELETED", "MERGED"],
        "updatePullRequestRefs": false,
        "url": "https://our.configured.url.com/whatever",
        "user": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "uuid": "890ea06f-4e1e-494e-8219-30759165e882",
        "postContentEncoding": "NONE"
    },
    {
        "headers": [],
        "method": "GET",
        "name": "Create isolated environment for PR",
        "password": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "projectKey": "PRS",
        "proxyPassword": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "proxyUser": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "repositorySlug": "sps",
        "triggerIfCanMerge": "ALWAYS",
        "triggerIgnoreStateList": [],
        "triggers": ["OPENED", "REOPENED", "RESCOPED_FROM"],
        "updatePullRequestRefs": false,
        "url": "https://our.configured.url.com/whatever",
        "user": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "uuid": "80b09b75-9cbf-444a-a166-f344ceb3e695",
        "postContentEncoding": "NONE"
    },
    {
        "filterRegexp": "Test",
        "filterString": "${BUTTON_TRIGGER_TITLE}",
        "headers": [],
        "method": "GET",
        "name": "Notification",
        "password": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "projectKey": "PRS",
        "proxyPassword": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "proxyUser": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "repositorySlug": "prs",
        "triggerIfCanMerge": "ALWAYS",
        "triggerIgnoreStateList": [],
        "triggers": ["BUTTON_TRIGGER"],
        "updatePullRequestRefs": false,
        "url": "https://our.configured.url.com/whatever",
        "user": "KEEP_THIS_TO_LEAVE_UNCHANGED",
        "uuid": "ee6ddb8c-ba02-466e-88ca-a61507305536",
        "postContentEncoding": "NONE",
        "httpVersion": "HTTP_1_1"
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions