Issue Details (XML | Word | Printable)

Key: CORE-6097
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dmitry Yemanov
Reporter: Maxim Kuzmin
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Connection does not see itself in the MON$ATTACHMENTS when Domain/Username (using SSPI) is 31 bytes long

Created: 10/Jul/19 07:45 AM   Updated: 25/Jul/19 10:41 AM
Component/s: None
Affects Version/s: 3.0.4
Fix Version/s: 3.0.5, 4.0 Beta 2

QA Status: Done with caveats
Test Details: See notes in .fbt file.


 Description  « Hide
We using trusted auth (Mapped from Win_Sspi) and our users have a login in Russian.
When FIO is very long, connect is not estabilished (CORE-5866).
When FIO have 13 symbols,connection to the database passes without problems, but "select * from mon$attachments" returns 0 rows.
An example of such a user: DOMN\КовалевскаяАА.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Maxim Kuzmin added a comment - 10/Jul/19 07:51 AM
Add: In CORE-5866 length FIO is 14 symbols and is more than 31 (14 * 2 + 5 = 33).
There - 13 symbols. 13 * 2 + 5 = 31 symbols. The problem is when the name is 31 characters long.

Dmitry Yemanov added a comment - 10/Jul/19 08:12 AM
Monitoring truncates the stored user name to 31 bytes but no terminator byte is added when strncpy copied exactly 31 bytes. The fix should be one-liner.

Dmitry Yemanov added a comment - 12/Jul/19 08:33 AM
It should be fixed now, please test the next snapshot build, once it's available.

Maxim Kuzmin added a comment - 15/Jul/19 12:37 AM
Dmitry, in area http://web.firebirdsql.org/download/snapshot_builds/win/3.0/ last build #33152 from 7 july.

Dmitry Yemanov added a comment - 15/Jul/19 03:54 PM
It's available now.

Maxim Kuzmin added a comment - 17/Jul/19 03:18 AM - edited
Dmitry, in the snapshot a connection sees itself in the MON$ATTACHMENTS.