Bug 486888

Summary: Restrictive RegEx when trying to add server
Product: [Applications] NeoChat Reporter: amkreuzer <rauser95>
Component: GeneralAssignee: Tobias Fella <fella>
Status: RESOLVED FIXED    
Severity: minor CC: carl
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description amkreuzer 2024-05-11 13:56:48 UTC
SUMMARY
Valid server address is being rejected by regular expression.
Same input works in Element matrix client.
Example input: matrix.fbi.h-da.de

CODE
src/qml/ServerComboBox.qml, line 133

STEPS TO REPRODUCE
1. Open Neochat
2. Explore Rooms
3. Open dropdown menu next to search
4. Add New Server
5. Type: matrix.fbi.h-da.de

OBSERVED RESULT

Input is being rejected 

EXPECTED RESULT

Valid server address can be entered

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro / X11
KDE Plasma Version:  5.27.1
KDE Frameworks Version:  5.115.0
Qt Version:  5.15.12
Comment 1 Bug Janitor Service 2024-05-24 15:08:09 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/neochat/-/merge_requests/1745
Comment 2 Tobias Fella 2024-05-25 13:10:51 UTC
Git commit 8199653ddd992544c88480d3de98406bb0c6c9c5 by Tobias Fella.
Committed on 25/05/2024 at 13:00.
Pushed by tfella into branch 'master'.

Use simpler and less restrictive server url regex

The old regex was too restrictive. The new one will allow invalid urls, but we don't gain anything from preventing that

M  +1    -1    src/qml/ServerComboBox.qml

https://invent.kde.org/network/neochat/-/commit/8199653ddd992544c88480d3de98406bb0c6c9c5