GithubHelp home page GithubHelp logo

Comments (24)

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Which version of scm-manager do you use? and which version of egit do you use (version number and msysgit or jgit)?

SCM-Manager uses smart http.

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Thierry L. (Bitbucket: [Thierry L.](https://bitbucket.org/Thierry L.), ).


i'm using
scm-manager v1.4
msysgit: 1.7.4.msysgit.0
Egit: 0.11.1 based on Jgit 0.11.1

I'm not using jgit CLI

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Thierry L. (Bitbucket: [Thierry L.](https://bitbucket.org/Thierry L.), ).


As Egit accept authentication based on url http://user:pw@host as a workaround for access to other server implementation, i thought that scm-manager does accept only http://user@host urls and does filter the others

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Could you please test with version 0.12.1 of EGit and JGit?

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Authentication in urls is not a server feature. The client must read the parameters and create a basic httpheader.

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Thierry L. (Bitbucket: [Thierry L.](https://bitbucket.org/Thierry L.), ).


I 'm going to upgrade but one of my colleagues has got the same issue with Egit 0.12.1

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Thierry L. (Bitbucket: [Thierry L.](https://bitbucket.org/Thierry L.), ).


Same issue with EGit/JGit 0.12.1

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


When you get this issue? clone or push?

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


I've tested with EGit/JGit 0.12.1 clone and push works well for me.

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Could you provide some steps to produce this issue?

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Which version msygit do you use? have a look at <<issue 19>>.

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Thierry L. (Bitbucket: [Thierry L.](https://bitbucket.org/Thierry L.), ).


I really don't know why.
I will install wireshark tomorrow and sniff the packets.

Where are the credentials in a http header ?

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Thierry L. (Bitbucket: [Thierry L.](https://bitbucket.org/Thierry L.), ).


msysgit 1.7.4

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Thierry L. (Bitbucket: [Thierry L.](https://bitbucket.org/Thierry L.), ).


With msysgit it works but not with egit.

git push http://scmadmin:scmadmin:@myhost:8080/scm/git/test

Strange !

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


The credentials are base64 encoded in the Authorization httpheader.

http://en.wikipedia.org/wiki/Basic_access_authentication

Could you provide some steps to reproduce this issue? Have you stored the authentication in the eclipse secure store?

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Occurs this issue if you clone an repository (File->Import-Git) with egit?

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Thierry L. (Bitbucket: [Thierry L.](https://bitbucket.org/Thierry L.), ).


//Could you provide some steps to produce this issue?//

1/ Get scm-manager and Eclipse+Egit installed on the same computer

2/ Setup scm-manager with new hostname (localhost) and a directory for git repos (d:\git)

3/ Create a repo named "test" with "public" access

4/ Set "write" permissions for the user "scmadmin" on this repo ("is group" unchecked)

5/ Populate the empty repo with msysgit which creates the master branch (i will make a proposal on this topic later)

cd D:\git\import
git push http://scmadmin:scmadmin@<myhost>:8080/scm/git/test master

The "import" repo contains just a simple file "test.txt"

6/ Clone the "test" repo in Egit:
Git repository perspective > button "Clone a Git reposi..."
URI=http://scmadmin:scmadmin@:8080/scm/git/test
"Store in Secure Storage" checked or not doesn't change anything
Location= "d:\Documents and Settings<myuser>\test0.4
Then i get my new local repo "test0.4"

7/
Right clic on the "Working directory" > "Import project" > "Import as a general project"

8/ Switch to the Java perspective, edit the file "test.txt" and commit "Team" > "Commit"

9/ Team "Push to upstream"

10/ configure (a bug in Egit inserts "/r/p" in the push URI)
select uri then "Change" and modify uri
then "Save and push"

Taddaaaa

//An internal Exception occured during push: http://scmadmin@myhost:8080/scm/git/test: 401 Authorization Required//

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Could you please test the behavior with a private repository (uncheck the public checkbox and save)?

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Thierry L. (Bitbucket: [Thierry L.](https://bitbucket.org/Thierry L.), ).


Same result with private repo

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Ok, i found a error in the git implementation of scm-manager, but this error only occurs if you have changed the location of the git repositories. Have you changed the location of the git repository (Repository Types->Git->Repository directory)?

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Thierry L. (Bitbucket: [Thierry L.](https://bitbucket.org/Thierry L.), ).


yes exactly

My new location is "d:\git"

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Possible fix: <>

Could you please test this version?

http://download.scm-manager.org/issues/29/scm-server-1.5-SNAPSHOT-app.zip

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Thierry L. (Bitbucket: [Thierry L.](https://bitbucket.org/Thierry L.), ).


Nice work.

After some testing, it's ok.
There are some other issues but if you prefer i can open new tickets for them.

Thanks for all.

from scm-manager.

cesmarvin avatar cesmarvin commented on May 23, 2024

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


yes please please create new tickets for other issues.

from scm-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.