TAS Custom Branding Logo Size Limit
search cancel

TAS Custom Branding Logo Size Limit

book

Article ID: 297450

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

Custom Branding is used to customize the appearance of the TAS for VMs login portal and Apps Manager. A logo can be used to further customize the Apps Manager interface and is a Base64-encoded string for a PNG image. A logo that is too large can prevent login access to Apps Manager. The following errors related to branding logo size can be found in UAA logs:
ERROR --- TemplateEngine: [THYMELEAF][https-jsse-nio-8443-exec-42] Exception processing template "login": Exception evaluating SpringEL expression: "brandingLogo != null ? 'data:image/png;base64,'+#strings.replace(brandingLogo,T(java.lang.System).getProperty('line.separator'),'') : fallbackLogo"

org.springframework.expression.spel.SpelEvaluationException: EL1078E: Concatenated string is too long, exceeding the threshold of '100,000' characters

From the error, we can see that the size limit for the image is 100,000 bytes


Resolution

The issue of the logo preventing login access to Apps Manager will be fixed in a future release of TAS. A workaround is to ensure that your image does not exceed the threshold of 100,000 bytes. Use the wc command to determine the count of bytes in an image as shown below.

% wc -c logo
  170845 logo