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 256236 - Remote Git Ignore command causes UnsupportedOperationException
Summary: Remote Git Ignore command causes UnsupportedOperationException
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote VCS (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 256394 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-28 17:37 UTC by Alexander Pepin
Modified: 2016-03-16 08:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 220829


Attachments
stacktrace (2.34 KB, text/plain)
2015-10-28 17:37 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2015-10-28 17:37:07 UTC
Build: Oracle Solaris Studio Dodona (2015/08/21 e9be15fa1fd9)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01
OS: Linux

User Comments:
apepin: working with Remote Git




Stacktrace: 
java.lang.UnsupportedOperationException
   at org.netbeans.modules.git.remote.cli.jgit.IgnoreRule.getResult(IgnoreRule.java:90)
   at org.netbeans.modules.git.remote.cli.jgit.commands.IgnoreCommand.addStatement(IgnoreCommand.java:81)
   at org.netbeans.modules.git.remote.cli.jgit.commands.IgnoreUnignoreCommand.addStatement(IgnoreUnignoreCommand.java:149)
   at org.netbeans.modules.git.remote.cli.jgit.commands.IgnoreUnignoreCommand.changeIgnoreStatus(IgnoreUnignoreCommand.java:137)
   at org.netbeans.modules.git.remote.cli.jgit.commands.IgnoreUnignoreCommand.run(IgnoreUnignoreCommand.java:115)
   at org.netbeans.modules.git.remote.cli.jgit.commands.GitCommand$1.run(GitCommand.java:89)
Comment 1 Alexander Pepin 2015-10-28 17:37:09 UTC
Created attachment 157029 [details]
stacktrace
Comment 2 Alexander Pepin 2015-10-28 17:46:30 UTC
Steps to reproduce:
- in terminal clone a project from the git repository 
- open the project
- call Remote Git->Ignore->Ignore on 'nbproject/private' folder in Files view

Result: UnsupportedOperationException occurs.
Comment 3 Alexander Simon 2015-10-29 11:53:46 UTC
fixed on enum, change set:
e39d5883187c
Comment 4 Quality Engineering 2015-10-30 02:22:35 UTC
Integrated into 'main-silver', will be available in build *201510300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e2817420db0c
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #256236 Remote Git Ignore command causes UnsupportedOperationException
(transplanted from e39d5883187c8fd1927a75d83826dad4bd10cce4)
Comment 5 Alexander Simon 2015-11-05 20:33:08 UTC
*** Bug 256394 has been marked as a duplicate of this bug. ***
Comment 6 Alexander Pepin 2015-11-25 20:16:12 UTC
Verified in build 20151119.