oXygen Web Author - problem accesing GitLab on premise

Hi, I'm struggling to configure oXygen Web Author to access files from GitLab (on-premise). Everything should be configured properly, I can autenticate to GitLab from Web Author and can list available repositories. But once I want to access repository -- i.e. browse it for files or create new file I'm getting the following error message: Failed to open repository: https://gitlab.example.com/foo/bar (I have obfuscated actual URL to repository). On a closer inspection in Developer tools it seems that Web Author tries to access: https://gitlab.example.com/api/v4/projects/foo%2Fbar GitLab returns 404 for such URL. I have skimmed over GitLab documentation and it seems that proper URL syntax should be https://gitlab.example.com/api/v4/projects/$id$ where $id$ is project identifier that can be obtained by accessing projects metadata at https://gitlab.example.com/api/v4/projects/ I'm not sure if this problem in oXygen Web Author of perhaps using some older API or whether there is something that I have to change in GitLab configuration. Anyone noticed this problem and found solution? Many thanks in advance, Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------

Hi, I tried to reproduce your problem. I opened a file from gitlab.com in Web Author [1]. Watching the network tab I can see the https://gitlab.example.com/api/v4/projects/foo%2Fbar request being made and succeeding. The GitLab documentation says the syntax is correct [2][3]. Can you create a repository with the same name as your private respository on https://gitlab.com? Can you still reproduce the issue there? What version of GitLab are you using? Best, Gabriel [1] https://www.oxygenxml.com/oxygen-xml-web-author/app/oxygen.html?url=gitgl%3A... [2] https://docs.gitlab.com/ee/api/projects.html#get-single-project [3] https://docs.gitlab.com/ee/api/README.html#namespaced-path-encoding On 08-Aug-18 12:38, Jirka Kosek wrote:
Hi,
I'm struggling to configure oXygen Web Author to access files from GitLab (on-premise). Everything should be configured properly, I can autenticate to GitLab from Web Author and can list available repositories. But once I want to access repository -- i.e. browse it for files or create new file I'm getting the following error message:
Failed to open repository: https://gitlab.example.com/foo/bar (I have obfuscated actual URL to repository).
On a closer inspection in Developer tools it seems that Web Author tries to access:
https://gitlab.example.com/api/v4/projects/foo%2Fbar
GitLab returns 404 for such URL. I have skimmed over GitLab documentation and it seems that proper URL syntax should be
https://gitlab.example.com/api/v4/projects/$id$
where $id$ is project identifier that can be obtained by accessing projects metadata at https://gitlab.example.com/api/v4/projects/
I'm not sure if this problem in oXygen Web Author of perhaps using some older API or whether there is something that I have to change in GitLab configuration.
Anyone noticed this problem and found solution?
Many thanks in advance,
Jirka
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user

On 8.8.2018 14:13, oXygen XML Editor Support (Gabriel Titerlea) wrote:
Can you create a repository with the same name as your private respository on https://gitlab.com? Can you still reproduce the issue there? What version of GitLab are you using?
We have been able to resolve the issue -- the problem was in reverse proxy configuration -- it seem this it is quite common problem with self-hosted GitLab: https://gitlab.com/gitlab-org/gitlab-ce/issues/35079#note_76374269 Thanks and have a nice day, Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------
participants (2)
-
Jirka Kosek
-
oXygen XML Editor Support (Gabriel Titerlea)