fabric8
fabric8 copied to clipboard
createGerritRepo - DevOpsConnector doesn't work - unautorized
The new code to create a gerrit repo (createGerritRepo) returns an unauthorised error message
responseBody : Unauthorized
see : https://github.com/fabric8io/fabric8/blob/master/components/fabric8-devops-connector/src/main/java/io/fabric8/devops/connector/DevOpsConnector.java#L1341
Why : Gerrit doesn't support BASIC auth to create a new git repo and will only accept Digest auth as coded by myself here : https://github.com/cmoulliard/fabric8/blob/master/components/fabric8-devops-connector/src/main/java/io/fabric8/devops/connector/DevOpsConnector.java#L1186-L1237
If okHttpClient supports Digest scheme which is perhaps the case (https://gist.github.com/fqueiruga/f3f60f7dda50b8c7adc6), we should modify the code OR revert the code to use mine which has been tested
Remark : When somebody makes such big modification, it is important to test it and also to contact the original author to validate with him the modification !