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%2F%2Fhttps%253A%252F%252Fgitlab.com%252Fg-tit-oxygen%252Fgit-plugin-tests%2Fmaster%2Fflowers%2Ftopics%2Fcare.dita
[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