Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-8188

Use default location to read license from

    Details

    • Type: Task
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.8.0, 7.8.0-alpha4
    • Component/s: webapp
    • Labels:
      None

      Description

      There is a property to read the license from a file (https://camunda.github.io/camunda-bpm-spring-boot-starter/docs/current/index.html#properties). There should be a default location where it is checked for a license, if this property is not set.

      E.g.:

      camunda.bpm.license-file=file:${user.home}/.camunda/license.txt
      

        Activity

        Hide
        ruecker Bernd Rücker added a comment -

        Just as an additional thought: Maybe such logic could also be moved from Spring Boot to a place, where the license is checked in the platform? Then the same thing would also work for any camunda environment, if there is a license in the default location it just get picked up?

        Show
        ruecker Bernd Rücker added a comment - Just as an additional thought: Maybe such logic could also be moved from Spring Boot to a place, where the license is checked in the platform? Then the same thing would also work for any camunda environment, if there is a license in the default location it just get picked up?
        Hide
        svetlana.dorokhova Svetlana Dorokhova added a comment -

        By default Spring Boot Starter will load license key from camunda-license.txt file from classpath (now documented here).

        Additionally I implemented the requested behaviour in EE webappps. Now when frontend requires the license from the database and it is not found, it will check

        ${user.home}/.camunda/license.txt

        and insert the license from this file into the database.

        Show
        svetlana.dorokhova Svetlana Dorokhova added a comment - By default Spring Boot Starter will load license key from camunda-license.txt file from classpath (now documented here ). Additionally I implemented the requested behaviour in EE webappps. Now when frontend requires the license from the database and it is not found, it will check ${user.home}/.camunda/license.txt and insert the license from this file into the database.
        Hide
        menge Falko Menge added a comment -

        Svetlana Dorokhova the docs don't mention the possibility to load it from the user home. It only talks about classpath.

        Show
        menge Falko Menge added a comment - Svetlana Dorokhova the docs don't mention the possibility to load it from the user home. It only talks about classpath.
        Hide
        menge Falko Menge added a comment -

        It took me quite a while to figure out the format in which to store the license and Spring Boot crashes without any helpful error messages. It would be nice to have a hint in the docs that one has to keep the header and footer lines around the license key:

        --------------- BEGIN CAMUNDA BPM LICENSE KEY ---------------
        ...
        ---------------  END CAMUNDA BPM LICENSE KEY  ---------------
        
        Show
        menge Falko Menge added a comment - It took me quite a while to figure out the format in which to store the license and Spring Boot crashes without any helpful error messages. It would be nice to have a hint in the docs that one has to keep the header and footer lines around the license key: --------------- BEGIN CAMUNDA BPM LICENSE KEY --------------- ... --------------- END CAMUNDA BPM LICENSE KEY ---------------
        Hide
        svetlana.dorokhova Svetlana Dorokhova added a comment -

        Hi Falko Menge,

        1. regarding the docs, the new possibility is mentioned here: https://docs.camunda.org/manual/latest/webapps/admin/system-management/#camunda-license-key . But you're right, I will also mention it in Spring Boot Starter docs.
        2. regarding the license format, sorry, but I can't agree. License without header and footer must work and is working fine for me. Could you may be try once again?

        Show
        svetlana.dorokhova Svetlana Dorokhova added a comment - Hi Falko Menge , 1. regarding the docs, the new possibility is mentioned here: https://docs.camunda.org/manual/latest/webapps/admin/system-management/#camunda-license-key . But you're right, I will also mention it in Spring Boot Starter docs. 2. regarding the license format, sorry, but I can't agree. License without header and footer must work and is working fine for me. Could you may be try once again?
        Hide
        menge Falko Menge added a comment -

        Hi Svetlana,

        you were right: I tried it without headers again and it worked. I must have messed something up the first time.

        Cheers,
        Falko

        Show
        menge Falko Menge added a comment - Hi Svetlana, you were right: I tried it without headers again and it worked. I must have messed something up the first time. Cheers, Falko

          People

          • Assignee:
            yana.vasileva Yana Vasileva
            Reporter:
            svetlana.dorokhova Svetlana Dorokhova
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development