Show HTML tables in tickets

Hello everyone,

Could anyone point me how can I make my RT instalation show HTML tables in
tickes.
I have configured Set($PreferRichText, 1);

Still the tables in tickests are missing, but the text is html formated
(colours, links, bolt, …)

I have only found one related answer but it was old and didnt explained what
was the issue or how to fix it.
(Carbon60: Cloud Consulting - Services and Solutions)

My instalation is RT 4.0.7

Thank you for your advices.

Regards
Lukas Loskot

Could anyone point me how can I make my RT instalation show HTML tables in
tickes.
I have configured Set($PreferRichText, 1);

RT still scrubs HTML that could cause problems or allow a security
vulenrability. You’ll need to read about
http://bestpractical.com/rt/docs/latest/RT/Interface/Web.html#NewScrubber
if you’d like to allow other tags.

Keep in mind that allowing

and friends allows attackers to
inject fake history into your RT ticket display page. Until the
scrubber is replaced with a full on parse that can detect that, I feel
compelled to warn about this :slight_smile:

-kevin

Could anyone point me how can I make my RT instalation show HTML tables in
tickes.
I have configured Set($PreferRichText, 1);
RT still scrubs HTML that could cause problems or allow a security
vulenrability. You’ll need to read about
RT::Interface::Web - RT 5.0.5 Documentation - Best Practical
if you’d like to allow other tags.

Keep in mind that allowing

and friends allows attackers to
inject fake history into your RT ticket display page. Until the
scrubber is replaced with a full on parse that can detect that, I feel
compelled to warn about this :slight_smile:

-kevin

Hi all,

Just ran into this issue as well - was attempting to make a table using
the built-in rich text editor. Submit the ticket and the table is lost.

I followed the page you provided Kevin with no change in the behavior. I
also cleared the mason cache just to make sure but it still shows both
my old tickets with the table gone, as well as any new ones I make.

Am I missing something on how to implement this?

Just ran into this issue as well - was attempting to make a table using
the built-in rich text editor. Submit the ticket and the table is lost.

I followed the page you provided Kevin with no change in the behavior. I
also cleared the mason cache just to make sure but it still shows both
my old tickets with the table gone, as well as any new ones I make.

Am I missing something on how to implement this?

Show us the Web_Local.pm you created and the path you put it at? Also,
your RT version?

Just ran into this issue as well - was
attempting to make a table using the built-in rich text editor. Submit
the ticket and the table is lost. I followed the page you provided Kevin
with no change in the behavior. I also cleared the mason cache just to
make sure but it still shows both my old tickets with the table gone, as
well as any new ones I make. Am I missing something on how to implement
this?

Show us the Web_Local.pm you created and the path you put it
at? Also,
your RT version?

We’re hiring!
Careers — Best Practical Solutions [1]

Thanks for the help Thomas!

This is
on RT 4.0.5. RT is installed in /var/www/html on this box:

[root@hous0301 lib]# cd /var/www/html
[root@hous0301 html]# ls
-al
total 112
drwxr-xr-x 13 root root 4096 May 30 2012 .
drwxr-xr-x 7
root root 4096 May 30 2012 …
drwxr-xr-x 2 apache apache 4096 May 30
2012 bin
drwxr-xr-x 4 apache apache 4096 May 2 2012 build
drwxr-xr-x 4
apache apache 4096 May 30 2012 docs
drwxr-xr-x 2 apache apache 4096 Jul
25 10:25 etc
-rw-r–r-- 1 apache apache 184 May 30 2012
.htaccess
drwxr-xr-x 3 apache apache 4096 May 30 2012 lib
drwxr-xr-x 7
apache apache 4096 Feb 8 2012 local
drwxr-xr-x 2 apache apache 4096 Apr
12 2012 logs
drwxr-xr-x 2 apache apache 4096 May 30 2012 sbin
drwxr-xr-x
2 apache apache 4096 Apr 12 2012 scripts
drwxr-xr-x 5 apache apache 4096
Feb 8 2012 share
drwxr-xr-x 6 apache apache 4096 Dec 6 11:51 var

Here’s the Web_Local.pm:

[root@hous0301 Interface]# pwd

/var/www/html/local/lib/RT/Interface

[root@hous0301 Interface]# cat
Web_Local.pm
package HTML::Mason::Commands;

Let tables through

push
@SCRUBBER_ALLOWED_TAGS, qw(TABLE THEAD TBODY TFOOT TR TD TH);
1;

Links:
[1] Careers — Best Practical Solutions

Here’s the Web_Local.pm:

[root@hous0301 Interface]# pwd

/var/www/html/local/lib/RT/Interface

[root@hous0301 Interface]# cat Web_Local.pm
package HTML::Mason::Commands;

Let tables through

push @SCRUBBER_ALLOWED_TAGS, qw(TABLE THEAD TBODY TFOOT TR TD TH);
1;

Readable by apache?

    Here's the Web_Local.pm: [root@hous0301 Interface]# pwd 

/var/www/html/local/lib/RT/Interface [root@hous0301 Interface]# cat
Web_Local.pm package HTML::Mason::Commands; # Let tables through push
@SCRUBBER_ALLOWED_TAGS, qw(TABLE THEAD TBODY TFOOT TR TD TH); 1;

Readable by apache? -------- We’re hiring! Careers — Best Practical Solutions

Yes:

[root@hous0301 html]# ls -ld local
drwxr-xr-x 7 apache apache 4096 Feb 8 2012 local

[root@hous0301 local]# ll
total 40
drwxr-xr-x 2 apache apache 4096 Feb 8 2012 etc
drwxr-xr-x 5 apache apache 4096 Jun 7 10:41 html
drwxr-xr-x 3 apache apache 4096 Dec 6 10:59 lib
drwxr-xr-x 2 apache apache 4096 Feb 8 2012 plugins
drwxr-xr-x 2 apache apache 4096 Feb 8 2012 po

[root@hous0301 local]# cd lib
[root@hous0301 lib]# ll
total 4
drwxr-xr-x 3 apache apache 4096 Dec 6 10:59 RT

[root@hous0301 RT]# ll
total 4
drwxr-xr-x 2 apache apache 4096 Dec 6 11:12 Interface

[root@hous0301 Interface]# ll
total 4
-rw-r–r-- 1 apache apache 122 Dec 6 11:01 Web_Local.pm

Here is the results from a test ticket where I created a table. The
“download with headers” shows that the table seems to be being made, but
when displayed on the page all “tableness” is lost and it becomes just
one long sentence. The “PreferRichText” setting is set to 1:

PreferRichText 1 site config

Here’s the ticket source:

Just bumping back up for a possible answer. Would be nice to get this
working :)On 12/6/2012 4:18 PM, Russell Jones wrote:

On 06.12.2012 15:37, Thomas Sibley wrote:

On 12/06/2012 01:08 PM, Russell Jones wrote:

    Here's the Web_Local.pm: [root@hous0301 Interface]# pwd 

/var/www/html/local/lib/RT/Interface [root@hous0301 Interface]# cat
Web_Local.pm package HTML::Mason::Commands; # Let tables through push
@SCRUBBER_ALLOWED_TAGS, qw(TABLE THEAD TBODY TFOOT TR TD TH); 1;

Readable by apache? -------- We’re hiring! Careers — Best Practical Solutions

Yes:

[root@hous0301 html]# ls -ld local
drwxr-xr-x 7 apache apache 4096 Feb 8 2012 local

[root@hous0301 local]# ll
total 40
drwxr-xr-x 2 apache apache 4096 Feb 8 2012 etc
drwxr-xr-x 5 apache apache 4096 Jun 7 10:41 html
drwxr-xr-x 3 apache apache 4096 Dec 6 10:59 lib
drwxr-xr-x 2 apache apache 4096 Feb 8 2012 plugins
drwxr-xr-x 2 apache apache 4096 Feb 8 2012 po

[root@hous0301 local]# cd lib
[root@hous0301 lib]# ll
total 4
drwxr-xr-x 3 apache apache 4096 Dec 6 10:59 RT

[root@hous0301 RT]# ll
total 4
drwxr-xr-x 2 apache apache 4096 Dec 6 11:12 Interface

[root@hous0301 Interface]# ll
total 4
-rw-r–r-- 1 apache apache 122 Dec 6 11:01 Web_Local.pm

Here is the results from a test ticket where I created a table. The
“download with headers” shows that the table seems to be being made,
but when displayed on the page all “tableness” is lost and it becomes
just one long sentence. The “PreferRichText” setting is set to 1:

PreferRichText 1 site config

Here’s the ticket source:

MIME-Version: 1.0

In-Reply-To: <rt-4.0.5-31506-1354831176-1342.0-0-0@>
X-Mailer: MIME-tools 5.502 (Entity 5.502)
Content-Disposition: inline
References: <rt-4.0.5-31506-1354831176-1342.0-0-0@>
Content-Type: text/html; charset=“UTF-8”
Message-ID: <rt-4.0.5-31506-1354831790-326.1003-0-0@>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC:
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 273

test1 a
test2 b
test3 c

We’re hiring! Careers — Best Practical Solutions