Petals ESB Container

A META tag is added when a HTML message is set as output message content

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.1.1
  • Fix Version/s: 3.1.2, 4.0.0
  • Component/s: Router
  • Security Level: Public
  • Description:
    Hide

    When a HTML message is set as output message content, a meta tag is added to the message content.

    [Petals.Container.Components.petals-bc-http]-FINEST 2010-10-13 16:13:51,886 Exchange property 'org.ow2.petals.messaging.sendSync.consumer' : true
    [Petals.Container.Components.petals-bc-http]-FINEST 2010-10-13 16:13:51,886 Exchange property 'org.ow2.petals.propagate.correlation' : petals:uid:0B08B8671793F05184261908010329254
    [Petals.Container.Components.petals-bc-http]-FINEST 2010-10-13 16:13:51,887 Exchange property 'org.ow2.petals.router.timetolive' : 1286979261734
    [Petals.Container.Components.petals-bc-http]-FINEST 2010-10-13 16:13:51,887 Exchange property 'org.ow2.petals.messaging.sendSync' : true
    class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
    {{http://xml.apache.org/xalan}omit-meta-tag=yes}
    [Petals.Container.Components.petals-bc-http]-FINEST 2010-10-13 16:13:51,895 Message Content : <html>

    <head>
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">

    </head>

    <body>

    <h1>Hello World!</h1>

    </body>

    </html>

    [Petals.Container.Components.petals-se-rmi]-FINEST 2010-10-13 16:13:51,898 Return the sendSync(timeoutMS) method, exchange Id : petals:uid:21E4D922873471A4F7261906753733731

    Show
    When a HTML message is set as output message content, a meta tag is added to the message content. [Petals.Container.Components.petals-bc-http]-FINEST 2010-10-13 16:13:51,886 Exchange property 'org.ow2.petals.messaging.sendSync.consumer' : true [Petals.Container.Components.petals-bc-http]-FINEST 2010-10-13 16:13:51,886 Exchange property 'org.ow2.petals.propagate.correlation' : petals:uid:0B08B8671793F05184261908010329254 [Petals.Container.Components.petals-bc-http]-FINEST 2010-10-13 16:13:51,887 Exchange property 'org.ow2.petals.router.timetolive' : 1286979261734 [Petals.Container.Components.petals-bc-http]-FINEST 2010-10-13 16:13:51,887 Exchange property 'org.ow2.petals.messaging.sendSync' : true class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl {{http://xml.apache.org/xalan}omit-meta-tag=yes} [Petals.Container.Components.petals-bc-http]-FINEST 2010-10-13 16:13:51,895 Message Content : <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <h1>Hello World!</h1> </body> </html> [Petals.Container.Components.petals-se-rmi]-FINEST 2010-10-13 16:13:51,898 Return the sendSync(timeoutMS) method, exchange Id : petals:uid:21E4D922873471A4F7261906753733731
  • Environment:
    os:all

Activity

Hide
Christophe DENEUX added a comment - Wed, 13 Oct 2010 - 17:27:18 +0200

The bug fix is not the best. A better fix is to move, in petals-commons, the transformer properties definintion from the threadlocal initialisation to the static getter.

So, only two transformers in thread local is needed: one loadeed from the default classloader, one loaded from the jvm classloader. All transformer accessors should set correct properties.

Show
Christophe DENEUX added a comment - Wed, 13 Oct 2010 - 17:27:18 +0200 The bug fix is not the best. A better fix is to move, in petals-commons, the transformer properties definintion from the threadlocal initialisation to the static getter. So, only two transformers in thread local is needed: one loadeed from the default classloader, one loaded from the jvm classloader. All transformer accessors should set correct properties.
Hide
Christophe DENEUX added a comment - Wed, 5 Jan 2011 - 21:08:19 +0100

PETALSCDK-55 is an issue of the same nature of this one.

Show
Christophe DENEUX added a comment - Wed, 5 Jan 2011 - 21:08:19 +0100 PETALSCDK-55 is an issue of the same nature of this one.

People

Dates

  • Created:
    Wed, 13 Oct 2010 - 16:41:31 +0200
    Updated:
    Tue, 3 May 2011 - 10:38:54 +0200
    Resolved:
    Thu, 6 Jan 2011 - 10:59:47 +0100