CA Service Management

  • 1.  Unsupported characters in attachment filename

    Posted Sep 26, 2018 04:08 AM

    Windows let users create filenames that contain for example semicolon.

    When a user tries to add such attachment to Catalog then it seems that the attachment is added

    but when you want to open the list of attachments again or you do reload the page the added attachment is gone.

    Is it possible to add to some config file the list of unsupported characters in attachment filenames? The Catalog should refuse such attachment when a user tries to attach it.

    Regards,

    Milan



  • 2.  Re: Unsupported characters in attachment filename
    Best Answer

    Broadcom Employee
    Posted Sep 26, 2018 04:43 AM

    Hi Milan, 

    Which release of Catalog are you running there? This was added in the 12.9.01 patch, and so should be working fully in current versions. The file you need to control is esapi.properties - here's a knowledge doc from the time that shows how to add space as a valid character, but will also allow you to allow/ban semicolon:

     

    Service Catalog 12.9.01 does not allow attachments - CA Knowledge 

     

    regards

    Iain



  • 3.  Re: Unsupported characters in attachment filename

    Broadcom Employee
    Posted Sep 26, 2018 05:15 AM

    Good Morning Milan.

    Please check the below which helps you further on this.

    KB000044481 | SERVICE CATALOG 12.9.01 DOES NOT ALLOW ATTACHMENTS WITH A SPACE IN THE FILENAME.
    https://comm.support.ca.com/kb/service-catalog-12901-does-not-allow-attachments-with-a-space-in-the-filename/kb000044481

    Filename validation is controlled by a Filter specified in the file:
    %USMHOME%/view/conf/ESAPI.properties

    Most likely this file was modified in the past in your catalog system prior to 12.8 CP04 to allow the use of diacritic characters.
    To allow diacritic characters for a file name, please follow the steps below:
    1. Locate the file %USMHOME%/view/conf/ESAPI.properties
    2. Open this file in a text editor
    3. Search for 'Validator.FileName'.
    Typically this property is at the bottom of the file
    4. Replace the regular expression as in the below example:
    # Validation of file related input
    #Validator.FileName=^[a-zA-Z0-9!@#$%^&{}\\[\\]()_+\\-=,.~'` ]{1,255}$
    Validator.FileName=^[a-zA-Z0-9\\p{L}! @#$%^&{}\\[\\]()_+\\-=,.~'`]{1,255}$

    5. Save the file and restart Catalog service. Check the new behavior.

    Kind regards, Louis.