-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
6.0.2
-
None
-
All All
Description of problem:
Using Uberfire's Git VFS, I'm unable to push to a FileSystem created as
FileSystem clonedInsuranceFS = ioService.newFileSystem( URI.create( TEST_CLONED_REPOSITORY ), new HashMap<String, Object>() {{
put( "origin", "git://localhost:9418/insurance" );
put( "username", "brmsAdmin" );
put( "password", "brms_1234" );
}} );
The Server hosting the insurance repository is Business Central 6.0.1 CR2.
I'm pushing with the following code:
ioService.getFileSystem( URI.create( TEST_CLONED_REPOSITORY + "?push=git://localhost:9418/insurance&force" ) );
The exception is:
org.eclipse.jgit.api.errors.TransportException: git://localhost:9418/insurance: push not permitted
Tracing the problem back, I see that JGitUtil.pushRepository's credentialsProvider has the username "guest" and password "". This is likely the problem.
Version-Release number of selected component (if applicable):
Uberfire 0.3.1
How reproducible:
Consistent
Steps to Reproduce:
1. Business Central hosts git
2. Try to push a change
3. Push fails silently
Actual results:
Push fails silently
Expected results:
Push succeeds
Additional info: