karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caspar MacRae (Issue Comment Edited) (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (KARAF-1070) Allow recusive variable references to be applied as substitution then assignment
Date Fri, 02 Dec 2011 14:29:40 GMT

    [ https://issues.apache.org/jira/browse/KARAF-1070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161656#comment-13161656
] 

Caspar MacRae edited comment on KARAF-1070 at 12/2/11 2:28 PM:
---------------------------------------------------------------

Sorry to reopen this (I know the feature request doesn't match what I'm now reporting as a
bug - if you'd prefer I can create a new ticket).

It looks like the property is overwritten not aggregated.

Steps to reproduce:
# Starting fresh:
{noformat}
wget http://www.apache.org/dyn/closer.cgi/karaf/2.2.4/apache-karaf-2.2.4.tar.gz
tar -xvzf apache-karaf-2.2.4.tar.gz
cd apache-karaf-2.2.4/
{noformat}
# Repeat with/without this next step, webconsole authentication depends on "org.apache.karaf.jaas.boot"
being present
{noformat}
echo "org.osgi.framework.bootdelegation = org.bouncycastle.*;" >> etc/custom.properties
{noformat}

# In Karaf shell, install webconsole
{noformat}
./bin/karaf

features:install webconsole
{noformat}
# Attempt to login to webconsole, with the boodelegation in the custom.properties it will
fail as it can't find org.apache.karaf.jaas.boot.ProxyLoginModule




                
      was (Author: earcam):
    Sorry to reopen this (I know the feature request doesn't match what I'm now reporting
as a bug - if you'd prefer I can create a new ticket).

It looks like the property is overwritten not aggregated.

Steps to reproduce:
wget http://www.apache.org/dyn/closer.cgi/karaf/2.2.4/apache-karaf-2.2.4.tar.gz
tar -xvzf apache-karaf-2.2.4.tar.gz
cd apache-karaf-2.2.4/

# Repeat with/without this next step, webconsole authentication depends on "org.apache.karaf.jaas.boot"
being present

echo "org.osgi.framework.bootdelegation = org.bouncycastle.*;" >> etc/custom.properties

./bin/karaf
# In Karaf shell
features:install webconsole

# Attempt to login to webconsole, with the boodelegation in the custom.properties it will
fail as it can't find org.apache.karaf.jaas.boot.ProxyLoginModule




                  
> Allow recusive variable references to be applied as substitution then assignment
> --------------------------------------------------------------------------------
>
>                 Key: KARAF-1070
>                 URL: https://issues.apache.org/jira/browse/KARAF-1070
>             Project: Karaf
>          Issue Type: Improvement
>    Affects Versions: 2.2.4
>            Reporter: Caspar MacRae
>            Priority: Minor
>
> Hi,
> I tried adding the following to custom.properties:
> {noformat}
> org.osgi.framework.bootdelegation = ${org.osgi.framework.bootdelegation}, org.bouncycastle.*
> {noformat} 
> In the hope that it would do substitution then assignment, but I get an illegal arg exception
"recursive variable reference: org.osgi.framework.bootdelegation"  (at org.apache.karaf.main.Main.substVars(Main.java:1201))
> If the above were possible our custom distro would extend rather than overwrite the standard
Karaf settings - which would make custom distros a bit more resilient (I'm somewhat fearful
I'll miss a change in config, even when running diffs on the stock and custom cfg files).
> (btw creating a custom distro is incredibly easy and a really cool feature, thanks)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message