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 208090 - Opening a .ini file as text activated PHP module anyway
Summary: Opening a .ini file as text activated PHP module anyway
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-06 13:51 UTC by javydreamercsw
Modified: 2012-05-02 10:05 UTC (History)
1 user (show)

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 javydreamercsw 2012-02-06 13:51:00 UTC
Product Version = NetBeans IDE Dev (Build 201202020600)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_02
Runtime = Java HotSpot(TM) Client VM 22.0-b10

I thought I was avoiding the module activation by using Open As>Text/plain but the module opened anyway.
Comment 1 Jaroslav Tulach 2012-02-24 11:02:47 UTC
Common. Give me steps to reproduce!
Comment 2 javydreamercsw 2012-02-24 12:20:48 UTC
I thought it was obvious.

1) Open a project with an ini file in it.
2) Right click the file and select Open As>Text plain
3) Watch the PHP plugin being enabled (you need to have php installed of course)
Comment 3 Petr Cyhelsky 2012-02-24 13:01:48 UTC
fyi the same thing happens with .sh file - it activates cnd cluster...
Comment 4 Jaroslav Tulach 2012-02-26 20:52:47 UTC
The .sh case is clear, the support for .sh files is in CND cluster. That is why it gets activated.

Which module provides support for .ini files? In which cluster it is?
Comment 5 Jaroslav Tulach 2012-04-10 11:44:16 UTC
Yes, it behaves as you describe it.
Comment 6 Jaroslav Tulach 2012-04-26 09:23:28 UTC
ergonomics#3395d259f138
Comment 7 Quality Engineering 2012-05-02 10:05:19 UTC
Integrated into 'main-golden', will be available in build *201205020400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3395d259f138
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #208090: Call setValid(false) before querying for OpenCookie. Convert into classical context action. Add icons, so this action can be placed in toolbar.