Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362014

Summary: push does not report error when trying to push if not authorized / insufficient permission
Product: [Technology] JGit Reporter: Sam Davis <sam.davis>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: loskutov, markus.kell.r, remy.suen
Version: 4.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Sam Davis CLA 2011-10-25 18:49:39 EDT
I tried to push a change when there was some probelm with my account (it did not have the correct group permissions on the server, I think). A push job was displayed in the progress view but did not complete and could not be cancelled. No error was reported.

When I tried to push from the command line I got the following output:

bq. Counting objects: 19, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (10/10), 641 bytes, done.
Total 10 (delta 4), reused 0 (delta 0)
fatal: unable to create 'refs/heads/master.lock': Permission denied
fatal: The remote end hung up unexpectedly
Comment 1 Markus Keller CLA 2016-04-06 14:20:28 EDT
4.3.0.201603230046

I tried to push a commit to ssh://mkeller@git.eclipse.org/gitroot/www.eclipse.org/swt.git , and all I got as failure message was:

"ssh://mkeller@git.eclipse.org/gitroot/www.eclipse.org/swt.git: error occurred during unpacking on the remote end: unpack-objects abnormal exit"


Command-line git 2.7.0 reveals the actual problem:

remote: error: insufficient permission for adding an object to repository database objects
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To ssh://mkeller@git.eclipse.org/gitroot/www.eclipse.org/swt.git
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'ssh://mkeller@git.eclipse.org/gitroot/www.eclipse.org/swt.git'