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 184509 - UnFileDataObject.move may cause the files() to return two files
Summary: UnFileDataObject.move may cause the files() to return two files
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks: 226913
  Show dependency tree
 
Reported: 2010-04-20 03:40 UTC by davidacampbell
Modified: 2013-03-15 13:23 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 75098


Attachments
stacktrace (2.80 KB, text/plain)
2010-04-20 03:40 UTC, davidacampbell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davidacampbell 2010-04-20 03:40:04 UTC
Build: NetBeans IDE Dev (Build 201004110201)
VM: OpenJDK Client VM, 14.0-b08, OpenJDK Runtime Environment, 1.6.0_0-b14
OS: Linux

User Comments:
davidacampbell: Refactor classes to a new location

buzzword: Drag'n'Droping an xml and few xsls from one package to another one.

GUEST: I tried to move 2 selected PHP file from one folder to another.




Stacktrace: 
java.lang.UnsupportedOperationException: Error in data system. Please reopen the bug #17014 with the following message: 
  DataLoader:org.netbeans.modules.java.JavaDataLoader
  DataObject:org.netbeans.modules.java.JavaDataObject@92abf3[MasterFileObject[/big/dcampbel/clients/deh/ec/cr_46390/ec/nb/ec-billing-ejb/src/java/au/gov/sa/environment/ecommerce/billing/ApplDetails.java@1e8819e:77e387,valid=true]]
  PrimaryEntry:org.netbeans.modules.java.JavaDataLoader$JavaFileEntry@77e387
  PrimaryFile:MasterFileObject[/big/dcampbel/clients/deh/ec/cr_46390/ec/nb/ec-billing-ejb/src/java/au/gov/sa/environment/ecommerce/billing/ApplDetails.java@1e8819e:77e387,valid=true]
  SecondaryFile:MasterFileObject[/big/dcampbel/clients/deh/ec/cr_46390/ec/nb/ec-billing-ejb/src/java/au/gov/sa/environment/ecommerce/billing/transfer/ApplDetails.java@5a12f5:1e3cabd,valid=false]

   at org.openide.loaders.UniFileLoader.createSecondaryEntry(UniFileLoader.java:138)
   at org.openide.loaders.MultiFileLoader.createSecondaryEntryImpl(MultiFileLoader.java:357)
   at org.openide.loaders.MultiDataObject.createSecondaryEntry(MultiDataObject.java:952)
   at org.openide.loaders.MultiDataObject.registerEntry(MultiDataObject.java:339)
   at org.openide.loaders.MultiFileLoader.handleFindDataObject(MultiFileLoader.java:219)
   at org.openide.loaders.DataObjectPool.handleFindDataObject(DataObjectPool.java:158)
Comment 1 davidacampbell 2010-04-20 03:40:11 UTC
Created attachment 97681 [details]
stacktrace
Comment 2 Peter Pis 2010-04-20 06:56:40 UTC
Reassigning.
Comment 3 Svata Dedic 2012-08-01 11:55:22 UTC
Reassigning again. it seems something strange is within Data systems, as DataObject are reported with 2 files even though the relevant DataLoader is unifile.
It should be impossible for a DataObject to absorb 2 files from different directories (ecommerce/billing/ApplDetails.java, /ecommerce/billing/transfer/ApplDetails.java); it seems to have some connection to file move operation.
Comment 4 Jaroslav Tulach 2012-11-01 12:51:49 UTC
I think I have a test to reproduce the situation. This must be very unusual case.
Comment 5 Jaroslav Tulach 2012-11-01 14:20:18 UTC
ergonomics#ce8f8102cb63
Comment 6 Quality Engineering 2012-11-03 02:41:22 UTC
Integrated into 'main-golden', will be available in build *201211030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ce8f8102cb63
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #184509: More carefully refuse invalid file objects