Re: [rt-users] Help with RT

2013-04-05 Thread Paul Tomblin
Show us your apache config for this site. On Friday, April 5, 2013, Sergio Mesquita wrote: Hello All! Need your help, to make one change. I have my RT working using this access http://IP/rt. How can I change apahce settings so this works on http://IP. I try a lot f settings, but witouht

Re: [rt-users] Help with RT

2013-04-05 Thread Paul Tomblin
Mesquita sergio.mesqui...@gmail.comwrote: Helo Paul! Just upload the two files. Httpd.conf and Rt.conf Thanks for your help 2013/4/5 Paul Tomblin ptomb...@xcski.com Show us your apache config for this site. On Friday, April 5, 2013, Sergio Mesquita wrote: Hello All! Need your help

Re: [rt-users] Help with RT

2013-04-05 Thread Paul Tomblin
. If you need commercial support, please contact us at sa...@bestpractical.com. 2013/4/5 Paul Tomblin ptomb...@xcski.com In your rt.conf, change the Alias and ScriptAlias lines to Alias /NoAuth/images /usr/local/rt/share/html/NoAuth/images/ ScriptAlias / /usr/local/rt/sbin/rt

Re: [rt-users] Accessing a Specific CustomField

2013-04-01 Thread Paul Tomblin
Do you want the custom field value on a specific ticket? my $st = $ticket-FirstCustomFieldValue(Show Tag); Do you want the CustomField object for a specific field name on a specific queue? my $cf = $QueueObj-CustomField(Show Tag); On Mon, Apr 1, 2013 at 11:45 AM, Raymond Corbett

Re: [rt-users] Problem with RT 4.0.10 install

2013-03-31 Thread Paul Tomblin
On Saturday, March 30, 2013, Ray Corbett wrote: How do I tell RT that I am using Perl 5.12 and not Perl 5.8.8 Is the new Perl in your PATH? Type which perl and perl -v to check. If so, do you have an environment variable PERL5LIB and if so what is it set to? --

Re: [rt-users] Where are customfields stored

2013-03-26 Thread Paul Tomblin
On Tue, Mar 26, 2013 at 11:44 AM, Raymond Corbett raymond.corb...@arcproductions.com wrote: Assuming I want to load a customfield, how would I identify it by name? For example the one I called “Dev Code” If you want the value of a custom field in a ticket, the easiest way is

[rt-users] RT::Tickets-LimitWatcher based on RT::Principal-id?

2013-03-22 Thread Paul Tomblin
My client created a bunch of RT ids without email addresses. Is there any way to do a query to find that person's tickets (ie where they are the requestor)? RT::Tickets-LimitWatcher is based on email address, and I'd like to limit based on their RT::Principal-id instead. Is there a call to do

Re: [rt-users] Code change causing load error Help!

2013-02-26 Thread Paul Tomblin
On Tue, Feb 26, 2013 at 10:39 AM, Raymond Corbett raymond.corb...@arcproductions.com wrote: That fixed things up except now I have the owner field but no selections in the list, the Me and Nobody. ** ** select type=select name=Owner option

Re: [rt-users] RT4 without local mail server

