PlantUML Server for GitLab files not working

0 votes
asked Jan 15, 2019 in Question / help by NikaStark (120 points)

On website placed instructions how to usage PlantUML Server like proxy service. In example you use specific github reference (https://raw.github.com/plantuml/plantuml-server/master/src/main/webapp/resource/test2diagrams.txt) like a source of uml configuration. If you manually go by this reference you taking a response for github, which contain simple format text file. And when you try to transfer this file like source for proxy service all work fine.

Gitlab can provided the same simple format text file by this type references - https://gitlab.com/user-name/repository-name/raw/branch-name. (For example https://gitlab.com/MitLearnJSTest/wiki/raw/master/diagram.txt), user-name is optional in this case, because this repository is public.
But if you try to use this reference like source, for proxy service - you redirected to page with default example http://www.plantuml.com/plantuml/uml/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000

Could you please help with this issue?

1 Answer

0 votes
answered Jan 15, 2019 by plantuml (294,960 points)
I am not sure to fully understand the issue. Could you post an example of an actual non-working URL ?

Thanks
commented Jan 15, 2019 by NikaStark (120 points)
edited Jan 15, 2019 by NikaStark
commented Feb 2, 2019 by DBuret
edited Feb 2, 2019
I'm facing the same issue with gitlab and plantUML proxy (my notes https://gitlab.com/dburet/journal/blob/master/gitlab-plantuml.adoc)

Something that may help investigation: I noticed that if I use plantUML online server (not the proxy, the GUI), with a fplantUML code that uses an !includeurl pointing to Gitlab, plantUML outputs the following error about my include line:

javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake.


maybe the proxy is facing the same issue when trying to load a gitlab file?

code to generate the error: http://www.plantuml.com/plantuml/png/ZLHTRzCm57tthp0HKXzG6cry84rJjS9ug0HZMeMGOAYwYPtMa-D4jhDi8FZj-DgDrwOfea_nFUVSSp_iNXWBshQL9C-4AcJBUAibtLZRcBCiMmih8PyMTPMnlDNSPdTrgnN8J4ENLM0irraZGM66QL6k2T6yiA3MajFBJz_e-JbbrKywcz5VXBhV4vgSFzVydcl3Lusk7nvdj-ecdEardc_LudgPBIwN2IOnND-xoZ0H6BebUXxvlUkPBBb6Z7wSNoLqnnvbhiwnCZgUhuoNkHhcJID50LRKAa6DEnyg65Z8mV1UTiEPC8dtqFXvg0Z4LGcwSYRlwwffBG-AJLFymm7kGKZ8XHJsSRNMTTiu_UKM3GbOVgWlXUHFJLtDbu6gm0pcDMULKAFJ0aIEZCnT55pzayCxC75aUVX6eq5DcdSWfQFp1wTM86aVS-ueBJj-L2FKlYO90d5Ku1k83lH3ihM0_rKieaAGGI-jwzmunS8NnItzWe70zzWu_NDPYeARNNRjGuFqQrddV2MsoMUzYs-vZvB1HkgMEOUlk4caTQ06INrtmbWDjlPN7S_6vmoVX4omK5hAkfiGNpETpg8XtW__nu0tv8oUaWWuajlSBeum2QtHLAOpB6UWFw44WuW6zH0b69swtBlFVK1BJbwS9eJiCNmreYS6talYGfWC7_GG8XDmGUpQJ0ZYgIk9vKYxOtaHQAzeXDoBHGm50NiJ8V_yzy7N4LJW8LNwuXtq5grnzD7Sxu7-mGu0kSPiGXQW14CEsJwlVRHNfjytWZ6kVgGZHD97qZRr3c8lIKum540i-HZ6yd4eJcOS2wCPH-DiuceHlU2AjPNy2m00

Another information: I deployed 'on premises' my own gitlab and my own plantUML server. They share the same domain => In this case, diagram generation through plantUML proxy reading files in gitlab works.

So I suspect that gitlab.com makes some kind of security checks that prevents plantuml.com proxy to read gitlab.com files.
...