Bug 34934 - printjobs not displayed for students with differing lower/uppercase
printjobs not displayed for students with differing lower/uppercase
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Printermoderation
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.0 R2
Assigned To: Florian Best
Alexander Kramer
:
Depends on:
Blocks: 38230 38284 38423
  Show dependency treegraph
 
Reported: 2014-05-23 12:12 CEST by Florian Best
Modified: 2015-05-11 19:24 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2014-05-23 12:12:14 CEST
printjobs of students which have differences in their lower/uppercase username aren't displayed in the printermoderation module.
Comment 1 Florian Best univentionstaff 2014-05-23 12:36:53 CEST
The directory for the pdfPrinterShare is not created in an unified way:
There exists /var/spool/cups-pdf/Anton1 and /var/spool/cups-pdf/anton1. Sometimes you also can't access the pdfPrinterShare (error message on UCC says directory doesn't exists, on windows you don't have permissions).
Comment 2 Michael Grandjean univentionstaff 2015-04-02 16:04:41 CEST
Happened again during a UCS@school Workshop. 4 out 5 attendees were affected.

~# ucr search --brief ^version
version/erratalevel: 142
version/patchlevel: 1
version/releasename: Walle
version/version: 4.0
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2015-04-02 16:16:36 CEST
Does it depend on how the username is spelled on the windows logon?
Comment 4 Michael Grandjean univentionstaff 2015-04-02 22:20:26 CEST
(In reply to Sönke Schwardt-Krummrich from comment #3)
> Does it depend on how the username is spelled on the windows logon?

Not sure about the windows logon itself (windows login should be case insensitive regarding the username), but it is dependant on the spelling of the username/uid when creating the user.

A bit more information on the setup today:

- Multi-Server environment
- all affected users had mixed case or all upper case usernames
- the /var/spool/cups-pdf/username directory was lower case every time

How to reproduce:

- configure the PDF printer share according to the manual (see also #32208)
- create a user with mixed case username, e.g. "MRobot", via the "Users (schools)" module
- login to a windows client with this user
- connect the PDF printer (I used "MS Publisher Color Printer" as driver as suggested in #38114)
- print a file to the PDF printer
- the print job won't show up in the "moderate printers" module
- Nevertheless, the PDF file is generated:

> root@dcschule01:~# ls -la /var/spool/cups-pdf/mrobot/
> insgesamt 20
> drwx------ 2 MRobot Domain Users GrundschuledieErste 4096 Apr  2 22:00 .
> drwxr-xr-x 8 root   root                             4096 Apr  2 22:00 ..
> -rw------- 1 MRobot Domain Users GrundschuledieErste 8300 Apr  2 22:00 job_3-Neues_Textdokument_-_Editor__non-Linux-generated_files.pdf

Please note the difference between lower case "mrobot" in the directory path and the mixed case "MRobot" as file owner. 

A simple 

> ~# mv /var/spool/cups-pdf/mrobot/ /var/spool/cups-pdf/MRobot/

makes the print job appear in the "moderate printers" module.
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2015-04-09 09:55:56 CEST
(In reply to Michael Grandjean from comment #4)
> - the /var/spool/cups-pdf/username directory was lower case every time

[...]

> A simple 
> 
> > ~# mv /var/spool/cups-pdf/mrobot/ /var/spool/cups-pdf/MRobot/
> 
> makes the print job appear in the "moderate printers" module.

Ok, then it should be easy to fix. The UMC module has to scan for lowercase directory names.
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2015-04-10 12:38:49 CEST
Please fix this issue for UCS@school 4.0 R2 first. I will clone this bug for 
UCS@school 3.2R2.
Comment 7 Florian Best univentionstaff 2015-04-17 14:22:22 CEST
The username is now lower-cased when searching for the directories.

Fix: svn r59828
Package: ucs-school-umc-printermoderation
Comment 8 Alexander Kramer univentionstaff 2015-04-22 14:22:20 CEST
OK - debian changelog
OK - xml changelog
OK - The username is now lower-cased when searching for the directories
Comment 9 Florian Best univentionstaff 2015-05-11 19:24:57 CEST
UCS@school 4.0 R2 v1 has been released:
http://docs.univention.de/release-notes-ucsschool-4.0R2v1-de.html

If this error occurs again, please use "Clone This Bug".