Bug 49288 - add syntax restriction for share names
Summary: add syntax restriction for share names
Status: RESOLVED WONTFIX
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC - Shares
Version: UCS 4.4
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UMC maintainers
QA Contact: UMC maintainers
URL: https://docs.microsoft.com/en-us/rest...
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-15 10:55 CEST by Florian Best
Modified: 2024-06-27 12:09 CEST (History)
0 users

See Also:
What kind of report is it?: Feature Request
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):
Customer ID:
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 2019-04-15 10:55:33 CEST
The syntax classes for samba share and printer names should respect the official restrictions:

- A share name must be no more than 80 characters in length.
- The following characters are illegal in a share name:
  \ / [ ] : | < > + = ; , * ? "
- Control characters in range 0x00 through 0x1F, inclusive, are illegal in a 
share name.
- All other Unicode characters are legal.
- Names are case preserving and case insensitive.

https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata
Comment 1 Florian Best univentionstaff 2019-04-15 15:45:13 CEST
cups printer names cannot contain spaces, according to the lpadmin manpage:
"Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#".  Also, printer and class names are not case-sensitive."

But I doubt this... I tried adding a printer containing " and lp always gives me Permission Denied.
I also saw some commit in CUPS which prevents < and > in URL's due to a Cross Site Scripting issues.
Comment 2 Jan-Luca Kiok univentionstaff 2024-06-27 12:09:46 CEST
This issue has been filed against UCS 4.4.

UCS 4.4 is out of general maintenance and components may have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.