Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2226

Properties with pathname are not correct on windows in jaas PropertiesLoginModule

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.3.2, 3.0.0
    • Component/s: karaf-core
    • Labels:
      None

      Description

      In the default config for the karaf jaas PropertiesLoginModule we use a placeholder karaf.base. This works on unix but fails in windows.

      It looks like the backslashes are the problem. Probably they are not escaped correctly. This problem might be a generic problem with the felix properties.

      users=$[karaf.base]/etc/users.properties

        Activity

        Hide
        chris@die-schneider.net Christian Schneider added a comment -

        I found that it is necessary to define a type converter that converts the paths to unix format.

        <type-converters>
        <bean class="org.apache.karaf.jaas.modules.properties.PropertiesConverter"/>
        </type-converters>

        So this is no bug in the implementation but rather the documentation is missing this. I will add the info to the manual.

        Show
        chris@die-schneider.net Christian Schneider added a comment - I found that it is necessary to define a type converter that converts the paths to unix format. <type-converters> <bean class="org.apache.karaf.jaas.modules.properties.PropertiesConverter"/> </type-converters> So this is no bug in the implementation but rather the documentation is missing this. I will add the info to the manual.
        Hide
        vgalcenco Vladimir Galcenco added a comment -

        Hi,

        Could you update the documentation for Karaf 2.2.x please?
        I am using ServiceMix 4.5.1 with Karaf 2.2.10 and it took me some time to realize what is happening.
        It would have been much easier if the documentation for 2.2.x had the note about the required type converter.

        Thank you.

        Show
        vgalcenco Vladimir Galcenco added a comment - Hi, Could you update the documentation for Karaf 2.2.x please? I am using ServiceMix 4.5.1 with Karaf 2.2.10 and it took me some time to realize what is happening. It would have been much easier if the documentation for 2.2.x had the note about the required type converter. Thank you.

          People

          • Assignee:
            chris@die-schneider.net Christian Schneider
            Reporter:
            chris@die-schneider.net Christian Schneider
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development