Skip to content

Conversation

@marcamsn
Copy link
Member

@marcamsn marcamsn commented Dec 2, 2025

Problem

  • When users logged in with URLs that differed only in letter case (e.g., https://PLAY.DHIS2.ORG vs https://play.dhis2.org), the SDK would generate different database file names, potentially creating duplicate accounts for the same server.

Solution

  • Add case normalization (lowercase) to processServerUrl() in DatabaseNameGenerator to ensure URLs with different letter casing generate the same database name
  • Add integration tests to verify HTTP/HTTPS protocol switching and URL case variations are treated as the same account

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.

3 participants