Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-2236

NullPointerException with kie-config-cli.sh after migration from 6.1.0 to 6.1.2

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 6.2.0
    • 6.1.0
    • Business Central
    • None

    Description

      Description of problem:

      When you migrate from 6.1.0 to 6.1.2 (a.k.a. 6.1 Update 2), kie-config-cli.sh "add-group-repo" (and add-group-org-unit) throws NullPointerException against a repository which:

      • was created in 6.1.0
        and
      • has no role in "security:roles"

      ===============================
      >>Please enter command (type help to see available commands):
      list-repo
      Result:
      Currently available repositories:
      Repository repository1
      scheme: git
      uri: git://repository1
      environment:

      {username=brmsAdmin, scheme=git, security:roles=[], origin=ssh://brmsAdmin@localhost:8001/repository1, password=****}

      groups: []

      >>>>>>>>>>>>>>>>>>>>>>>>>>>
      >>Please enter command (type help to see available commands):
      add-group-repo
      >>Repository alias:repository1
      >>Security groups (comma separated list):role1
      Unhandled exception caught while executing command add-group-repo error: null
      java.lang.NullPointerException
      at org.guvnor.structure.backend.repositories.RepositoryServiceImpl.addGroup(RepositoryServiceImpl.java:230)
      at org.guvnor.structure.backend.repositories.RepositoryServiceImpl$Proxy$$$_WeldClientProxy.addGroup(RepositoryServiceImpl$Proxy$$$_WeldClientProxy.java)
      at org.kie.config.cli.command.impl.AddGroupToRepositoryCliCommand.execute(AddGroupToRepositoryCliCommand.java:39)
      at org.kie.config.cli.CmdMain.main(CmdMain.java:97)
      ================================

      Steps to Reproduce:
      1. Download attached niogit610.zip (pure '.niogit' after BRMS 6.1.0 boot)
      2. Copy the '.niogit' directory to BRMS 6.1.2. (This step simulates that you apply the update patch 2 to 6.1.0)
      3. Start BRMS 6.1.2
      4. Run kie-config-cli.sh (Make sure that the update patch is also applied to supplementary-tools)
      > add-group-repo
      >>Repository alias:repository1
      >>Security groups (comma separated list):role1

      Actual results:

      It throws NullPointerException

      Expected results:

      'role1' is added to repository1.

      Attachments

        Activity

          People

            manstis@redhat.com Michael Anstis
            rhn-support-tkobayas Toshiya Kobayashi
            Archiver:
            rhn-support-ceverson Clark Everson
            Pavel Kralik Pavel Kralik
            Pavel Kralik Pavel Kralik
            Anton Giertli, Kris Verlaenen

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty