[jbosstools-issues] [JBoss JIRA] (JBIDE-11211) *Internal Error* when creating server adapter from *OpenShift console*
Max Rydahl Andersen (JIRA)
jira-events at lists.jboss.org
Thu Mar 8 07:43:36 EST 2012
[ https://issues.jboss.org/browse/JBIDE-11211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675097#comment-12675097 ]
Max Rydahl Andersen commented on JBIDE-11211:
---------------------------------------------
This was caused by https://issues.jboss.org/browse/JBIDE-11135 which introduced the UserDelegate over IUser.
Simple patch for b1:
--- a/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/CreateServerAdapterAction.java
+++ b/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/CreateServerAdapterAction.java
@@ -16,6 +16,7 @@ import org.eclipse.wst.server.ui.internal.wizard.fragment.NewServerWizardFragmen
import org.eclipse.wst.server.ui.internal.wizard.fragment.TasksWizardFragment;
import org.eclipse.wst.server.ui.wizard.WizardFragment;
import org.jboss.tools.openshift.express.internal.core.behaviour.ExpressServerUtils;
+import org.jboss.tools.openshift.express.internal.core.console.UserModel;
import org.jboss.tools.openshift.express.internal.ui.OpenShiftUIActivator;
import org.jboss.tools.openshift.express.internal.ui.messages.OpenShiftExpressUIMessages;
@@ -37,8 +38,9 @@ public class CreateServerAdapterAction extends AbstractAction {
&& treeSelection.getFirstElement() instanceof IApplication) {
final IApplication application = (IApplication) treeSelection.getFirstElement();
IUser user = application.getUser();
+
NewServerWizard w = new NewServerWizard(ExpressServerUtils.OPENSHIFT_SERVER_TYPE);
- w.getTaskModel().putObject(ExpressServerUtils.TASK_WIZARD_ATTR_USER, user);
+ w.getTaskModel().putObject(ExpressServerUtils.TASK_WIZARD_ATTR_USER, UserModel.getDefault().findUser(user.getRhlogin()));
w.getTaskModel().putObject(ExpressServerUtils.TASK_WIZARD_ATTR_SELECTED_APP, application);
WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), w);
dialog.open();
Andre - can you verify/apply ?
> *Internal Error* when creating server adapter from *OpenShift console*
> ----------------------------------------------------------------------
>
> Key: JBIDE-11211
> URL: https://issues.jboss.org/browse/JBIDE-11211
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 3.3.0.Beta1
> Reporter: Andre Dietisheim
> Assignee: Rob Stryker
> Fix For: 3.3.0.Beta1
>
> Attachments: internal-error.png, openshift-2.mkv
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list