Apostrophe in File Name Causes Unexpected Behavior

The information in this article applies to:

Product: Metastorm BPM (e-Work)
Version: 6.x 7.0.x 7.5.x

Issue

  • When the name of a file contains an apostrophe (single quote), attaching the file to a clip, trying to attach it to a clip, or trying to delete it from a clip causes unexpected behavior in the web client but not the Windows client.

    Depending on the version of Metastorm BPM (e-Work), the following behavior is exhibited.

    1. The file cannot be attached. The following error message may be displayed in the browser after clicking the 'OK' button to attach the file:

      Line: 175
      Error: 'eSeparator' is undefined

      An error message similar to the following may be written to the Windows application event log on the Engine server:

      Unable to load xml into DOM. Error(-1072896759) : Required white space was missing.
      . Found at line 1, position 96 : .

    2. The file can be attached. However, if the form with the attachment would be displayed when the folder is opened (default folder page), the folder cannot be opened.

    3. The file can be attached. If the attachment is on a folder page not displayed when the folder is opened, the folder can be opened and then the folder page with the attachment can be opened. However, the attachment cannot be opened and the folder cannot be closed unless a folder page without the attachment is selected first.

    4. The file cannot be deleted. An error message similar to the following may be written to the Windows application event log on the Engine server:

      Unable to load xml into DOM. Error(-1072896759) : Required white space was missing.
      . Found at line 1, position 95 : .

Resolution

  • Numbers 1 - 3 above are fixed in Metastorm BPM version 7.0.

  • Number 4 above is fixed in Metastorm BPM version 7.6.

  • There is a recovery technique if files of this type have been attached.

    1. The file name is stored in the eAttachment table in the eKey column. Remove the apostrophe from the file name here.

    2. The file name is also stored in the custom variable table (table with the name of the map) in the column whose name is the name of the variable associated with the clip. Remove the apostrophe from the file name here.

Tagged:

Comments

  • The issue is subtly different in v7.6, in that attachments will not automatically open when the filename has either a

     

    ' [single quote]

    &

    In the filename

     

    I have not tested other URL reserved characters. But I presume this is down to the file name not being URL encoded.....