Bug 415306

Summary: KDEConnect on Android requires English interface to setup the first time
Product: [Applications] kdeconnect Reporter: Ossama Nasser <ossnass>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED FIXED    
Severity: normal CC: e.duisters1
Priority: NOR    
Version First Reported In: 1.10   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ossama Nasser 2019-12-18 02:34:06 UTC
I have a Huawei GR5-mini with Arabic as interface language, the first time to setup KDEConnect, the SHA fingerprint is always null. to solve this, I switched the device language to English, the SHA fingerprint is generated, then switched back to Arabic and KDEConnect did work.

STEPS TO REPRODUCE
1. Clear all KDEConnect settings on Android
2. Switch UI Language to Arabic
3. Try to connect, the SHA fingerprint is null

OBSERVED RESULT
Connection fail

EXPECTED RESULT
Connection Success

Workaround
To solve the problem switch to English to generate the SHA fingerprint

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro with Linux 2.4.2-1-Majaro

KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.64.
Qt Version: 5.13.2
KDEConnect Android Version: 1.13.5

ADDITIONAL INFORMATION
Comment 1 Ossama Nasser 2019-12-18 02:36:10 UTC
My Phone Android version is 7.0 with EMUI 5.0.4
Comment 2 Ossama Nasser 2019-12-18 10:58:56 UTC
I was able to replicate the bug again on Samasung Galaxy Note 5 running Android 7 and KDEConnect 1.13.5
Comment 3 Ossama Nasser 2019-12-18 11:02:42 UTC
(In reply to Ossama Nasser from comment #0)
> I have a Huawei GR5-mini with Arabic as interface language, the first time
> to setup KDEConnect, the SHA fingerprint is always null. to solve this, I
> switched the device language to English, the SHA fingerprint is generated,
> then switched back to Arabic and KDEConnect did work.
> 
> STEPS TO REPRODUCE
> 1. Clear all KDEConnect settings on Android
> 2. Switch UI Language to Arabic
> 3. Try to connect, the SHA fingerprint is null
> 
> OBSERVED RESULT
> Connection fail
> 
> EXPECTED RESULT
> Connection Success
> 
> Workaround
> To solve the problem switch to English to generate the SHA fingerprint
> 
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: Manjaro with Linux 2.4.2-1-Majaro
> 
> KDE Plasma Version: 5.17.4
> KDE Frameworks Version: 5.64.
> Qt Version: 5.13.2
> KDEConnect Android Version: 1.13.5
> 
> ADDITIONAL INFORMATION

Manjaro with Linux 5.4.2-1-Manjaro
Comment 4 Erik Duisters 2019-12-22 18:50:35 UTC
When the locale is set to arabic new JcaX509v3CertificateBuilder() causes a java.lang.IllegalArgumentException: invalid date string: Unparseable date: "ahabbbahb`daGMT+00:00"

Temporarily setting the locale to English when generating the certificate fixes the issue.

See Merge Request: 116