Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366491 - [UI] Exception in creating a folder in "CDO Sessions" view
Summary: [UI] Exception in creating a folder in "CDO Sessions" view
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.ui (show other bugs)
Version: 4.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-13 02:12 EST by Khosro Asgharifard Sharabiani CLA
Modified: 2012-09-21 07:16 EDT (History)
0 users

See Also:


Attachments
log that is related to exception. (5.49 KB, text/plain)
2011-12-13 02:15 EST, Khosro Asgharifard Sharabiani CLA
no flags Details
CDO Server (587.58 KB, application/zip)
2011-12-13 02:16 EST, Khosro Asgharifard Sharabiani CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Khosro Asgharifard Sharabiani CLA 2011-12-13 02:12:57 EST
Build Identifier: 20110916-0149

After installing latest build https://hudson.eclipse.org/hudson/job/emf-cdo-maintenance/lastSuccessfulBuild/artifact/ my problem did not solved.
The way that you can reproduce my problem is very easy and is as follow :
I have attached my CDO Server.You must first install MYSQL(I use version 5.1) on port 3306 and then import it to your Eclipse and then open "CDOServer.product" and in "Overview" tab click on "Launch An Eclipse Application".And also "cdo-server.xml" locates in "/CDOServer/rootfiles/configuration".
Then follow these steps :
Select "Windows->ShowView->CDO Sessions" view ,then click on plus sign("Open a new CDO Session") and connect to CDO Server that has been started as described in above(For "Server Description" enter "tcp://localhost:2036" and for "Repository Name" enter "demo" and also check "Automatic Package Registry" checkbox).
Then right click on opened session(Session1) on "CDO Sessions" view and select "Open Transaction",and then right click on opened transaction(Transaction1) and then select "Create Folder" ,for example name it "sys1",and then a new tab open and the exception occurred.
I use "eclipse-modeling-indigo-SR1-linux-gtk-x86_64" in Ubuntu 11.10 and JDK 1.6.0_25.

You can also refer to http://www.eclipse.org/forums/index.php/t/265301/ for some other details.




Reproducible: Always

Steps to Reproduce:
1.Start CDO Server first.
2.Go to "Windows->ShowView->CDO Sessions" view
3.Then click on plus sign("Open a new CDO Session") and connect to CDO Server.
4.Then right click on opened session(Session1) on "CDO Sessions" view and select "Open Transaction",and then right click on opened transaction(Transaction1) and then select "Create Folder" ,for example name it "sys1",and then a new tab open and the exception occurred.
Comment 1 Khosro Asgharifard Sharabiani CLA 2011-12-13 02:15:02 EST
Created attachment 208300 [details]
log that is related to exception.
Comment 2 Khosro Asgharifard Sharabiani CLA 2011-12-13 02:16:46 EST
Created attachment 208301 [details]
CDO Server
Comment 3 Eike Stepper CLA 2011-12-13 02:17:37 EST
This is a pure UI bug. CreateResourceNodeAction.doRun() should not attempt to open a resource editor for new folders. A simple if statement fixes this:

    if (!createFolder)
    {
      String resourcePath = node.getPath();
      CDOEditorUtil.openEditor(getPage(), transaction, resourcePath);
    }
Comment 4 Eike Stepper CLA 2011-12-13 02:18:24 EST
commit 1c27262a69ed050d8497f516114d28bd0aaf39be
Author: Eike Stepper <stepper@esc-net.de> 2011-12-13 08:17:56
Committer: Eike Stepper <stepper@esc-net.de> 2011-12-13 08:17:56
Parent: 87851e48d9d1f528f993ee57a476ecbc893c841d (Orbit S20111201180206)
Branches: origin/master, master

[366491] [UI] Exception in creating a folder in "CDO Sessions" view 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=366491
Comment 5 Eike Stepper CLA 2011-12-13 02:18:58 EST
Port to 4.0 via bug 366492.
Comment 6 Eike Stepper CLA 2011-12-13 02:22:41 EST
We only use the stream versions for the bugzillas. This bug I analyzed and fixed in 4.1.
Comment 7 Khosro Asgharifard Sharabiani CLA 2011-12-13 02:24:30 EST
(In reply to comment #6)
> We only use the stream versions for the bugzillas. This bug I analyzed and
> fixed in 4.1.

So,Is there any way to solve it version 4.0.*

Khosro.
Comment 8 Eike Stepper CLA 2011-12-13 02:25:25 EST
(In reply to comment #7)
> (In reply to comment #6)
> > We only use the stream versions for the bugzillas. This bug I analyzed and
> > fixed in 4.1.
> 
> So,Is there any way to solve it version 4.0.*
> 
> Khosro.

See comment 5.
Comment 9 Khosro Asgharifard Sharabiani CLA 2011-12-13 02:26:59 EST
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > We only use the stream versions for the bugzillas. This bug I analyzed and
> > > fixed in 4.1.
> > 
> > So,Is there any way to solve it version 4.0.*
> > 
> > Khosro.
> 
> See comment 5.

Excuse me,i did not pat attention to comment 5.
Thanks Eike.
Comment 10 Khosro Asgharifard Sharabiani CLA 2011-12-13 02:27:06 EST
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > We only use the stream versions for the bugzillas. This bug I analyzed and
> > > fixed in 4.1.
> > 
> > So,Is there any way to solve it version 4.0.*
> > 
> > Khosro.
> 
> See comment 5.

Excuse me,i did not pat attention to comment 5.
Thanks Eike.
Comment 11 Eike Stepper CLA 2011-12-13 02:28:35 EST
No problem. Bugzilla can be confusing ;-)
Comment 12 Eike Stepper CLA 2012-09-21 07:16:48 EDT
Closing.