Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-6085

Account.subdomain reverted to nil on custom account.domain

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 2.9 GA
    • System
    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Undefined
    • Workaround Exists
    • Hide
      a = Account.find_by_id(2)
      a.subdomain='3scale'
      a.save!
      

      will fix the issue until the next system-app deploy.

      Show
      a = Account.find_by_id(2) a.subdomain= '3scale' a.save! will fix the issue until the next system-app deploy.
    • Hide
      • change a tenant domain using a different super domain
      • create a new service for this tenant
      • the generated base URL will not contain the tenant-name
        e.g.
        'service'.'custom-domain' instead of 'service''tenant-name'.'custom-domain'
      Show
      change a tenant domain using a different super domain create a new service for this tenant the generated base URL will not contain the tenant-name e.g. 'service' .'custom-domain' instead of 'service' 'tenant-name'.'custom-domain'

    Description

      On a customized domain of the account instead of the generated from the THREESCALE_SUPERDOMAIN + TENANT_NAME the subdomain is empty.

      The reason of this is that subdomain is not an attribute in the DB, it is returned from the domain in the DB, and as it assumes that the domain is generated, and it just returns it 'decoded from it'. And of course, in this case, it cannot do it because this is not the 'whateverStringThatIsTheSubdomain'+THREESCALE_SUPERDOMAIN that is expecting to be able to return 'whateverStringThatIsTheSubdomain' instead of nil.

      The problem with this is the apicast urls title are filled from a param tenant_name, which is actually the subdomain of the tenant that we have just seen that is nil.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhn-support-cpalmier Carlo Palmieri (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: