Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4234

Tenant create implementation does not match with the API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Tenant 1.0.2
    • Tenant 1.1.0
    • Extensions
    • None

    Description

      The API org.apache.sling.tenant.TenantManager#create stipulates

      @throws IllegalArgumentException if a tenant with the same {@code tentantId} already exists.
      

      However, the implementation in org.apache.sling.tenant.internal.TenantProviderImpl#create does not implement this. Instead, it returns null when the tenant already exists.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            marett Timothee Maret
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: