Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335388 - Cannot add file in repo in network share
Summary: Cannot add file in repo in network share
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.11   Edit
Hardware: PC Windows Server 2003
: P3 normal (vote)
Target Milestone: 0.11   Edit
Assignee: Robin Rosenberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-25 16:51 EST by Robin Rosenberg CLA
Modified: 2011-04-20 13:35 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 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. ***