Braindead code inside is_legal_name() in source3/smbd/mangle_hash2.c does a call to convert_string() with a source length hardcoded as 2. This leads to "invalid conversion error" messages in the log for any utf8 filenames that contain utf8 encodings longer than 2. Correct code should use next_codepoint(). Patches for 4.1.0, 4.0.x, 3.6.x to follow. Jeremy.
Created attachment 9211 [details] git-am fix for 4.1.0 and 4.0.x Fix that went into master. Can be cherry-picked as: git cherry-pick -x 776db7d38597a29536e4127837ffa3b4f4ce35ab
Created attachment 9212 [details] git-am fix for 3.6.x. Same fix back-ported to 3.6.x. Jeremy.
Re-assigning to Karolin for inclusion in 3.6.next, 4.0.next, 4.1.0. Jeremy.
(In reply to comment #1) > Created attachment 9211 [details] > git-am fix for 4.1.0 and 4.0.x > > Fix that went into master. Can be cherry-picked as: > > git cherry-pick -x 776db7d38597a29536e4127837ffa3b4f4ce35ab Pushed to autobuild-v4-1-test and autobuild-v4-0-test. Gnaa, forgot to cherry-pick, sorry.
(In reply to comment #4) > (In reply to comment #1) > > Created attachment 9211 [details] [details] > > git-am fix for 4.1.0 and 4.0.x > > > > Fix that went into master. Can be cherry-picked as: > > > > git cherry-pick -x 776db7d38597a29536e4127837ffa3b4f4ce35ab > > Pushed to autobuild-v4-1-test and autobuild-v4-0-test. > Gnaa, forgot to cherry-pick, sorry. Pushed with cherry-pick information.
(In reply to comment #2) > Created attachment 9212 [details] > git-am fix for 3.6.x. > > Same fix back-ported to 3.6.x. > > Jeremy. Jeremy, is this a cosmetical fix or a severe bug? v3-6-test has been frozen yesterday (and tarball has been created).
(In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #1) > > > Created attachment 9211 [details] [details] [details] > > > git-am fix for 4.1.0 and 4.0.x > > > > > > Fix that went into master. Can be cherry-picked as: > > > > > > git cherry-pick -x 776db7d38597a29536e4127837ffa3b4f4ce35ab > > > > Pushed to autobuild-v4-1-test and autobuild-v4-0-test. > > Gnaa, forgot to cherry-pick, sorry. > > Pushed with cherry-pick information. Pushed to v4-1-test and v4-0-test.
It's a cosmetic fix - it can wait until the next 3.6.x release. Thanks ! Jeremy.
(In reply to comment #8) > It's a cosmetic fix - it can wait until the next 3.6.x release. > > Thanks ! > > Jeremy. Depending on how things go on with the 4.1.0 release, 3.6.19 will probably be the last maintenance release. Add it?
Only if we do another 3.6.x release, otherwise it's not worth it. Thanks ! Jeremy.
(In reply to comment #10) > Only if we do another 3.6.x release, otherwise it's not worth it. > > Thanks ! > > Jeremy. Ok, thanks, Jeremy.
(In reply to comment #10) > Only if we do another 3.6.x release, otherwise it's not worth it. > > Thanks ! > > Jeremy. Pushed to v3-6-test as we are going to ship another maintenance release. Will be included in Samba 3.6.20. Closing out bug report.