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 115283 - Updating Legacy Project Process does not start for 55 projects
Summary: Updating Legacy Project Process does not start for 55 projects
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: John Baker
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-09-11 18:51 UTC by Yousuf Haider
Modified: 2007-09-12 23:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (37.70 KB, text/plain)
2007-09-11 18:52 UTC, Yousuf Haider
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Haider 2007-09-11 18:51:56 UTC
Jdk6u2 and u3 
Beta1 build: 09102007 and 09112007

1. Open 5.5 project that uses data sources in NB6.
2. Expand project node. 
3. Updating legacy project process does not start. As a consequence no connections are migrated from 5.5 userdir and the
migrated folder in the NB6 userdir is not created.
4. The project is badged at this point since data sources need to be resolved. Go through Resolve data sources dialog to
fix the project.

Since there is a workaround filing it as a P2.

Strangely enough if I open an empty 5.5 project in NB6 that uses no data sources the Updating Legacy Project process
starts and all connections are migrated.

I was able to reproduce the same issue with some 5.5.1 projects but not all.
Comment 1 Yousuf Haider 2007-09-11 18:52:22 UTC
Created attachment 48593 [details]
IDE log
Comment 2 Yousuf Haider 2007-09-11 18:53:11 UTC
Marking bug as regression as this functionality was working previously
Comment 3 John Baker 2007-09-11 20:19:26 UTC
If this is not a filing mistake, then possibly not a database bug.
Code hasn't changed in beta1 and migration was working right before the beta1 branch
Comment 4 Yousuf Haider 2007-09-11 21:28:15 UTC
It seems that the fix for the issue 110480 (Updating Legacy Project process starts everytime legacy project is opened)
broke this functionality.

I verified this by trying the build right before and after the fix was integrated. I can reproduce this issue with the
build after that (200709021200) but not the one right before it.

From CVS it seems that a check was added (isRequestedJdbcResourceAvailable()) to fix issue 110480 which checks whether
the project already had datasources. If it had it would not go through the Updating legacy Projects process. Apparently
this worked for Creator projects by migrating settings when the project was opened the first time but not the second time.

For 55 projects the check returns true the first time the project is opened and therefore the database connections are
not migrated.  This also explains why the updating legacy project process starts for projects that don't have
datasources since the check return false and so the migration kicks in.
Comment 5 John Baker 2007-09-11 21:47:41 UTC
Testing should have been completed prior to beta1.
Code hasn't changed for a week
Comment 6 Yousuf Haider 2007-09-11 21:59:02 UTC
Unfortunately since I am working part time I had only 2 days last week to do any testing with Monday being a holiday.
Other pending migration issues took most of the time I had.
Comment 7 John Baker 2007-09-11 22:05:24 UTC
Updating data sources does start, there is a progress bar.
Something else is going on
Comment 8 John Baker 2007-09-11 22:43:03 UTC
This appears to be unrelated to updating data sources 

Updating process occurs and APIs invoked.
It looks like the connection is not migrated, but the driver is migrated, at least for Oracle.

Comment 9 Yousuf Haider 2007-09-11 23:00:51 UTC
I do not see the progress bar starting at all. Also for me the oracle driver is not migrated. So basically nothing is
migrated.
Comment 10 John Baker 2007-09-11 23:37:18 UTC
I cannot reproduce the behavior mentioned.  Updating is working
Comment 11 Yousuf Haider 2007-09-12 20:44:20 UTC
After working with John it seems that the problem is occurring in the beta1 builds. The fix for issue 113272 which was
integrated in the trunk fixed this issue as well. I verified this by testing the trunk build : 200709120000

Will reopen this issue and then mark it as fixed to reflect correct resolution.
Comment 12 Yousuf Haider 2007-09-12 20:45:11 UTC
The fix for issue 113272 fixed this issue as well.
Comment 13 Yousuf Haider 2007-09-12 20:47:01 UTC
Marking as regression since this was broken before beta1.

Comment 14 John Baker 2007-09-12 23:16:48 UTC
This really should have never been a Regression in the first place since this was a bug fix for an issue
that turns out to be invalid

Made some improved fix though

$ cvs commit
visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/explorer/ProjectDataSourceNode.java
Checking in
visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/explorer/ProjectDataSourceNode.java;
/cvs/visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/explorer/ProjectDataSourceNode.java,v
 <--  ProjectDataSourceNode
java
new revision: 1.19; previous revision: 1.18
done