Re: [rt-users] Escaping '<' and '>' in comments/replies and canned responses.

2016-06-10 Thread Todd Wade

On 6/7/16 3:05 PM, Barton Chittenden wrote:

Any further thoughts on this? I'm trying to create canned responses that
involve changes to XML configuration files, and all of the tags end up
empty.


What version are you on?

I just pasted some xml in to the ticket content field, created the 
ticket, and hit reply on that transaction and it seems to be working as 
expected:


http://i.imgur.com/6OqivFd.png

This is on 4.4-trunk

Regards,


-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] Critical error after upgrading to RT 4.4.0

2016-06-10 Thread Shawn Moore
On 2016年6月6日 at 4:14:57, Guadagnino Cristiano (guadagnino.cristi...@creval.it) 
wrote:
> Hi Shawn!

Hi Cris,

> Uhm. The only thing I can think of is that I have added a custom role. Maybe 
> this is the thing  
> that's giving me problems?
>  
> Apparently however the custom role is behaving well.

I replicated the issue (it happens when a user has CreateTicket but not 
ShowTicket) and I believe I’ve fixed it. Can you try the following patch?

https://github.com/bestpractical/rt/commit/5d0a88d47f141f37fdb8bb7c6e3428c122aff423

The fix will be included as part of RT 4.4.1 as this is definitely a blocker!

> Thank you!
>  
> Cris

Thanks for helping track this down, and sorry about the trouble.

Cheers,
Shawn
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] Any way to speed up shredding?

2016-06-10 Thread Christian Loos
Am 10.06.2016 um 12:02 schrieb Robert Waldner:
> Hi,
> 
> I'm trying to get rid of old crud (deleted and rejected tickets, mostly
> spam) in our RT-DB, and so use rt-shredder. Which seems to work fine,
> but is so slow that my best estimate for it to finish wiping ~80k
> tickets is "upwards of 6 months":
> 
> time ( rt-shredder --force --plugin "Tickets=query,(status = 'rejected'
> OR status = 'deleted') AND id <61;limit,10")
> 
> real9m33.764s
> user0m6.984s
> sys 0m0.708s
> 
> Any hints on possibilities to speed this up?
> 
> (rt-shredder from RT 3.8 (Debian), incl. RT-IR 2.4, postgres backend)

There are some database indexes suggested:
https://docs.bestpractical.com/rt/4.4.1/RT/Shredder.html#Database-Indexes

I use just some if them, es they improve shredding tickets enough for me:
CREATE INDEX SHREDDER_CGM3 ON CachedGroupMembers (Via, Id);
CREATE UNIQUE INDEX SHREDDER_GM1 ON GroupMembers(MemberId, GroupId);
CREATE INDEX SHREDDER_TXN3 ON Transactions(TYPE, OldValue);
CREATE INDEX SHREDDER_TXN4 ON Transactions(TYPE, NewValue);


Chris
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016