Guest?
 
Project
SVNKit
Priority
Minor
Type
Bug
State
Can't Reproduce
Assignee
Dmitry Pavlenko
Subsystem
Working Copy
Affected versions
1.7.0
Fix versions
No Fix versions
Fixed in build
No Fixed in build
  • Created by   Ondrej Vrabec
    13 months ago (09 May 2012 11:40)
  • Updated by   Alexander Kitaev
    11 months ago (19 Jun 2012 14:40)
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Hi, we have a bug filed against the NetBeans IDE: https://netbeans.org/bugzilla/show_bug.cgi?id=212158 ; We're using svnkit 1.7.4.
The NPE is thrown at the following line in SVNWCAccess.java:
String childRoot = childRootEntry.getRepositoryRoot();

it seems that childRootEntry can be null - returned from the previous call to:
childArea.getEntry(childArea.getThisDirName(), false);

I was able to reproduce when the .svn/entries contained "absent" flag in the dir's entry properties. I have no idea however how often (and if at all) this can happen.
Comments (7)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Dmitry Pavlenko
  Dmitry Pavlenko
09 May 2012 16:42
13 months ago
Hello. Could you please attach working copy on which the problem is reproducible?
Ondrej Vrabec
  Ondrej Vrabec
09 May 2012 17:18
13 months ago
168751JavaApplication.tgz - status for 168751JavaApplication/src/newpackage throws the NPE because there is newpackage/.svn/entries contain "absent" property for "thisdir" entry. But note that i am not able to get this state myself, it may be that the WC is corrupted, i have no idea what "absent" means.
Dmitry Pavlenko
  Dmitry Pavlenko
09 May 2012 17:20
13 months ago
Absent can mean that you have no permissions on the file or directory.
Dmitry Pavlenko
  Dmitry Pavlenko
09 May 2012 18:47
13 months ago
I think this state is invalid. If you run "svn status" in 'newpackage' you'll get segmentation fault. So the question is: how could working copy get into this state. I have no idea so far.
Dmitry Pavlenko
  Dmitry Pavlenko
09 May 2012 20:06
13 months ago
Ondrej, how did you get this working copy: from the user with the problem or by editing .svn/entries manually?
Ondrej Vrabec
  Ondrej Vrabec
09 May 2012 20:43
13 months ago
I editted the entries file manually. I have no idea how our reporter got the exception. That's why i reported with the lowest priority possible. If you can't think of any reasonable (and valid) way to get the state of the entries file, i suggest you close this and i'll inform our reporter to provide the entries file.
Ondrej Vrabec
  Ondrej Vrabec
09 May 2012 20:57
13 months ago
sorry if you wasted some time on this, i think it's probably some misconfiguration of the WC. But looking at the SVNKit code, i thought i let you know because childArea.getEntry may return null and caller (SVNWCAccess.doOpen) does not seem to count with that. And because one of our user indeed got into this situation, i thought you might wanna know about it (possibly you would think of any valid state of the WC). I'll let you know if i get more information from our reporter. Thanks.
Apply Command

Command Preview: