This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247217 - File without any permissions breaks Navigator
Summary: File without any permissions breaks Navigator
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-17 13:41 UTC by soldatov
Modified: 2014-09-19 15:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2014-09-17 13:41:55 UTC
Scenario:
- Create file without any permissions (current user can't read this file)
- Open Navigator tab
- Add folder with this file into Favorites tab
- Select file node in Favorites
==> "Please Wait..." message in Navigator

Now Navigator doesn't work in any file.
Comment 1 Alexander Simon 2014-09-17 14:47:21 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/cb160debf82a
Comment 2 Vladimir Kvashin 2014-09-17 15:06:37 UTC
The fix was reviewed by Vladimir Kvashin and Vladimir Voskresensky. Both agreed it is correct and safe.
Comment 3 soldatov 2014-09-19 08:04:30 UTC
Verified in NetBeans 8.0.1 patch1

-------------------------------------------------------------------------------
>Log Session: Friday, September 19, 2014 12:00:43 PM MSK
>System Info: 
  Product Version         = NetBeans IDE 8.0.1 (Build 201409182200) (#8819efffa95e)
  Operating System        = SunOS version 5.11 running on amd64
  Java; VM; Vendor        = 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.8.0_05-b13
  Java Home               = /usr/jdk/instances/jdk1.8.0/jre
Comment 4 Quality Engineering 2014-09-19 15:51:44 UTC
Integrated into 'main-silver', will be available in build *201409191429* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cb160debf82a
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #247217 - File without any permissions breaks Navigator
1) when IDE exists during ensureParsed, then file is left in
 INITIAL state which is not PARSED
 check such a case to prevent infinite loop of code model clients
2)Workaround for now is in case of parse issue we have to mark file as parsed, otherwise
 scheduleParsing(true) never finishes "while(!isParsed())" loop
TODO: introduce error on parse state for the file