Bug 48793

Summary: Logo of Portal Entry object not shown if the name of the portal entry contains certain special chars
Product: UCS Reporter: Johannes Keiser <keiser>
Component: PortalAssignee: UMC maintainers <umc-maintainers>
Status: RESOLVED DUPLICATE QA Contact: UMC maintainers <umc-maintainers>
Severity: normal    
Priority: P5 CC: best
Version: UCS 4.4   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
What kind of report is it?: Bug Report What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 4: Will affect most installed domains How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.137 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:

Description Johannes Keiser univentionstaff 2019-02-26 17:49:45 CET
Reproduce:
- create a settings/portal_entry object with the name "foo.bar"
- set a Logo
-> The logo will not be shown in the portal

Why:
- a css class that contains the name of the portal entry object is created
  and used as an selector to show the logo of the portal entry
  
  management/univention-portal/www/tools.js getIconClass()
  var iconClass = lang.replace('umcPortal-{0}', [name]);

- but a . (dot) is not allowed in a css selector
https://drafts.csswg.org/css2/syndata.html#value-def-identifier
Comment 1 Florian Best univentionstaff 2019-06-26 18:08:20 CEST

*** This bug has been marked as a duplicate of bug 49526 ***