The password provided is incorrect  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Re: The password provided is incorrect

Postby DannyC » Fri Mar 10, 2023 1:55 pm

I've confirmed the PC is running Windows 10

Error:
pw error 2.png
pw error 2.png (7.7 KiB) Viewed 1519 times
User avatar
DannyC
Senpai
Senpai
 
Posts: 636
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: The password provided is incorrect

Postby Scott.Pearce » Fri Mar 10, 2023 2:07 pm

System Locale could be wrong. Here's where to check:

https://www.top-password.com/blog/2-way ... e%20effect.

It should be set to "English (Australia)".
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: The password provided is incorrect

Postby SBarnes » Fri Mar 10, 2023 2:12 pm

3a437ee2a4cd9e8b214c5310b43b466e.jpg
3a437ee2a4cd9e8b214c5310b43b466e.jpg (19.18 KiB) Viewed 1519 times
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: The password provided is incorrect

Postby Mike.Sheen » Fri Mar 10, 2023 2:13 pm

Scott.Pearce wrote:System Locale could be wrong. Here's where to check:

https://www.top-password.com/blog/2-way ... e%20effect.

It should be set to "English (Australia)".


This or anything which changes the default character set to a double-byte could cause the issue.

The library we use is old, and is a wrapper around an old Win32API. The wrapper library looks like when it prepares a "buffer" to receive the data in the API call, it's just creating a string of what it has calculated the required length to be - with no consideration for double byte character sets.

I'll log an issue for us to look at better supporting such environments. Version 8 longer uses such archaic libraries and does not suffer this problem. Don't ask when that's going to be released.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: The password provided is incorrect

Postby Scott.Pearce » Fri Mar 10, 2023 2:13 pm

SBarnes wrote:
3a437ee2a4cd9e8b214c5310b43b466e.jpg


lol
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: The password provided is incorrect

Postby Mike.Sheen » Fri Mar 10, 2023 2:22 pm

I can repro the issue on a Windows 10 Environment after changing the system locale to Yi (China), rebooting and then changing the region format to also be Yi (China). Other languages would be affected also (anything double-byte).

EDIT: Logged as DEV-9862
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: The password provided is incorrect

Postby DannyC » Fri Mar 10, 2023 2:29 pm

System Locale could be wrong


First thing I checked. I thought that the keystrokes were getting the wrong char set so immediately checked the region settings.
All set to English (aus).
User avatar
DannyC
Senpai
Senpai
 
Posts: 636
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: The password provided is incorrect

Postby Mike.Sheen » Fri Mar 10, 2023 2:33 pm

DannyC wrote:First thing I checked. I thought that the keystrokes were getting the wrong char set so immediately checked the region settings.
All set to English (aus).


Be careful - it's somewhat misleading. Make sure the system locale is set as well as the Format.

Region_Format.png
Region_Format.png (20.16 KiB) Viewed 1519 times


Region_Administritive.png
Region_Administritive.png (32.26 KiB) Viewed 1519 times
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: The password provided is incorrect  Topic is solved

Postby DannyC » Fri Mar 10, 2023 2:41 pm

Sorted!!

pw error 3.png
pw error 3.png (7.93 KiB) Viewed 1519 times

The Beta setting was ticked to use UTF-8.

Unticked, rebooted, and login successful!

Really appreciate that effort.
User avatar
DannyC
Senpai
Senpai
 
Posts: 636
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: The password provided is incorrect

Postby SBarnes » Fri Mar 10, 2023 2:41 pm

Can you also check what versions of TLS are enabled?

https://techpress.net/disable-tls-1-0-a ... indows-10/
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

PreviousNext

Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 32 guests