Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17702

On Camel MLLP component, option 'logPhi' with value 'false' does not work for exception logging

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.11-GA
    • fuse-7.9-GA
    • Camel
    • None
    • False
    • False
    • % %
    • +
    • Automated
    • Hide

      A workaround is to reduce the number of bytes shown for PHI data. But this is not a suitable one, as the PHI data should be completely suppressed for any log output, including exceptions

      For the workaround, on the reproducer, uncomment on class "MllpTcpServerSlowAckTest.java" line 60

      MllpComponent.setLogPhiMaxBytes(3);

       

      Show
      A workaround is to reduce the number of bytes shown for PHI data. But this is not a suitable one, as the PHI data should be completely suppressed for any log output, including exceptions For the workaround, on the reproducer, uncomment on class "MllpTcpServerSlowAckTest.java" line 60 MllpComponent.setLogPhiMaxBytes(3);  
    • Hide

      1) Unzip "reproducer-SENT.zip"

      2) Comment the workaround on class "MllpTcpServerSlowAckTest.java" line 60

      //MllpComponent.setLogPhiMaxBytes(3);

      3) Run the reproducer

      $ mvn clean test

      When the exception is thrown (timeot waiting for ack), you can check on the exception logged the message contents

       

       
       
       

      Show
      1) Unzip "reproducer-SENT.zip" 2) Comment the workaround on class "MllpTcpServerSlowAckTest.java" line 60 //MllpComponent.setLogPhiMaxBytes(3); 3) Run the reproducer $ mvn clean test When the exception is thrown (timeot waiting for ack), you can check on the exception logged the message contents        

      For component Camel MLLP, when using option "logPhi" with value "false", does not work for exceptions. When an exception arises, the PHI data is still logged on the exception 

            ldemasi Luigi De Masi
            rhn-support-anarvaez Alfredo Narvaez
            Federico Mariani Federico Mariani
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: