oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.3k stars 739 forks source link

API calls generate URLs with missing separator #4462

Closed vladak closed 8 months ago

vladak commented 8 months ago

Adding a project on a recent version built from source, the response URL does not contain slash after v1:

$ curl -v -d sfwnv-clone -H 'Content-Type:text/plain' -X POST http://localhost:8080/source/api/v1/projects
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> POST /source/api/v1/projects HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/8.1.0
> Accept: */*
> Content-Type:text/plain
> Content-Length: 11
> 
< HTTP/1.1 202 
< Location: http://localhost:8080/source/api/v1status/608f0fe4-43cd-4402-b1f0-05cff2f60062
< Content-Length: 0
< Date: Tue, 31 Oct 2023 15:57:33 GMT
< 
* Connection #0 to host localhost left intact
vladak commented 8 months ago

Might be caused by the changes in 2f0c0f82.