Skip to content

Conversation

@kostamilorava
Copy link

After reviewing issue #1398 the code for subdomain initialization missed few cases.

For example, test1-tms.test is not a subdomain, but original Str::endsWith will always return true and identify it as subdomain.

If this solution is ok, I will add test cases.

@stancl
Copy link
Member

stancl commented Dec 11, 2025

I think when we tried to reproduce that issue, we could reproduce it in 3.x but not 4.x. Would need a regression test either way to merge anything.

@kostamilorava
Copy link
Author

It's relatively easy to reproduce. Just attach central domain gov.test, which is acceptable domain for central. If you will ever need to attach tenantgov.test to any tenant, it will incorrectly identify as a subdomain (as it ends with gov.test).

lukinovec added a commit that referenced this pull request Dec 29, 2025
Previously, the method returned `true` even for central domains, or tenant domains that ended with a central domain (e.g. tenant-app.test when app.test was central domain).
This fix is basically the same as in #1423.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants