karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KARAF-4833) Incorrect behaviour of executing commands over multi lines via source
Date Tue, 06 Dec 2016 08:11:58 GMT

     [ https://issues.apache.org/jira/browse/KARAF-4833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guillaume Nodet resolved KARAF-4833.
------------------------------------
    Resolution: Fixed
      Assignee: Guillaume Nodet

Fixed by upgrading to jline 3.1.1.
https://github.com/apache/karaf/commit/0cf806b53565f3c2fa9812e46475adfe6430cefa

> Incorrect behaviour of executing commands over multi lines via source
> ---------------------------------------------------------------------
>
>                 Key: KARAF-4833
>                 URL: https://issues.apache.org/jira/browse/KARAF-4833
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.1.0
>            Reporter: Lijun Liao
>            Assignee: Guillaume Nodet
>             Fix For: 4.1.0
>
>
> Steps to reproduce the error:
> 1. Create a file demo.script with following text
> {code}
> feature:install \
>   "invalid-feature-name"
> {code}
> 2. In karaf shell, enter source demo.script
> You will get the following message:
> {code}
> karaf@root()> source tmp/demo.script                                             
               xx:xx:xx
> gogo: IllegalArgumentException: No matching features for invalid-feature-name/0.0.0
> gogo: IllegalArgumentException: No matching features for invalid-feature-name/0.0.0
> Error executing command: No matching features for invalid-feature-name/0.0.0
> {code}
> Since the given feature does not exist, an IllegalArgumentException will be thrown. The
expected behavour is that the throw exception will be outputted once.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message