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

Bug 335388

Summary: Cannot add file in repo in network share
Product: [Technology] JGit Reporter: Robin Rosenberg <robin.rosenberg>
Component: JGitAssignee: Robin Rosenberg <robin.rosenberg>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: audiofreak, caniszczyk, matrix
Version: 0.11   
Target Milestone: 0.11   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard:

Description Robin Rosenberg CLA 2011-01-25 16:51:16 EST
To reproduce, create a repo on a network share, try to add a file

org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of add command
at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:199)
at org.eclipse.egit.core.op.AddToIndexOperation.execute(AddToIndexOperation.java:78)
at org.eclipse.egit.ui.internal.actions.AddToIndexActionHandler$1.run(AddToIndexActionHandler.java:42)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.ObjectWritingException: Unable to create new object: U:\ProjectOnNetworkShare\.git\objects\c2\188dfff30e3d5bf7f30ded19bab06a9341b8bd
at org.eclipse.jgit.storage.file.ObjectDirectoryInserter.insert(ObjectDirectoryInserter.java:100)
at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:177)
... 3 more
Comment 1 Robin Rosenberg CLA 2011-01-25 16:52:38 EST
The share is on a Linux Samba Server.
Comment 2 Robin Rosenberg CLA 2011-01-25 17:43:02 EST
Patch at http://egit.eclipse.org/r/2333
Comment 3 Chris Aniszczyk CLA 2011-01-26 12:28:57 EST
Fixed with c4c8d80fd3a32cace67e7e42650aae7c46dcc622
Comment 4 Robin Rosenberg CLA 2011-04-20 13:35:02 EDT
*** Bug 318777 has been marked as a duplicate of this bug. ***