Quantcast

The source command behaviour in karaf 4.1.0

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

The source command behaviour in karaf 4.1.0

XiLai Dai

Hi, there


With karaf 4.0.x or even previous versions,

karaf@root()>source myscripts/abc.source

it works well.


but in case of karaf 4.1.0, it doesn't work anymore

karaf@trun()> source scripts/abc.source
Error executing command: URI is not absolute


there are workarounds:

1) source file:D:/apache-karaf-4.1.0/scripts/abc.source

2) source file:.scripts/abc.source


the argument only support URI not relative path anymore. is it regression problem? or the expected behaviour from 4.1.0?


Thanks

Xilai

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: The source command behaviour in karaf 4.1.0

jbonofre
Hi Xilai,

It's indeed a change to allow to support any kind of URI/URL.

However, we can re-introduce relative path support by checking prefix.

Can you create a Jira about that ?

Thanks,
Regards
JB

On 03/09/2017 06:36 AM, XiLai Dai wrote:

> Hi, there
>
>
> With karaf 4.0.x or even previous versions,
>
> karaf@root()>source myscripts/abc.source
>
> it works well.
>
>
> but in case of karaf 4.1.0, it doesn't work anymore
>
> karaf@trun()> source scripts/abc.source
> Error executing command: URI is not absolute
>
>
> there are workarounds:
>
> 1) source file:D:/apache-karaf-4.1.0/scripts/abc.source
>
> 2) source file:.scripts/abc.source
>
>
> the argument only support URI not relative path anymore. is it
> regression problem? or the expected behaviour from 4.1.0?
>
>
> Thanks
>
> Xilai
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: The source command behaviour in karaf 4.1.0

XiLai Dai

Thanks JB!


the jira is created: https://issues.apache.org/jira/browse/KARAF-5019


From: Jean-Baptiste Onofré <[hidden email]>
Sent: Thursday, March 9, 2017 2:18:31 PM
To: [hidden email]
Subject: Re: The source command behaviour in karaf 4.1.0
 
Hi Xilai,

It's indeed a change to allow to support any kind of URI/URL.

However, we can re-introduce relative path support by checking prefix.

Can you create a Jira about that ?

Thanks,
Regards
JB

On 03/09/2017 06:36 AM, XiLai Dai wrote:
> Hi, there
>
>
> With karaf 4.0.x or even previous versions,
>
> karaf@root()>source myscripts/abc.source
>
> it works well.
>
>
> but in case of karaf 4.1.0, it doesn't work anymore
>
> karaf@trun()> source scripts/abc.source
> Error executing command: URI is not absolute
>
>
> there are workarounds:
>
> 1) source file:D:/apache-karaf-4.1.0/scripts/abc.source
>
> 2) source file:.scripts/abc.source
>
>
> the argument only support URI not relative path anymore. is it
> regression problem? or the expected behaviour from 4.1.0?
>
>
> Thanks
>
> Xilai
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: The source command behaviour in karaf 4.1.0

jbonofre
Thanks !

Regards
JB

On 03/09/2017 07:45 AM, XiLai Dai wrote:

> Thanks JB!
>
>
> the jira is created: https://issues.apache.org/jira/browse/KARAF-5019
>
> ------------------------------------------------------------------------
> *From:* Jean-Baptiste Onofré <[hidden email]>
> *Sent:* Thursday, March 9, 2017 2:18:31 PM
> *To:* [hidden email]
> *Subject:* Re: The source command behaviour in karaf 4.1.0
>
> Hi Xilai,
>
> It's indeed a change to allow to support any kind of URI/URL.
>
> However, we can re-introduce relative path support by checking prefix.
>
> Can you create a Jira about that ?
>
> Thanks,
> Regards
> JB
>
> On 03/09/2017 06:36 AM, XiLai Dai wrote:
>> Hi, there
>>
>>
>> With karaf 4.0.x or even previous versions,
>>
>> karaf@root()>source myscripts/abc.source
>>
>> it works well.
>>
>>
>> but in case of karaf 4.1.0, it doesn't work anymore
>>
>> karaf@trun()> source scripts/abc.source
>> Error executing command: URI is not absolute
>>
>>
>> there are workarounds:
>>
>> 1) source file:D:/apache-karaf-4.1.0/scripts/abc.source
>>
>> 2) source file:.scripts/abc.source
>>
>>
>> the argument only support URI not relative path anymore. is it
>> regression problem? or the expected behaviour from 4.1.0?
>>
>>
>> Thanks
>>
>> Xilai
>>
>
> --
> Jean-Baptiste Onofré
> [hidden email]
> http://blog.nanthrax.net
> Talend - http://www.talend.com

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Loading...