[JBoss JIRA] (JBIDE-18911) allow URL in the form "from-code=git@github.com" for custom app source code and downloadable cartridges
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-18911?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-18911 at 3/12/15 4:25 AM:
-------------------------------------------------------------------
* *The subtasks*:
*# The bugzilla that's related to this jira issue was asking for 1 thing: being able to use custom application template source code using an ssh url:
{code}
rhc app create kitchensink jbossas-7 mysql-5.5 -g small --from-code=git@github.com:openshift/kitchensink-example.git
{code}
*# Additionally this jira tried also to allow ssh-urls for downloadable (standalone- and embeddable-) cartridges.
* *The state of the sub-tasks*:
*# Seems implemented, the ssh-url is passed over to OpenShift
as provided in the UI:
!source-code.png!
OpenShift then tries to clone the source from the given ssh-url. In OpenShift Online this then of course fails because we cannot give it the private key for the public key that we registered in github.
!clone-error.png!
If using OpenShift Enterprise we need to have this private key available on the broker host at /root/.ssh/ (see https://bugzilla.redhat.com/show_bug.cgi?id=1163964#c0)
{quote}
The reason why John could pass in comment 3, that is because he is using devenv, in the devenv instance, there is always ssh private key saved in /root/.ssh/, so when connecting to github via ssh protocol, node will use this private key to connect github by default, so git clone will always pass
{quote}
[~mlabuda] can you please get a DEVENV where you have root access and can copy some private key to /root/.ssh/ and register the public key in github?
*# Is implemented for the UI validation only. OSJC wont accept the given ssh-url since it's not a valid URL and pass *null* over to OpenShift as shown above (https://issues.jboss.org/browse/JBIDE-18911?focusedCommentId=13043216&pag...).
was (Author: adietish):
* *The subtasks*:
*# The bugzilla that's related to this jira issue was asking for 1 thing: being able to use custom application template source code using an ssh url:
{code}
rhc app create kitchensink jbossas-7 mysql-5.5 -g small --from-code=git@github.com:openshift/kitchensink-example.git
{code}
*# Additionally this jira tried also to allow ssh-urls for downloadable (standalone- and embeddable-) cartridges.
* *The state of the sub-tasks*:
*# Seems implemented, the ssh-url is passed over to OpenShift
as provided in the UI:
!source-code.png!
OpenShift then tries to clone the source from the given ssh-url. In OpenShift Online this then of course fails because we cannot give it the private key for the public key that we registered in github.
!clone-error.png!
If using OpenShift Enterprise we need to have this private key available on the broker host at /root/.ssh/ (see https://bugzilla.redhat.com/show_bug.cgi?id=1163964#c0)
{quote}
The reason why John could pass in comment 3, that is because he is using devenv, in the devenv instance, there is always ssh private key saved in /root/.ssh/, so when connecting to github via ssh protocol, node will use this private key to connect github by default, so git clone will always pass
{quote}
[~mlabuda] can you please organize a DEVENV where you have root access and can copy some private key to /root/.ssh/ and register the public key in github.
*# Is implemented for the UI validation only. OSJC wont accept the given ssh-url since it's not a valid URL and pass *null* over to OpenShift as shown above (https://issues.jboss.org/browse/JBIDE-18911?focusedCommentId=13043216&pag...).
> allow URL in the form "from-code=git(a)github.com" for custom app source code and downloadable cartridges
> -------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-18911
> URL: https://issues.jboss.org/browse/JBIDE-18911
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Affects Versions: 4.2.0.Final
> Reporter: Andre Dietisheim
> Assignee: Marián Labuda
> Labels: application_wizard, embed_wizard, new_and_noteworthy
> Fix For: 4.2.3.CR1
>
> Attachments: clone-error.png, source-code.png
>
>
> We should be able to use urls that refer to github repositories when using custom application source code and downloadable cartridges
> The exact form is documented in the github (and general purpose git-) documentation: https://gist.github.com/grawity/4392747
> {quote}
> SSH, aka git(a)github.com: or ssh://git@github.com/
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years
[JBoss JIRA] (JBTIS-407) Cannot update all BPMN2 features from 7.0.3.GA to 7.1.0.CR2
by Andrej Podhradsky (JIRA)
[ https://issues.jboss.org/browse/JBTIS-407?page=com.atlassian.jira.plugin.... ]
Andrej Podhradsky commented on JBTIS-407:
-----------------------------------------
[~mhusnain] you are right, we don't need to document this.
> Cannot update all BPMN2 features from 7.0.3.GA to 7.1.0.CR2
> -----------------------------------------------------------
>
> Key: JBTIS-407
> URL: https://issues.jboss.org/browse/JBTIS-407
> Project: JBoss Tools Integration Stack
> Issue Type: Bug
> Components: distribution
> Affects Versions: 7.1.0.CR2
> Environment: Installed: JBDS 7.1.1.GA + JBDS-IS 7.0.3.GA
> Update to: JBDS-IS 7.1.0.CR2
> Reporter: Andrej Podhradsky
> Assignee: Paul Leacu
> Priority: Blocker
> Fix For: 7.1.0.CR3, 4.1.7.CR3
>
>
> The follwoing error orrcurs when updating from JBDS-IS 7.0.3.GA to JBDS-IS 7.1.0.CR2
> Cannot complete the install because of a conflicting dependency.
> Software being installed: BPMN2 Metamodel 1.0.0.Final (org.eclipse.bpmn2.feature.group 1.0.0.Final)
> Software currently installed: BPMN2 Project Feature 0.7.0.201308220617 (org.eclipse.bpmn2.feature.feature.group 0.7.0.201308220617)
> Only one of the following can be installed at once:
> BPMN2 Edit Support 0.7.0.201308220617 (org.eclipse.bpmn2.edit 0.7.0.201308220617)
> BPMN2 Edit Support 1.0.0.Final (org.eclipse.bpmn2.edit 1.0.0.Final)
> Cannot satisfy dependency:
> From: BPMN2 Project Feature 0.7.0.201308220617 (org.eclipse.bpmn2.feature.feature.group 0.7.0.201308220617)
> To: org.eclipse.bpmn2.edit [0.7.0.201308220617]
> Cannot satisfy dependency:
> From: BPMN2 Metamodel 1.0.0.Final (org.eclipse.bpmn2.feature.group 1.0.0.Final)
> To: org.eclipse.bpmn2.edit [1.0.0.Final]
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years
[JBoss JIRA] (JBIDE-19376) Eclipse freezes at or shortly after startup
by Anton Meller (JIRA)
[ https://issues.jboss.org/browse/JBIDE-19376?page=com.atlassian.jira.plugi... ]
Anton Meller commented on JBIDE-19376:
--------------------------------------
Thank you very much!
I will try to test the fix when 4.2.3.CR1 is out.
> Eclipse freezes at or shortly after startup
> -------------------------------------------
>
> Key: JBIDE-19376
> URL: https://issues.jboss.org/browse/JBIDE-19376
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.2.2.Final
> Environment: Eclipse Luna EE.
> Reporter: Anton Meller
> Assignee: Rob Stryker
> Priority: Critical
> Fix For: 4.2.3.CR1, 4.3.0.Alpha2
>
> Attachments: 20150224_threaddump-1424762289905.tdump, 20150225_threaddump-1424847077811.tdump, 20150225_threaddump-1424847803263.tdump, 20150226_threaddump-1424936318015.tdump
>
>
> Sometimes (probably once or twice a month) my eclipse freezes either right at startup or short after startup if I try to save some modified file. In Java VisualVM I can see than a deadlock in org.jboss.ide.eclipse.as.core.JBossServerCorePlugin.start() method.
> Today I have updated JBoss plugins to latest version (from the update site for JBoss Tools 4.2.2.Final) and was able to reproduce the problem at every second or third startup . It looks like it occurs on larger workspaces (my current workspace has about 70 open projects (most of them are java projects and depends on each other)) and if servers view is open/visible right at startup. In a smaller workspace with only 11 projects I had no luck reproducing the deadlock.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years
[JBoss JIRA] (JBTIS-407) Cannot update all BPMN2 features from 7.0.3.GA to 7.1.0.CR2
by Misha Ali (JIRA)
[ https://issues.jboss.org/browse/JBTIS-407?page=com.atlassian.jira.plugin.... ]
Misha Ali commented on JBTIS-407:
---------------------------------
Looks like we no longer need to document this, since the name is reverted. Please comment if this is not the case.
> Cannot update all BPMN2 features from 7.0.3.GA to 7.1.0.CR2
> -----------------------------------------------------------
>
> Key: JBTIS-407
> URL: https://issues.jboss.org/browse/JBTIS-407
> Project: JBoss Tools Integration Stack
> Issue Type: Bug
> Components: distribution
> Affects Versions: 7.1.0.CR2
> Environment: Installed: JBDS 7.1.1.GA + JBDS-IS 7.0.3.GA
> Update to: JBDS-IS 7.1.0.CR2
> Reporter: Andrej Podhradsky
> Assignee: Paul Leacu
> Priority: Blocker
> Fix For: 7.1.0.CR3, 4.1.7.CR3
>
>
> The follwoing error orrcurs when updating from JBDS-IS 7.0.3.GA to JBDS-IS 7.1.0.CR2
> Cannot complete the install because of a conflicting dependency.
> Software being installed: BPMN2 Metamodel 1.0.0.Final (org.eclipse.bpmn2.feature.group 1.0.0.Final)
> Software currently installed: BPMN2 Project Feature 0.7.0.201308220617 (org.eclipse.bpmn2.feature.feature.group 0.7.0.201308220617)
> Only one of the following can be installed at once:
> BPMN2 Edit Support 0.7.0.201308220617 (org.eclipse.bpmn2.edit 0.7.0.201308220617)
> BPMN2 Edit Support 1.0.0.Final (org.eclipse.bpmn2.edit 1.0.0.Final)
> Cannot satisfy dependency:
> From: BPMN2 Project Feature 0.7.0.201308220617 (org.eclipse.bpmn2.feature.feature.group 0.7.0.201308220617)
> To: org.eclipse.bpmn2.edit [0.7.0.201308220617]
> Cannot satisfy dependency:
> From: BPMN2 Metamodel 1.0.0.Final (org.eclipse.bpmn2.feature.group 1.0.0.Final)
> To: org.eclipse.bpmn2.edit [1.0.0.Final]
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years
[JBoss JIRA] (JBDS-3361) Cannot install JBDS 8.0.2.GA in offline mode
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/JBDS-3361?page=com.atlassian.jira.plugin.... ]
Nick Boldt commented on JBDS-3361:
----------------------------------
Funny story: in JBDS-3092, for JBDS 8, we removed the TP content in the update site zip that duplicates what's in the target platform. Now we're putting it back. *sigh*
> Cannot install JBDS 8.0.2.GA in offline mode
> --------------------------------------------
>
> Key: JBDS-3361
> URL: https://issues.jboss.org/browse/JBDS-3361
> Project: Developer Studio (JBoss Developer Studio)
> Issue Type: Bug
> Components: updatesite
> Affects Versions: 8.0.2.GA
> Reporter: Tomáš Sedmík
> Assignee: Nick Boldt
> Priority: Blocker
> Fix For: 8.1.0.CR1, 9.0.0.Alpha2
>
>
> Cannot install JBDS 8.0.2.GA in offline mode - see the problem
> {code:borderStyle=solid}
> Cannot complete the install because one or more required items could not be found.
> Software being installed: JBoss Developer Studio (Core Features) 8.0.2.GA-v20150114-2029-B382 (com.jboss.devstudio.core.feature.feature.group 8.0.2.GA-v20150114-2029-B382)
> Missing requirement: JBoss Developer Studio (Core Features) 8.0.2.GA-v20150114-2029-B382 (com.jboss.devstudio.core.feature.feature.group 8.0.2.GA-v20150114-2029-B382) requires 'org.eclipse.core.runtime.compatibility.auth 0.0.0' but it could not be found
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years
[JBoss JIRA] (JBDS-3371) The method openFileDialog(null, null) is undefined for the type FileOpenService
by Denis Golovin (JIRA)
[ https://issues.jboss.org/browse/JBDS-3371?page=com.atlassian.jira.plugin.... ]
Denis Golovin closed JBDS-3371.
-------------------------------
> The method openFileDialog(null, null) is undefined for the type FileOpenService
> -------------------------------------------------------------------------------
>
> Key: JBDS-3371
> URL: https://issues.jboss.org/browse/JBDS-3371
> Project: Developer Studio (JBoss Developer Studio)
> Issue Type: Bug
> Environment: JBoss Developer Studio Version: 8.0.2.GA
> Reporter: Ludumo Sankobe
>
> Im getting "The method openFileDialog(null, null) is undefined for the type FileOpenService" error wen trying to run the code bellow.:
> {code}
> package com.hrtrust.ps.scanner;
> // add javaws.jar to the classpath during compilation
> import javax.jnlp.FileOpenService;
> import javax.jnlp.FileSaveService;
> import javax.jnlp.FileContents;
> import javax.jnlp.ServiceManager;
> import javax.jnlp.UnavailableServiceException;
> import java.io.*;
> import javax.jnlp.ExtendedService;
> public class FileHandler {
> static private FileOpenService fos = null;
> static private FileSaveService fss = null;
> static private FileContents fc = null;
> static private ExtendedService exs = null;
> // retrieves a reference to the JNLP services
> private static synchronized void initialize() {
> if (fss != null) {
> return;
> }
> try {
> fos = (FileOpenService) ServiceManager.lookup("javax.jnlp.FileOpenService");
> fss = (FileSaveService) ServiceManager.lookup("javax.jnlp.FileSaveService");
> exs = (ExtendedService) ServiceManager.lookup("javax.jnlp.ExtendedService");
>
> } catch (UnavailableServiceException e) {
> fos = null;
> fss = null;
> exs = null;
> }
> }
> public static FileContents getDLL(File dllFile) {
> initialize();
> try {
> fc = exs.openFile(dllFile);
> } catch (IOException ioe) {
> ioe.printStackTrace(System.out);
> return null;
> }
> return fc;
> }
> // displays open file dialog and reads selected file using FileOpenService
> public static String open() {
> initialize();
> try {
> fc = fos.openFileDialog(null, null);
> return readFromFile(fc);
> } catch (IOException ioe) {
> ioe.printStackTrace(System.out);
> return null;
> }
> }
> // displays saveFileDialog and saves file using FileSaveService
> public static void save(String txt) {
> initialize();
> try {
> // Show save dialog if no name is already given
> if (fc == null) {
> fc = fss.saveFileDialog(null, null,
> new ByteArrayInputStream(txt.getBytes()), null);
> // file saved, done
> return;
> }
> // use this only when filename is known
> if (fc != null) {
> writeToFile(txt, fc);
> }
> } catch (IOException ioe) {
> ioe.printStackTrace(System.out);
> }
> }
> // displays saveAsFileDialog and saves file using FileSaveService
> public static void saveAs(String txt) {
> initialize();
> try {
> if (fc == null) {
> // If not already saved. Save-as is like save
> save(txt);
> } else {
> fc = fss.saveAsFileDialog(null, null, fc);
> save(txt);
> }
> } catch (IOException ioe) {
> ioe.printStackTrace(System.out);
> }
> }
> private static void writeToFile(String txt, FileContents fc) throws IOException {
> int sizeNeeded = txt.length() * 2;
> if (sizeNeeded > fc.getMaxLength()) {
> fc.setMaxLength(sizeNeeded);
> }
> BufferedWriter os = new BufferedWriter(new OutputStreamWriter(fc.getOutputStream(true)));
> os.write(txt);
> os.close();
> }
> private static String readFromFile(FileContents fc) throws IOException {
> if (fc == null) {
> return null;
> }
> BufferedReader br = new BufferedReader(new InputStreamReader(fc.getInputStream()));
> StringBuffer sb = new StringBuffer((int) fc.getLength());
> String line = br.readLine();
> while (line != null) {
> sb.append(line);
> sb.append("\n");
> line = br.readLine();
> }
> br.close();
> return sb.toString();
> }
> }
> {code}
> NB. fc = fos.openFileDialog(null, null); is the line that gives an error. (FileOpenService)....FileSaveService and FileContents works just fine.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years