Cannot add badges to a project

Summary

Adding new badges fails.

Steps to reproduce

I am running 12.0.2-ee (ef76b54fc1e).

On a project:

  1. Go to settings -> general -> badges
  2. Enter a valid URL for the link and the badge image.
    • No "Badge Preview" appears.
    • I've verified that both URLs resolve appropriately.
  3. Click "Add Badge" and I get a red banner indicating that the badge could not be added.

What is the current bug behavior?

Cannot add a badge.

What is the expected correct behavior?

Should be able to add a badge.

Relevant logs and/or screenshots

Screenshot_2019-07-02_at_10.59.25_AM

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: CentOS 7.6.1810 Proxy: no Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.21.0 Sidekiq Version:5.2.7 Go Version: unknown

GitLab information Version: 12.0.2-ee Revision: ef76b54fc1e Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 9.6.11 URL: http://gitlab.multiscale.utah.edu HTTP Clone URL: http://gitlab.multiscale.utah.edu/some-group/some-project.git SSH Clone URL: git@gitlab.multiscale.utah.edu:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers:

GitLab Shell Version: 9.3.0 Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check

Checking GitLab subtasks ...

Checking GitLab Shell ...

GitLab Shell: ... GitLab Shell version >= 9.3.0 ? ... OK (9.3.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK

Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Gitaly ...

Gitaly: ... default ... OK

Checking Gitaly ... Finished

Checking Sidekiq ...

Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Incoming Email ...

Incoming Email: ... Reply by email is disabled in config/gitlab.yml

Checking Incoming Email ... Finished

Checking LDAP ...

LDAP: ... LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab App ...

Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 8/11 ... yes 8/13 ... yes 10/16 ... yes 10/17 ... yes 8/18 ... yes 8/20 ... yes 8/21 ... yes 8/22 ... yes 8/24 ... yes 2/25 ... yes 2/26 ... yes 2/27 ... yes 2/28 ... yes 2/29 ... yes 1/30 ... yes 2/31 ... yes 2/32 ... yes 2/33 ... yes 2/34 ... yes 2/36 ... yes 1/38 ... yes 1/39 ... yes 1/40 ... yes 1/41 ... yes 1/42 ... yes 1/43 ... yes 2/44 ... yes 14/45 ... yes 3/46 ... yes 11/47 ... yes 11/48 ... yes 3/49 ... yes 3/50 ... yes 3/51 ... yes 3/52 ... yes 11/53 ... yes 2/55 ... yes 11/56 ... yes 2/57 ... yes 2/58 ... yes 11/59 ... yes 11/60 ... yes 11/61 ... yes 3/62 ... yes 3/64 ... yes 3/65 ... yes 11/66 ... yes 11/68 ... yes 1/69 ... yes 1/71 ... yes 3/72 ... yes 1/73 ... yes 1/75 ... yes 1/76 ... yes 1/77 ... yes 2/78 ... yes 11/79 ... yes 11/80 ... yes 11/81 ... yes 7/82 ... yes 8/83 ... yes 3/84 ... yes 3/85 ... yes 3/86 ... yes 1/87 ... yes 1/88 ... yes 3/89 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.21.0 ? ... yes (2.21.0) Git user has default SSH configuration? ... yes Active users: ... 11 Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished

Assignee Loading
Time tracking Loading