Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1996

Suppressing the log files on mail error does not work.

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.13.11
    • 1.13.14
    • None
    • None

    Description

      Current Situation

      • While suppressing the attachments for a particular file type, as per the below-mentioned script, the mail is received with the log file.
      <?xml version='1.0' encoding='iso-8859-1' ?>
      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
         ...
         <xsl:template match="/scheduler_event">
            ...
            <xsl:copy-of select="mail/body/* [ not(text) and not (//file) ]" />
            <xsl:for-each select="mail/body/file" >
               <xsl:if test="not(contains(@path, '.log'))">
                 <xsl:element name="{name()}">
                    <xsl:copy-of select="@*" />
                    <xsl:attribute name="mail_filename">
                       <xsl:value-of select="$filename" />
                    </xsl:attribute>
                 </xsl:element>
               </xsl:if>
            </xsl:for-each>
            ...
         </xsl:template>
      </xsl:stylesheet>
      

      Desired Behavior

      • When using the script mentioned in the suppress attachment article it should not include log files in the mail.

       Maintainer Note

      • The above mentioned article is updated
        <?xml version='1.0' encoding='iso-8859-1' ?>
        <xsl:stylesheet xmlns:xsl ="http://www.w3.org/1999/XSL/Transform" version="1.0">     
           ...     
           <xsl:template match="/scheduler_event">
              ...
              <xsl:copy-of select="mail/body/file[ not(contains(@path, '.log')) ]" />
              ...
           </xsl:template> 
        </xsl:stylesheet>
        

      Attachments

        Issue Links

          Activity

            People

              oh Oliver Haufe
              divyani-rathore Divyani Rathore
              Divyani Rathore Divyani Rathore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: