Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to create mapping with non-ascii user name which is encoded in SINGLE-BYTE codepage (win 1251) leads to '-Malformed string' message. [CORE5926] #6183

Closed
firebird-issue-importer opened this issue Sep 27, 2018 · 5 comments

Comments

@firebird-issue-importer

Submitted by: @pavel-zotov

Bug was encountered during implementation test for CORE5904.
After discuss with Alex it was decided to create separate ticket for this.

After launch cmd.exe and change there code page from OEM to ANSI (1251 in my case) i run following script:

set echo on;
set names win1251;
shell del C:\\MIX\\firebird\\QA\\fbt\-repo\\tmp\\c5904\-w1251\.fdb 2\>nul;
create database 'localhost:C:\\MIX\\firebird\\QA\\fbt\-repo\\tmp\\c5904\-w1251\.fdb' user sysdba password 'masterkey';
create or alter mapping foo using plugin win\_sspi from user 'org\\фуу' to user "org\\foo"; 
rollback;
drop database;
exit;

===

-- and get:

Statement failed, SQLSTATE = 22000
unsuccessful metadata update
\-CREATE OR ALTER MAPPING FOO failed
\-Malformed string

==
Checked on:
WI-V3.0.4.33053
WI-T4.0.0.1224

Commits: 4d2d667 0b71aa9

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 27, 2018

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 2, 2018

Modified by: @AlexPeshkoff

Fix Version: 4.0 Beta 1 [ 10750 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 5, 2018

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0.5 [ 10885 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 10, 2018

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Done successfully

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 10, 2018

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants