Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-367

Custom partition types are not properly configured when specifying the custom type instead of the base Partition type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • PLINK_2.6.0.Beta4
    • PLINK_2.6.0.Beta3
    • IDM
    • None

    Description

      Consider the following configuration, where we have a CustomPartition type defined:

              IdentityConfigurationBuilder builder = new IdentityConfigurationBuilder();
      
              builder
                  .named("default")
                      .stores()
                          .file()
                              .supportType(CustomPartition.class)
                              .supportType(IdentityType.class)
                              .supportType(Relationship.class);
      
              DefaultPartitionManager partitionManager = new DefaultPartitionManager(builder.buildAll());
      
              partitionManager.add(new CustomPartition("Custom Partition"));
      
              assertNotNull(partitionManager.getPartition(CustomPartition.class, "Custom Partition"));
      

      When adding a CustomPartition instance, it always fails because PicketLink does not identify a store that supports the CustomPartition type. In this case, the file store.

      This only works if we provide a configuration using the base Partition type instead:

              IdentityConfigurationBuilder builder = new IdentityConfigurationBuilder();
      
              builder
                  .named("default")
                      .stores()
                          .file()
                              .supportType(Partition.class)
                              .supportType(IdentityType.class)
                              .supportType(Relationship.class);
      

      Attachments

        Activity

          People

            psilva@redhat.com Pedro Igor Craveiro
            psilva@redhat.com Pedro Igor Craveiro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: