PlantUML integration stopped working with 9.0.4 and 8.17.5
Summary
When using PlantUML integration, the upgrade to either 8.17.5 (from 8.17.4) or 9.0.4 (from 9.0.3) breaks the display of the diagram. It displays the code.
Steps to reproduce
Install GitLab 8.17.4 or 9.0.3, install PlantUML server. Configure in GitLab settings the integration, past the following in a wiki (remove the spaces between each '`'):
` ` `plantuml
@startuml
Bob -> Alice : hello
@enduml
` ` `
It works. Now upgrade to 8.17.5 or 9.0.4, try again and it does not work.
What is the current bug behavior?
It display the code rather than the graphic.
What is the expected correct behavior?
Display the graphic (as it was doing in previous releases.
Relevant logs and/or screenshots
The log message do not show any relevant messages sadly.
Output of checks
Done on a test instance running 9.0.4. But same output on production (just with much more repositories)
# docker exec -it spcbo_gitlab_ext gitlab-rake gitlab:check SANITIZE=true
Checking GitLab Shell ...
GitLab Shell version >= 5.0.0 ? ... OK (5.0.0)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
1/1 ... repository is empty
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... skipped (no tmp uploads folder yet)
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: ...
1/1 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.3)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.10.2)
Active users: 1
Checking GitLab ... Finished
Results of GitLab environment info
# docker exec -it spcbo_gitlab_ext gitlab-rake gitlab:env:info
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.3.3p222
Gem Version: 2.6.6
Bundler Version:1.13.7
Rake Version: 10.5.0
Redis Version: 3.2.5
Git Version: 2.10.2
Sidekiq Version:4.2.7
GitLab information
Version: 9.0.4
Revision: 63e052a
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: http://spcbo-gitlab-ext.vcs.de/gitlab
HTTP Clone URL: http://spcbo-gitlab-ext.vcs.de/gitlab/some-group/some-project.git
SSH Clone URL: git@spcbo-gitlab-ext.vcs.de:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 5.0.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
See above, already given.
Possible fixes
It has to do with a change between 9.0.3-9.0.4 and similar change between 8.17.4-8.17.5.