You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Validator mutates internal state in PersonalData::isValid causing side effects #11895
Create an instance of PersonalData validator with user data (e.g., userId, email)
Call isValid() once with any password
Call isValid() again on the same instance
Observe that internal properties (userId, email, etc.) are modified (lowercased) after first call
👍 Expected behavior
The validator should not modify its internal state. Calling isValid() multiple times on the same instance should produce consistent behavior without side effects.
👎 Actual Behavior
The isValid() method mutates internal properties (userId, email, name, phone) by converting them to lowercase when strict is false. This introduces side effects and makes the validator stateful.
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Windows
🧱 Your Environment
Local development setup using the Appwrite repository codebase. No custom modifications. Local development setup using the Appwrite repository (1.9.x branch).
Issue found in source code (src/Appwrite/Auth/Validator/PersonalData.php), not tested on Appwrite Cloud.
👀 Have you spent some time to check if this issue has been raised before?
Activity
aoimizuno commentedon Apr 17, 2026
Hello, may I fix this issue? It's still working?
Akash504-ai commentedon Apr 19, 2026
Thanks @aoimizuno! I have already opened a PR for this (#11896), feel free to take a look.
HarshMN2345 commentedon Sep 8, 2026
fixed in #13532, closing