Currently EnumJobs and GetJobs spoolss request handling is broken, in that they use and return printer back-end allocated job (sysjob) identifiers, rather than those allocated by spoolss and returned on job submission. This manifests the failure of the print_test_extended smbtorture test, which passes against Windows, but fails against Samba.
Created attachment 10386 [details] fix cherry-picked for v4-0-test branch
Created attachment 10387 [details] fix cherry-picked for v4-1-test branch
Created attachment 10388 [details] fix cherry-picked for v4-2-test branch
Created attachment 10389 [details] fix cherry-picked for v3-6-stable branch, rebased against TALLOC_ARRAY usage
Comment on attachment 10386 [details] fix cherry-picked for v4-0-test branch LGTM.
Comment on attachment 10387 [details] fix cherry-picked for v4-1-test branch LGTM.
Comment on attachment 10388 [details] fix cherry-picked for v4-2-test branch LGTM
Reassigning to Karolin for inclusion in 4.2.0, 4.1.next, 4.0.next.
(In reply to Jeremy Allison from comment #8) Pushed to autobuild-v4-[0|1|2]-test.
Pushed to v4-2-test and v4-1-test. autobuild-v4-0-test failed, re-trying.
(In reply to Karolin Seeger from comment #10) Pushed to v4-0-test. Closing out bug report. Thanks!