2013-01-22 Thread Paul Tomblin
On Tue, Jan 22, 2013 at 11:37 AM, mrbeeye mrbe...@gmail.com wrote: Description of environment and setup (see diagram here: http://img262.imagevenue.com/img.php?image=867879360_rt_122_150lo.jpg ): I went to that link and got multiple popups, several of which were flagged as spam or phishing

Re: [rt-users] Terminating rt-server.fcgi gracefully

2012-11-26 Thread Paul Tomblin
On Mon, Nov 26, 2012 at 8:52 AM, Sebastian Flothow flot...@gip.com wrote: Is there a way to have rt-server.fcgi terminate gracefully, i.e. such that any currently running request is completed before exiting? I'm pretty sure /etc/init.d/apache2 reload will do that. --

[rt-users] Fwd: force standard compliance

2012-11-19 Thread Paul Tomblin
Is there any way to add the x-ua-compatible header to RT? We're accessing it through an intranet, and evidently IE defaults to quirks mode in the intranet without it, in spite of the doctype HTML tag. !DOCTYPE html html head meta http-equiv=x-ua-compatible content=IE=edge / --

Re: [rt-users] can't find /etc/request-tracker4/apache2-modperl2.conf

2012-11-08 Thread Paul Tomblin
On Thu, Nov 8, 2012 at 12:37 PM, testwreq wreq testw...@gmail.com wrote: Actually now this is my host file. When I restart apache, I get the following error: PerlResponseHandler', perhaps misspelled or defined by a module not included in the server configuration... Do you have your

Re: [rt-users] Where are comments and correspondence held?

2012-11-06 Thread Paul Tomblin
On Tue, Nov 6, 2012 at 4:58 AM, Tim Cutts t...@sanger.ac.uk wrote: But generally you don't want to do that, and instead you want to use the perl API to get at them: my $attachments = RT::Attachments-new(RT-SystemUser); $attachments-LimitByTicket(294774); $attachments-LimitNotEmpty; And if

[rt-users] Doing scrips in the background?

2012-11-05 Thread Paul Tomblin
I have a custom workflow which uses a custom web interface. When the user clicks the Submit button, the interface creates a Master ticket, and then a bunch of sub-tickets, the number of which varies depending what services they are requesting. The users are complaining that the process of

Re: [rt-users] Write a Custom Action in rt4 as a Module/package ERROR

2012-10-26 Thread Paul Tomblin
Did you restart RT after making the change? Unless you're in development mode, it won't pick up the changes. You probably need to flush your mason cache as well, just to be safe. On Fri, Oct 26, 2012 at 9:40 AM, Red Pantyhose redpantyh...@yahoo.comwrote: Dear Christian Thank you I applied

Re: [rt-users] postgres 9.2.1, RT 4.0.5 - RT couldn't connect to database

2012-10-16 Thread Paul Tomblin
On Tue, Oct 16, 2012 at 5:56 PM, Mike James mja...@profitpoint.com wrote: [root@tracker ~]# su -l rt_user [rt_user@tracker ~]$ psql -d rt4 -U rt_user psql (9.2.1) Type help for help. How about if you try psql -H localhost -U rt_user rt4 That will tell you if you've configured postgres to

Re: [rt-users] Chrome missing images, and missing ticket body in RT 4.0.7

2012-09-26 Thread Paul Tomblin
On Wed, Sep 26, 2012 at 1:49 PM, Ben Brown ben.br...@datamark.com wrote: A second problem - in Chrome for Windows, widget icons (the arrows next to menus Home, Tickets, Tools, etc) as well as the menu rollup icons, are missing. It works in Firefox and IE. It also works on Chrome for Mac. I can

[rt-users] Re-assign tickets

2012-09-19 Thread Paul Tomblin
I've noticed that I can steal a ticket using the Actions-Steal dropdown on the ticket display, however I can't steal if by changing the Owner dropdown on the Basics page. When I attempt to, I get a message You can only take tickets that are unowned. Is this intentional, or an oversight? Also,

Re: [rt-users] Re-assign tickets

2012-09-19 Thread Paul Tomblin
On Wed, Sep 19, 2012 at 2:25 PM, Matt Brennan brenna...@gmail.com wrote: 2924 through 2935. I do notice that there's something about Force in that if statement, but it seems force is an internal thing to allow automated processes to override the check. Oh, it looks like I can do it

[rt-users] Cross site request forgery

2012-09-17 Thread Paul Tomblin
I have three custom pages, call them d.html, a.html and c.html. d.html is the dashboard for the plugin, and from that one to either of the others and back to d.html. I transition between them using 'window.location = d.html;' which works fine for all of the transitions, except one. When I'm on

Re: [rt-users] Cross site request forgery

2012-09-17 Thread Paul Tomblin
On Monday, September 17, 2012, Chris O'Kelly wrote: Hi Paul, ** ** Firstly, I'll just point out this isn't my fix, it's stolen from the top answer of http://stackoverflow.com/questions/4762254/javascript-window-location-does-not-set-referer-in-the-request-header, but it is elegant

Re: [rt-users] sendmail error (exited with code 75) - RHEL6

2012-09-05 Thread Paul Tomblin
On Wed, Sep 5, 2012 at 8:49 AM, Raphaël Berlamont raphael.berlam...@raphux.com wrote: 2012/9/4 Paul Tomblin ptomb...@xcski.com What happens if you just try to send an email to one of those addresses from the command line on that server? I.e. Mail -s test message corp_admin_...@myfirm.fr

Re: [rt-users] sendmail error (exited with code 75) - RHEL6

2012-09-04 Thread Paul Tomblin
On Tue, Sep 4, 2012 at 8:52 AM, Raphaël Berlamont raphael.berlam...@raphux.com wrote: [Tue Sep 4 09:34:43 2012] [info]: rt-4.0.7-1945-1346751283-749.7324-1...@myfirm.com #7324/120687 - Scrip 10 On Resolve Notify Requestors (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:301) sendmail: fatal:

Re: [rt-users] sendmail error (exited with code 75) - RHEL6

2012-09-04 Thread Paul Tomblin
On Tue, Sep 4, 2012 at 9:57 AM, Raphaël Berlamont raphael.berlam...@raphux.com wrote: OK for this first error, but the second one disappears as soon as I restart apache, and RT work flawlessly for minutes/hours (depending on load maybe) : [Tue Sep 4 09:34:43 2012] [error]:

Re: [rt-users] sendmail error (exited with code 75) - RHEL6

2012-09-04 Thread Paul Tomblin
On Tue, Sep 4, 2012 at 11:56 AM, Raphaël Berlamont raphael.berlam...@raphux.com wrote: 2012/9/4 Paul Tomblin ptomb...@xcski.com I can't think of any reason why sendmail thinks it needs to tell the mail user agent (MUA) this. Mail Transfer Agents (MTA) like sendmail should do queuing

Re: [rt-users] sendmail error (exited with code 75) - RHEL6

2012-09-04 Thread Paul Tomblin
On Tue, Sep 4, 2012 at 1:14 PM, Raphaël Berlamont raphael.berlam...@raphux.com wrote: Here you can fin a pastebin of ll those messages : http://pastebin.com/GemuDHSw . What happens if you just try to send an email to one of those addresses from the command line on that server? I.e. Mail -s

Re: [rt-users] OnCreate insert a comment IN the ticket?

2012-09-04 Thread Paul Tomblin
On Tue, Sep 4, 2012 at 3:05 PM, Jeff Blaine jbla...@kickflop.net wrote: my $ticket = $self-TicketObj; $ticket-Comment(content = blah!); my $mimeObj = MIME::Entity-build( Type = 'multipart/mixed', 'Message-Id' = RT::Interface::Email::GenMessageId, Subject = $subject,

Re: [rt-users] Users Autocomplete not working 4.0.7?

2012-08-31 Thread Paul Tomblin
On Fri, Aug 31, 2012 at 10:10 AM, Shawn Plummer plum...@geneseo.edu wrote: Anyone with Oracle will probably need to do this: Correct me if I'm wrong, but isn't Oracle violating the SQL spec by treating empty strings as equivalent to null? I expect that kind of behavior from MySQL, but from

Re: [rt-users] Problem with callbacks in RT 4.0.6

2012-08-30 Thread Paul Tomblin
On Thu, Aug 30, 2012 at 2:52 PM, Kevin Falcone falc...@bestpractical.com wrote: This should be easy to fix. Don't specify %ARGS and just do a return if ref $ARGS{URL} to skip the first variant of the callback. Yes, that worked. Is there a 4.2 git repo up in the usual places? --

[rt-users] Problem with callbacks in RT 4.0.6

2012-08-28 Thread Paul Tomblin
I'm trying to make it so when a user logs out of RT, they get taken back to my page when they log back in. But I'm having problems with the callback in /NoAuth/Logout.html, because it seems like the Default callback is called twice, once in %init and once in the main, but with different

[rt-users] Just in case this helps somebody

2012-08-23 Thread Paul Tomblin
I've had this weird situation where when I call an AJAX function, even though the Mason handler file calls $m-abort, I was still getting HTML from the autohandler in the directory above the directory where the handler lived, and RT autohandler stuff after that. This was only happening on my Mac,

[rt-users] Same code, different results

2012-08-22 Thread Paul Tomblin
My code makes an ajax call to a mason file that emits some json. That mason file uses the exact same techniques that RT's own ajax mason files use to make sure it isn't polluted with html - it calls $m-abort after emitting the json. On my Linux box (Ubuntu 12.04, some dependencies installed with

Re: [rt-users] Set up problems

2012-08-21 Thread Paul Tomblin
On Mon, Aug 20, 2012 at 8:11 PM, Paul Tomblin ptomb...@xcski.com wrote: I send a copy of my latest code to my client. He followed my installation instructions (added the plugin name to RT_SiteConfig.pm @Plugins, do a perl Makefile.pm; make; make initdb; make install, restart the server

[rt-users] Set up problems

2012-08-20 Thread Paul Tomblin
I send a copy of my latest code to my client. He followed my installation instructions (added the plugin name to RT_SiteConfig.pm @Plugins, do a perl Makefile.pm; make; make initdb; make install, restart the server), but when he tries to go to the first page of my code

Re: [rt-users] Using Ajax with Mason in RT

2012-08-17 Thread Paul Tomblin
On Fri, Aug 17, 2012 at 3:26 AM, Martin Drasar dra...@ics.muni.cz wrote: Still, I wonder how come that Paul could successfully run my scripts... Because I didn't put it in Elements, I put it in the directory with the code I was working on, and because I didn't try it with %flags. If there is

Re: [rt-users] Using Ajax with Mason in RT

2012-08-16 Thread Paul Tomblin
On Thu, Aug 16, 2012 at 5:22 AM, Martin Drasar dra...@ics.muni.cz wrote: The problem is, when I remove the flags section, the ajax call fails with 403. If I keep it, I get back following error: syntax error at /home/RT/RT-4.0.6/local/html/Ticket/Elements/TestComponent line 15, at EOF Do you

Re: [rt-users] Using Ajax with Mason in RT

2012-08-16 Thread Paul Tomblin
On Thu, Aug 16, 2012 at 7:24 AM, Martin Drasar dra...@ics.muni.cz wrote: On 16.8.2012 13:15, Paul Tomblin wrote: On Thu, Aug 16, 2012 at 5:22 AM, Martin Drasar dra...@ics.muni.cz mailto:dra...@ics.muni.cz wrote: The problem is, when I remove the flags section, the ajax call

Re: [rt-users] Using Ajax with Mason in RT

2012-08-16 Thread Paul Tomblin
On Thu, Aug 16, 2012 at 8:00 AM, Martin Drasar dra...@ics.muni.cz wrote: Ajax request on this component fails with this error: Error during compilation of /home/RT/RT-4.0.6/local/html/Ticket/Elements/TestComponent:brsyntax error at (eval 1164) line 12, at EOF I copied your code into my web

Re: [rt-users] Using Ajax with Mason in RT

2012-08-16 Thread Paul Tomblin
On Thu, Aug 16, 2012 at 9:21 AM, Martin Drasar dra...@ics.muni.cz wrote: My question is - how can I diagnose, whether there is a problem with (auto|d)handlers? I haven't touched any of them since the installation. Ok, this is a real desperation measure, but I modified /opt/rt4/lib/RT.pm and

Re: [rt-users] MinPasswordLength Not Working

2012-08-16 Thread Paul Tomblin
On Thu, Aug 16, 2012 at 1:04 PM, Kevin Falcone falc...@bestpractical.comwrote: The config option is called MinimumPasswordLength, not MinPasswordLength. It works fine for me. And just as an aside, if you force your users to use 10 character passwords, I can *guarantee* that most of them will

Re: [rt-users] Using Ajax with Mason in RT

2012-08-15 Thread Paul Tomblin
On Wed, Aug 15, 2012 at 11:37 AM, Martin Drasar dra...@ics.muni.cz wrote: I have used MakeClicky actions to extend the RT UI and now I would like my extensions to do some ajax stuff on click. I would like to know, how I can create new Mason component and set it as a valid target for the ajax

Re: [rt-users] Using Ajax with Mason in RT

2012-08-15 Thread Paul Tomblin
I don't know why I had the problem before with my ajax files when I didn't have the inherit = undef before, but I took them all out and all my ajax calls appear to still be working. So I guess you don't need that %flags section. -- http://www.linkedin.com/in/paultomblin

Re: [rt-users] CustomFieldValues

2012-08-14 Thread Paul Tomblin
On Tue, Aug 14, 2012 at 3:27 AM, Gergely Buday gbu...@gmail.com wrote: Hi there, I was able to log a custom field value in a scrip: my $user=$self-TransactionObj-CreatorObj; my $cfvs = $user-CustomFieldValues('107'); while(my $cfv = $cfvs-Next) { $RT::Logger-info(cfv-Content= .

Re: [rt-users] testing perl script in RT

2012-08-09 Thread Paul Tomblin
On Thu, Aug 9, 2012 at 12:01 PM, Gergely Buday gbu...@gmail.com wrote: Hi there, how can I run a perl script through the RT environment so that I can use the database and all the modules, but see the compiler output on my faulty experiments? - Gergely use lib /opt/rt4/lib; use RT; That

Re: [rt-users] testing perl script in RT

2012-08-09 Thread Paul Tomblin
On Thu, Aug 9, 2012 at 12:45 PM, Thomas Sibley t...@bestpractical.comwrote: and RT-Init; RT-LoadConfig; Looking at my unit test scripts, I seem to have RT::Init; RT::LoadConfig; There shouldn't be a difference, should there? -- http://www.linkedin.com/in/paultomblin

Re: [rt-users] Group not found

2012-07-25 Thread Paul Tomblin
I've seen this exact thing happen when the person trying to add the watchers didn't have permissions to the queues in question. Rather than handling it properly, RT sticks a null queue name into the query, which the query doesn't like much. On Wed, Jul 25, 2012 at 10:18 AM, Betz, Gregory

Re: [rt-users] EXTERNAL: Re: Group not found

2012-07-25 Thread Paul Tomblin
...@lists.bestpractical.com [mailto: rt-users-boun...@lists.bestpractical.com] *On Behalf Of *Betz, Gregory *Sent:* Wednesday, July 25, 2012 10:29 AM *To:* Paul Tomblin *Cc:* rt-users@lists.bestpractical.com *Subject:* Re: [rt-users] EXTERNAL: Re: Group not found ** ** Hey Paul

[rt-users] Saving stuff in the session?

2012-07-20 Thread Paul Tomblin
I have a couple of web pages that are being installed as an extension (along with Scrips and Actions etc). I want to pass information from one part of the web interface to another part of the web interface. I thought of using the session, having the mason code setting $session{'Clients'} =

Re: [rt-users] RT on Ubuntu 12

2012-06-21 Thread Paul Tomblin
sudo apt-get install libplack-perl On Thu, Jun 21, 2012 at 10:46 AM, Borngunners borngunn...@aol.com wrote: This is the error log from apache2 [Wed Jun 20 06:46:44 2012] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $ [Wed Jun 20

Re: [rt-users] RT on Ubuntu 12

2012-06-21 Thread Paul Tomblin
On Thu, Jun 21, 2012 at 11:33 AM, Borngunners borngunn...@aol.com wrote: Can't locate JSON.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib /opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib /opt/rt4/sbin/../lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2

Re: [rt-users] Odd behavior, RT automatically reverts changes to Custom Fields

2012-06-14 Thread Paul Tomblin
On Thu, Jun 14, 2012 at 9:48 AM, Matthew W. matt.k.w...@gmail.com wrote: Here's some psuedocode (code not tested and may contain typos, but my code works just fine as I can see the transactions in the ticket history): my $Value = 'some value'; my $CFName = 'customCF'; my $CF-LoadByName(

Re: [rt-users] Callbacks not working

2012-06-13 Thread Paul Tomblin
On Wed, Jun 13, 2012 at 9:41 AM, Mark Collins m...@westgateit.com wrote: Yes - even after the mason cache has been cleared the callback isn't running. If the callback has an error, it exits silently. I found a couple of problems like this by going into /opt/rt4/lib/RT.pm and adding Carp::click;

[rt-users] Slightly off-topic

2012-06-12 Thread Paul Tomblin
I have a need to access information in another database simultaneously to the , so I cloned RT::Handle.pm into my own RTx::FooBar::Handle that access the other database. Now I'm testing this on my Linux box and everything is running fine, but I copied it over to my MacBook Pro in order to demo it

Re: [rt-users] Problem with interpretation of images

2012-06-06 Thread Paul Tomblin
On Mon, Jun 4, 2012 at 12:58 PM, Alexander Reintzsch alexander.reintz...@netsystem.de wrote: Well, thanks for the idea. But autohandler doesn't work at all. Neither in share/html/NoAuth/images nor anywhere else. It's beeing ignored. I copied the picture, see attachment, into

Re: [rt-users] Problem with interpretation of images

2012-06-06 Thread Paul Tomblin
On Wed, Jun 6, 2012 at 12:02 PM, Thomas Sibley t...@bestpractical.com wrote: Make your plugin's images directory something that's not in core RT. You're running into an annoying Mason quirk involving autohandlers and multiple component roots, I believe.

Re: [rt-users] Can't get images to load

2012-06-04 Thread Paul Tomblin
The mystery deepens. I put some debugging into the autohandler in /opt/rt4/share/html/NoAuth/images/autohandler: %INIT # This autohandler will spit out RT's images if the user hasn't # properly configured their webserver to stop RT from passing # images through the mason handler. my $file =

Re: [rt-users] emails on ticket updates not being sent in 4.0.6

2012-05-23 Thread Paul Tomblin
On Wed, May 23, 2012 at 11:09 AM, Thomas Sibley t...@bestpractical.com wrote: rt-4.0.6-14259-1337770327-43.416-...@ichec.ie: `/usr/sbin/sendmail -oi -t` exited with code 1 at /opt/rt4/sbin/../lib/RT/Interface/Email.pm line 466. Exit code 1 isn't very useful, unfortunately.  Does this happen

[rt-users] How do I override a default scrip?

2012-05-18 Thread Paul Tomblin
How can I override a default scrip for a queue? If I define a new scrip with the same name as an existing one, it runs both of them. -- http://www.linkedin.com/in/paultomblin http://careers.stackoverflow.com/ptomblin

Re: [rt-users] How do I override a default scrip?

2012-05-18 Thread Paul Tomblin
On Fri, May 18, 2012 at 3:47 PM, Bill Cole rtusers-20090...@billmail.scconsult.com wrote: Another option is to modify the Global Scrip with a User Defined Condition that returns 0 if the Queue is one that you want to exempt. How do I programmatically add one of these User Defined Conditions to

Re: [rt-users] How do I override a default scrip?

2012-05-18 Thread Paul Tomblin
On Fri, May 18, 2012 at 5:40 PM, Paul Tomblin ptomb...@xcski.com wrote: rtusers-20090...@billmail.scconsult.com wrote: Another option is to modify the Global Scrip with a User Defined Condition that returns 0 if the Queue is one that you want to exempt. How do I programmatically add one

Re: [rt-users] How do I override a default scrip?

2012-05-18 Thread Paul Tomblin
On Fri, May 18, 2012 at 11:51 PM, Bill Cole rtusers-20090...@billmail.scconsult.com wrote: On 18 May 2012, at 17:40, Paul Tomblin wrote: On Fri, May 18, 2012 at 3:47 PM, Bill Cole rtusers-20090...@billmail.scconsult.com wrote: Another option is to modify the Global Scrip with a User Defined

Re: [rt-users] Is there a shortcut to get the ticket creation comments in a template?

2012-05-17 Thread Paul Tomblin
On Thu, May 17, 2012 at 4:15 PM, Paul Tomblin ptomb...@xcski.com wrote: I'm currently using this: {        my $attachments = RT::Attachments-new(RT-SystemUser);        $attachments-LimitByTicket($ticket-id);        $attachments-Limit( ALIAS    = $attachments-TransactionAlias

[rt-users] Actions + Templates

2012-05-16 Thread Paul Tomblin
Can I build a string in an Action and access it somehow in the template? Can the template call a sub or access a variable from the Action? -- http://www.linkedin.com/in/paultomblin http://careers.stackoverflow.com/ptomblin

Re: [rt-users] Getting Request Tracker to stick to HTTPS

2012-05-16 Thread Paul Tomblin
In RT_Config, it looks like you shouldn't even have to specify WebBaseURL - it appears to look to see if WebPort is 443 and changes it to https accordingly. On Wed, May 16, 2012 at 11:20 AM, Giles Coochey gi...@coochey.net wrote: I have the following set up: Clients -- Squid SSL Offload /

Re: [rt-users] Getting Request Tracker to stick to HTTPS

2012-05-16 Thread Paul Tomblin
can read more about what turning it On or Off means in the documentation for your version of Apache. If you use RT behind a reverse proxy, you almost certainly want to enable this option. =cut Set($CanonicalizeRedirectURLs, 0); On Wed, May 16, 2012 at 11:24 AM, Paul Tomblin ptomb...@xcski.com

[rt-users] Don't do default actions?

2012-05-16 Thread Paul Tomblin
If I don't want a default Scrip to run on a particular queue, is there a way to stop it? The only way I've found so far is to make a Overlay that checks the queue, and either returns 0 or calls SUPER::IsApplicable. Is that the best way? -- http://www.linkedin.com/in/paultomblin

[rt-users] Can't use html in ticket Create/Comment/Reply?

2012-05-15 Thread Paul Tomblin
I wanted to arrange some text in the Create data on a ticket I'm creating programmatically into a nice neat table, and so I created it as my $mimeObj = MIME::Entity-build( Type = 'text/html', Charset = 'UTF-8', 'Message-Id' = RT::Interface::Email::GenMessageId, Subject = Change Request,

Re: [rt-users] ExtractCustomFieldValues, insert fixed value when match

2012-05-04 Thread Paul Tomblin
On Fri, May 4, 2012 at 6:11 AM, Joshua Laroff jlar...@gmail.com wrote: my $cf = RT::CustomField-new($RT::SystemUser); $cf-LoadByName(Name = 'Customer'); ... $self-TicketObj-AddCustomFieldValue(Field = $cf, Value = $result); return 1; Actually, I think you can just pass the field name

[rt-users] Wait, what?

2012-05-03 Thread Paul Tomblin
I'm seeing this on my console [Thu May 3 23:06:29 2012] [warning]: DBD::Pg::st execute failed: ERROR: relation tickets does not exist LINE 1: SELECT main.* FROM Tickets main WHERE (main.Status != 'dele... ^ at /usr/share/perl5/DBIx/SearchBuilder/Handle.pm line 509.

[rt-users] Deleting tickets recursively

2012-05-01 Thread Paul Tomblin
I have a script that creates a ticket, then one or more child tickets of that ticket in a different queue, and then one or more child tickets of them in yet another queue. I also wrote a test to call that script and then verify that the expected tickets exist, etc. However, when I try to clean

Re: [rt-users] Deleting tickets recursively

2012-05-01 Thread Paul Tomblin
On Tue, May 1, 2012 at 9:45 AM, Paul Tomblin ptomb...@xcski.com wrote: recursiveDelete($child-id); Never mind, figured it out. That should be recursiveDelete($child-BaseObj-id); -- http://www.linkedin.com/in/paultomblin http://careers.stackoverflow.com/ptomblin

Re: [rt-users] Creating a ticket with RT::Ticket-Create

2012-04-25 Thread Paul Tomblin
. 24.04.2012 22:42 пользователь Paul Tomblin ptomb...@xcski.com написал: When I'm creating a ticket with RT::Ticket api, how do I set the text that goes into the box that says Describe the Issue below? It appears to end up as an attachment, and I can retrieve it from an existing ticket using my

[rt-users] Creating a ticket with RT::Ticket-Create

2012-04-24 Thread Paul Tomblin
When I'm creating a ticket with RT::Ticket api, how do I set the text that goes into the box that says Describe the Issue below? It appears to end up as an attachment, and I can retrieve it from an existing ticket using my $attachments = RT::Attachments-new(RT-SystemUser);

Re: [rt-users] CustomFields in Scrip

2012-04-10 Thread Paul Tomblin
On Mon, Apr 9, 2012 at 3:35 PM, Paul Tomblin ptomb...@xcski.com wrote: I have a ScripAction that activates when a ticket is resovled. If I set a custom field and resolve the ticket on the web site ( http://localhost:8080/Ticket/Modify.html?id=1), I'm trying to pull out the new custom field

Re: [rt-users] CustomFields in Scrip

2012-04-10 Thread Paul Tomblin
On Tue, Apr 10, 2012 at 12:12 PM, Ruslan Zakirov r...@bestpractical.comwrote: # Find the custom field myCustom my $myCustom = $ticket-FirstCustomFieldValue(myCustom); $RT::Logger-debug(custom field = . $myCustom); but it never gets the value. Is there somewhere else I need to look for

[rt-users] CustomFields in Scrip

2012-04-09 Thread Paul Tomblin
I have a ScripAction that activates when a ticket is resovled. If I set a custom field and resolve the ticket on the web site ( http://localhost:8080/Ticket/Modify.html?id=1), I'm trying to pull out the new custom field value in the Scrip using # Find the custom field myCustom my $myCustom =

[rt-users] Documentation for @CustomFields?

2012-04-01 Thread Paul Tomblin
I can't find any documentation for the @CustomFields initialization as used in some extensions in etc/initialdata (or any of the others you can set there, like @Queues). I can't even find where that code is processed. Any hints? -- http://www.linkedin.com/in/paultomblin

Re: [rt-users] Tests

2012-03-29 Thread Paul Tomblin
On Thu, Mar 29, 2012 at 4:54 AM, Tim Cutts t...@sanger.ac.uk wrote: Insecure dependency in require while running with -T switch at /opt/rt4/lib/RT/Config.pm line 904. That's the key line. It looks like a conflict between using taint mode and the Config.pm file. Try the test without taint

[rt-users] Extensions

2012-03-28 Thread Paul Tomblin
Is there any documentation somewhere on how to package up the extensions - not how to write them, but how to do the other stuff like the Makefile.PL and META.yml so that it installs. I tried just copying the Makefile.PL and MANIFEST and META.yml from another project, but my html files didn't

Re: [rt-users] Extensions

2012-03-28 Thread Paul Tomblin
On Wed, Mar 28, 2012 at 11:03 AM, Kevin Falcone falc...@bestpractical.comwrote: On Wed, Mar 28, 2012 at 10:58:03AM -0400, Paul Tomblin wrote: Is there any documentation somewhere on how to package up the extensions - not how to write them, but how to do the other stuff like

[rt-users] Tests

2012-03-28 Thread Paul Tomblin
Is it possible to do a perl unit test that uses the RT config file? I tried this is my test: #!perl -T use Test::More tests = 1; use RT; BEGIN { RT::LoadConfig(); use_ok( 'RTx:FooBar' ); }; And I get some errors about being unable to use RT_SiteConfig.pm: t/01-db.t . Couldn't

Re: [rt-users] Tests

2012-03-28 Thread Paul Tomblin
On Wed, Mar 28, 2012 at 6:52 PM, Joe Harris drey...@gmail.com wrote: In your script add: use libs /opt/rt4/lib/ To see if for some reason your env vars aren't seeing the RT path. Turns out it's 'use lib qw{/opt/rt4/lib};', but it didn't seem to help. Thanks anyway. --

[rt-users] Is it possible to do a table join in a query?

2012-03-26 Thread Paul Tomblin
I would like to put a group name into a custom field, and then see only the tickets in a certain queue where that group is a group that I belong to. I know how to do this from pgsql: select t.* from tickets t join queues q on t.queue = q.id join objectcustomfieldvalues ocfv on objecttype =