Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362014 - push does not report error when trying to push if not authorized / insufficient permission
Summary: push does not report error when trying to push if not authorized / insufficie...
Status: NEW
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-25 18:49 EDT by Sam Davis CLA
Modified: 2016-04-06 14:23 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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'