[rt-users] Modify SelfService to include quick new ticket form.
Good Morning, I was wondering if it is possible to edit the self service page, and add a quick ticket creation box to it? I cannot seem to find it anywhere in the admin interface. Thanks for the help, Tom
Re: [rt-users] 4.0.5 REST - adding an attachment - php
On 03/28/2012 02:07 AM, Alex Ardalich wrote: > Adding an attachment has me baffled. I understand I cannot do it at > ticket creation, need to do it as adding a comment. > I get as far as, Bad Request # No attachment for... > > If anyone has an example of how to do it I would be extremely grateful. http://wiki.bestpractical.com/view/REST#Ticket_History_Comment Without showing us what you're trying, we can do nothing but guess. My guess is that you're not POSTing the attachment_1 field.
[rt-users] Extensions
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 copy over. (I'm just starting the project, so all I have to install is some html mock-ups.) -- http://www.linkedin.com/in/paultomblin http://careers.stackoverflow.com/ptomblin
Re: [rt-users] Extensions
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 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 copy over. (I'm just starting the project, so all I have to > install is some html >mock-ups.) Several of us use Dist-Zilla-MintingProfile-RTx which will generate a Makefile.PL and some other boring parts of RT extensions. You also need Module-Install-RTx on your development box so that the pieces of the extension that know where to put files for RT are included in the tarball. -kevin pgpYEcMQR4Leu.pgp Description: PGP signature
Re: [rt-users] Extensions
On Wed, Mar 28, 2012 at 11:03 AM, Kevin Falcone wrote: > 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 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 copy over. (I'm just starting the project, so all I have > to install is some html > >mock-ups.) > > Several of us use Dist-Zilla-MintingProfile-RTx which will generate > a Makefile.PL and some other boring parts of RT extensions. You also > need Module-Install-RTx on your development box so that the pieces > of the extension that know where to put files for RT are included in > the tarball. > > Ok, I installed Dist-Zilla-MintingProfile-RTx using "perl -MCPAN -e shell", and it dragged in about a zillion required modules. Now the dzil.org page says that I use "dzil new" to create a new directory to get started, and I just need to do "dzil new RTx::FooBar", but I get a bunch of warnings: dzil new RTx::CareFirst [DZ] making target dir /home/ptomblin/src/rt-extension-carefirst/RTx-CareFirst [DZ] writing files to /home/ptomblin/src/rt-extension-carefirst/RTx-CareFirst [DZ] guessing dist's main_module is lib/RTx/CareFirst.pm [DZ] no license data in config, no %Rights stash, couldn't make a good guess at license from Pod; giving up [DZ] no license data in config, no %Rights stash, couldn't make a good guess at license from Pod; giving up at /usr/local/lib/perl/5.12.4/Moose/Meta/Method/Delegation.pm line 110 and then it creates a directory RTx-FooBar, and in that an empty dist.ini file and skeleton lib/RTx/FooBar.pm. I couldn't find any documentation on how to generate this "%Rights stash" or config. So instead I tried following the manual page on http://search.cpan.org/~falcone/Dist-Zilla-MintingProfile-RTx-0.05/lib/Dist/Zilla/MintingProfile/RTx.pmand so I tried "dzil new -P RTx RTx::FooBar" and instead I got even more errors and warnings: [DZ] making target dir /home/ptomblin/src/rt-extension-carefirst/RTx-FooBar [DZ] Unable to find main_module in the distribution [DZ] We tried to guess 'lib/RTx/FooBar.pm' but no file like that existed [DZ] Upon further inspection we didn't find any files in your dist, did you add any? [DZ] Cannot continue without a main_module [DZ] No %User stash and no copyright holder; can't determine dist author; configure author or a %User section [DZ] No %User stash and no copyright holder; can't determine dist author; configure author or a %User section at /usr/local/lib/perl/5.12.4/Moose/Meta/Method/Delegation.pm line 110 and this time the RTx-FooBar directory is empty. I feel like I'm trying to learn how to swim, and I keep getting thrown into the shark tank. Can somebody please point me towards the shallow (non shark infested) end? -- http://www.linkedin.com/in/paultomblin http://careers.stackoverflow.com/ptomblin
[rt-users] Seeing unprivileged users in Tools->Configuration->Users
I'm debating using unprivileged users in our upcoming prelaunch of RT to help keep confusion down. One thing I noticed is I can't see unprivileged users in the User Manager. If I do a search based on the users' credentials/attributes I can find them. Is there a way to make the Privileged Users screen show all users or is there place I should be looking at for this? Stephen Cena MIS/IT Dept - Quality Vision International 850 Hudson Ave Rochester,NY. 14621 Ph: 585-544-0450 x300 "Thank you for helping us help you help us all."
Re: [rt-users] RT-Extension-FormTools examples
On 3/27/2012 5:36 PM, Kevin Falcone wrote: > On Tue, Mar 27, 2012 at 03:08:53PM -0700, David Good wrote: >> >> We have an existing RT 3.8.8 instance and our helpdesk manager has >> noticed that they're creating a lot of similar tickets. We have several >> custom fields definied and he'd like to be able to create certain >> pre-defined ticket types that would automatically fill in the >> appropriate values for these (mandatory) custom fields. >> >> I'm thinking that RT-Extension-FormTools will work, but I have no idea >> how to put together a custom page with it. Are there any examples >> anywhere I could look at for inspiration? > > I'm not sure that's the tool you're looking for. > RT-Extension-FormTools is for building custom ticket creation forms. > > I'd probably modify the QuickCalls extension to support Custom Fields > and use that to give them a list of "common ticket types". I can't > remember if it's been updated to support CFs or not, so you might get > lucky. You're right -- QuickCalls is exactly what we need. You can set Custom Fields as well, you just have to know the field's ID and then to set its value you'd use 'CustomField-' instead of the field name, like this: Set($QuickCalls, [ { Name => 'New Account Request', Queue => 'Helpdesk', Status => 'open', 'CustomField-3' => 'Your desired Custom Field value', SetOwnerToCurrentUser => 1, }, ] ); The SetOwnerToCurrentUser option is nice, too. It should probably be documented somewhere -- I only found it when I was poking around trying to figure out how to set Custom Field values.
[rt-users] Generate engineer report for average ticket close time
We are running RT 4.0.2 and need the availability to generate, on a per user / engineer basis, a report which will give the average time from ticket creation to ticket resolution. I found this perl script: http://requesttracker.wikia.com/wiki/Ticket_Lifetime_Report The script there would probably serve the purpose well for what we need internally, except I am unsure where this was intended to run from. I would like to be able to create a link for each helpdesk user to see this type of information so that they can track their goals and work to cut down on ticket time. Most of our helpdesk does not use the 'TimeWorked' field, and even if so, that wouldn't be a good representation of a ticket's life span. I apologize if this has been asked previously, but a search on my mail didn't return anything promising. I would greatly appreciate any assistance. Regards, Izz
[rt-users] Linked Custom Field Display Issue
Our RT instance is 3.8.11 and our web browsers are IE 7 & 8 and a variety of FF versions. I have created a "Select One" custom field for work areas and another "Select One" customer field as applications. The applications listed depend on the work area selected. We are able to create tickets and assign both the work area and the application as expected. The correct information is display in the "Custom Fields" area of the Display.html In IE, the display issue occurs when Modify.html attempts to update the custom fields. The correct work area is displayed. The correct applications are available but "(no value)" is the selected item. If the ticket is saved without updating the application selection then the selected value is removed and not displayed on Display.html. In FF, everything displays correctly. I have been able to replicate this with the 4.x instance running on http://rt.easter-eggs.org/demos/stable/ This seems to be a JavaScript/DOM compatibility difference between IE and FF. Is this an issue that can be fixed with updates to the JavaScript? I have too many people working with IE only. Thanks for any help Keith Keith Schincke CAP, LPIC-1, RHCA, RHCSS Team Lead IT Security System Administration, ITAMS Building 46, Room 110A email to: keith.d.schin...@nasa.gov 281-244-0183 Office 832-205-1534 Mobile 281-244-5708 Fax ITAMS - Information Technology And Multimedia Services Contract "One Team, One Vision >> Partnered For Innovative Solutions"
Re: [rt-users] RT-Extension-FormTools examples
On Wed, Mar 28, 2012 at 10:51:14AM -0700, David Good wrote: > On 3/27/2012 5:36 PM, Kevin Falcone wrote: > > On Tue, Mar 27, 2012 at 03:08:53PM -0700, David Good wrote: > You're right -- QuickCalls is exactly what we need. You can set Custom > Fields as well, you just have to know the field's ID and then to set its > value you'd use 'CustomField-' instead of the field name, like this: Oh, good, that was my guess but I wasn't sure. It get's complicated to load CFs by name. > Set($QuickCalls, > [ > { > Name => 'New Account Request', > Queue => 'Helpdesk', > Status => 'open', > 'CustomField-3' => 'Your desired Custom Field value', > SetOwnerToCurrentUser => 1, > }, > ] > ); > > The SetOwnerToCurrentUser option is nice, too. It should probably be > documented somewhere -- I only found it when I was poking around trying > to figure out how to set Custom Field values. > Feel free to send a doc patch over to the rt.cpan queue. I believe the feature was contributed as a patch and the lazy applier (probably me) forgot to request docs or write them. -kevin pgp1KVxnrzVM3.pgp Description: PGP signature
Re: [rt-users] Debian/Ubuntu rt-setup-database doesn?t work
This looks like a bug in request-tracker4 in Debian, so I've filed a bug: http://bugs.debian.org/666123 On Sat, Mar 24, 2012 at 12:56:30AM +0100, Juanjo wrote: > Install PERL-DOC packages and works. Sorry. > > El 24 de marzo de 2012 00:16, Juanjo escribi?: > > > Hi Again. > > > > I have two installations, one with Ubuntu Server 11.10 and another with > > Debian Wheezy. With RT4 installed trought apt-get > > Both installations give me the same error. > > > > # ./rt-setup-database-4 > > > > Dont return the options of this command. I get the PERL code that use this > > command. > > > > Perhaps i forget some packet to install... > > > > Any help? > > > > -- > > Un saludo. > > Juanjo Corral > > > > > > -- > Un saludo. > Juanjo Corral -- Dominic Hargreaves, Systems Development and Support Team Computing Services, University of Oxford signature.asc Description: Digital signature
[rt-users] Tests
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 load RT config file RT_SiteConfig.pm: Insecure dependency in require while running with -T switch at /opt/rt4/lib/RT/Config.pm line 904. BEGIN failed--compilation aborted at t/01-db.t line 11. # Looks like your test exited with 2 before it could output anything. t/01-db.t . Dubious, test returned 2 (wstat 512, 0x200) I've got RTHOME and PERL5LIB set so that it can find the RT installation and libs. -- http://www.linkedin.com/in/paultomblin http://careers.stackoverflow.com/ptomblin
[rt-users] no response after login
Dear , I installed a new version of rt 4.0.5 on Ubuntu with MySQL database. After login with root I receive no response , just redirects me to /NoAuth/Login.html ..i have review the configuration as below site config Set( $rtname, 'rtsystem'); Set($Organization, "rtsystem.ipmagix.com"); Set($Timezone, 'Africa/Cairo'); #Set($WebBaseURL, "http://rtsystem.ipmagix.com/";); #Set($WebPath,"/"); Set($WebDomain,'10.10.1.110'); Set($SendmailPath, "/usr/lib/sendmail"); Set($LogToSyslog, ''); Set($LogToFile, 'debug'); Set($LogDir, '/opt/rt4/var/log'); Set($LogToFileNamed , "rt.log"); VirtualHost config ServerAdmin webmaster@localhost ServerName rtsystem DocumentRoot /opt/rt4/share/html AddDefaultCharset UTF-8 ErrorLog /opt/rt4/var/log/apache2.error TransferLog /opt/rt4/var/log/apache2.access SetHandler /opt/rt4/sbin/rt-server.fcgi AddHandler fastcgi-script fcgi ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/ SetHandler default Order allow,deny Allow from all AddDefaultCharset UTF-8 SetHandler perl-script PerlResponseHandler Plack::Handler::Apache2 PerlSetVar psgi_app /opt/rt4/sbin/rt-server use Plack::Handler::Apache2; Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server"); apache2.access log [28/Mar/2012:15:50:58 +0200] "GET / HTTP/1.1" 200 1696 [28/Mar/2012:15:50:59 +0200] "GET /NoAuth/images/bpslogo.png HTTP/1.1" 200 3929 [28/Mar/2012:15:50:59 +0200] "GET /NoAuth/css/print.css HTTP/1.1" 200 989 [28/Mar/2012:15:50:59 +0200] "GET /NoAuth/js/squished-6812ec8beec9403a8b720b6be4f3d8c9.js HTTP/1.1" 200 62655 [28/Mar/2012:15:50:59 +0200] "GET /NoAuth/css/aileron-squished-14db9fc647cded1a2cab3bdfc63aad2f.css HTTP/1.1" 200 15297 [28/Mar/2012:15:51:00 +0200] "GET /NoAuth/css/web2/images/background-gradient.png HTTP/1.1" 200 394 [28/Mar/2012:15:51:05 +0200] "POST /NoAuth/Login.html HTTP/1.1" 200 26 [28/Mar/2012:15:51:14 +0200] "OPTIONS * HTTP/1.0" 200 - [28/Mar/2012:15:51:20 +0200] "OPTIONS * HTTP/1.0" 200 - rt.log [Wed Mar 28 13:50:39 2012] [debug]: RT's GnuPG libraries couldn't successfully read your configured GnuPG home directory (/opt/rt4/var/data/gpg). PGP support has been disabled (/opt/rt4/sbin/../lib/RT/Config.pm:595) [Wed Mar 28 13:50:39 2012] [debug]: The RTAddressRegexp option is not set in the config. Not setting this option results in additional SQL queries to check whether each address belongs to RT or not. It is especially important to set this option if RT recieves emails on addresses that are not in the database or config. (/opt/rt4/sbin/../lib/RT/Config.pm:454) [Wed Mar 28 13:51:05 2012] [info]: Successful login for root from 10.10.1.106 (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:670) So please if you have any idea please feed me back BR Ahemd Shaban
Re: [rt-users] Tests
In your script add: use libs /opt/rt4/lib/ To see if for some reason your env vars aren't seeing the RT path. It "may" be use lib and not use libs. I'm not at workstation to log in and check. Sent from my mobile device. On Mar 28, 2012, at 5:56 PM, Paul Tomblin wrote: > 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 load RT config file RT_SiteConfig.pm: > > Insecure dependency in require while running with -T switch at > /opt/rt4/lib/RT/Config.pm line 904. > BEGIN failed--compilation aborted at t/01-db.t line 11. > # Looks like your test exited with 2 before it could output anything. > t/01-db.t . Dubious, test returned 2 (wstat 512, 0x200) > > I've got RTHOME and PERL5LIB set so that it can find the RT installation and > libs. > > -- > http://www.linkedin.com/in/paultomblin > http://careers.stackoverflow.com/ptomblin >
Re: [rt-users] no response after login
Make sure the noauth folder is owned by the web user. And I think after the change you need to delete mason cache. Someone correct me if I'm wrong. I think my initial installation I had this issue and it was the fix. Sent from my mobile device. On Mar 28, 2012, at 6:45 PM, ahmad shaban wrote: > > Dear , > I installed a new version of rt 4.0.5 on Ubuntu with MySQL database. > After login with root I receive no response , just redirects me to > /NoAuth/Login.html ..i have review the configuration as below > > > > site config > > Set( $rtname, 'rtsystem'); > Set($Organization, "rtsystem.ipmagix.com"); > Set($Timezone, 'Africa/Cairo'); > #Set($WebBaseURL, "http://rtsystem.ipmagix.com/";); > #Set($WebPath,"/"); > Set($WebDomain,'10.10.1.110'); > Set($SendmailPath, "/usr/lib/sendmail"); > Set($LogToSyslog, ''); > Set($LogToFile, 'debug'); > Set($LogDir, '/opt/rt4/var/log'); > Set($LogToFileNamed , "rt.log"); > > VirtualHost config > > > ServerAdmin webmaster@localhost > ServerName rtsystem > > DocumentRoot /opt/rt4/share/html > AddDefaultCharset UTF-8 > ErrorLog /opt/rt4/var/log/apache2.error > TransferLog /opt/rt4/var/log/apache2.access > SetHandler /opt/rt4/sbin/rt-server.fcgi > AddHandler fastcgi-script fcgi > ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/ > > SetHandler default > > > Order allow,deny > Allow from all > > AddDefaultCharset UTF-8 > > SetHandler perl-script > PerlResponseHandler Plack::Handler::Apache2 > PerlSetVar psgi_app /opt/rt4/sbin/rt-server > > > use Plack::Handler::Apache2; > Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server"); > > > > apache2.access log > > [28/Mar/2012:15:50:58 +0200] "GET / HTTP/1.1" 200 1696 > [28/Mar/2012:15:50:59 +0200] "GET /NoAuth/images/bpslogo.png HTTP/1.1" 200 > 3929 > [28/Mar/2012:15:50:59 +0200] "GET /NoAuth/css/print.css HTTP/1.1" 200 989 > [28/Mar/2012:15:50:59 +0200] "GET > /NoAuth/js/squished-6812ec8beec9403a8b720b6be4f3d8c9.js HTTP/1.1" 200 62655 > [28/Mar/2012:15:50:59 +0200] "GET > /NoAuth/css/aileron-squished-14db9fc647cded1a2cab3bdfc63aad2f.css HTTP/1.1" > 200 15297 > [28/Mar/2012:15:51:00 +0200] "GET > /NoAuth/css/web2/images/background-gradient.png HTTP/1.1" 200 394 > [28/Mar/2012:15:51:05 +0200] "POST /NoAuth/Login.html HTTP/1.1" 200 26 > [28/Mar/2012:15:51:14 +0200] "OPTIONS * HTTP/1.0" 200 - > [28/Mar/2012:15:51:20 +0200] "OPTIONS * HTTP/1.0" 200 - > > rt.log > > [Wed Mar 28 13:50:39 2012] [debug]: RT's GnuPG libraries couldn't > successfully read your configured GnuPG home directory > (/opt/rt4/var/data/gpg). PGP support has been disabled > (/opt/rt4/sbin/../lib/RT/Config.pm:595) > [Wed Mar 28 13:50:39 2012] [debug]: The RTAddressRegexp option is not set in > the config. Not setting this option results in additional SQL queries to > check whether each address belongs to RT or not. It is especially important > to set this option if RT recieves emails on addresses that are not in the > database or config. (/opt/rt4/sbin/../lib/RT/Config.pm:454) > [Wed Mar 28 13:51:05 2012] [info]: Successful login for root from 10.10.1.106 > (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:670) > > > So please if you have any idea please feed me back > BR > Ahemd Shaban > >
Re: [rt-users] Tests
On Wed, Mar 28, 2012 at 6:52 PM, Joe Harris 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. -- http://www.linkedin.com/in/paultomblin http://careers.stackoverflow.com/ptomblin
Re: [rt-users] 4.0.5 REST - adding an attachment - php
Thanks Thomas Not using curl - $attachment_1 = file_get_contents(FCPATH . '/test.pdf'); $content = "id: 15818\n"; $content = $content . "Action: correspond\n"; $content = $content . "Text: Im adding some text\n And adding some more text\n And some more\n"; $content = $content . "TimeWorked: 30\n"; $content = $content . "Attachment: test.pdf\n"; $url = 'http://rt4.challengeltd.net/REST/1.0/'; $url .= 'ticket/15818/comment'; $post_data = array( 'user' => 'user', 'pass' => 'password', 'content' => $content, 'attachment_1' => $attachment_1 ); $data = http_build_query($post_data); $params = array( 'http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $data )); $ctx = stream_context_create($params); $response = file_get_contents($url, false, $ctx); print_r($response); -- Using curl --- $attachment_1 = file_get_contents(FCPATH . '/test.pdf'); $content = "id: 15818\n"; $content = $content . "Action: correspond\n"; $content = $content . "Text: Im adding some text\n And adding some more text\n And some more\n"; $content = $content . "TimeWorked: 30\n"; $content = $content . "Attachment: test.pdf\n"; $request = 'http://rt4.challengeltd.net/REST/1.0/'; $request .= 'ticket/15818/comment'; $postargs = array( 'user' => 'aardalich', 'pass' => 'BluesPacer', 'content' => $content, 'attachment_1' => $attachment_1 ); // get the curl session object $session = curl_init($request); // set the POST options curl_setopt ($session, CURLOPT_POST, true); curl_setopt ($session, CURLOPT_POSTFIELDS, $postargs); curl_setopt($session, CURLOPT_HEADER, true); curl_setopt($session, CURLOPT_RETURNTRANSFER, true); curl_setopt( $session, CURLOPT_HTTPHEADER, array( 'Expect:' ) ); // do the POST and then close the session $response = curl_exec($session); print_r($response); curl_close($session); --- Expect I'm not grabbing the raw file correctly, or encoding it or something. Unsure of how. I was thinking the other way I could go is (after creating the ticket and getting the number from the response back) is to then send in an email with the attachment with the correct subject so it lands in the ticket. Thanks, Alex -Original Message- From: rt-users-boun...@lists.bestpractical.com [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Thomas Sibley Sent: Thursday, 29 March 2012 12:08 AM To: rt-users@lists.bestpractical.com Subject: Re: [rt-users] 4.0.5 REST - adding an attachment - php On 03/28/2012 02:07 AM, Alex Ardalich wrote: > Adding an attachment has me baffled. I understand I cannot do it at > ticket creation, need to do it as adding a comment. > I get as far as, Bad Request # No attachment for... > > If anyone has an example of how to do it I would be extremely grateful. http://wiki.bestpractical.com/view/REST#Ticket_History_Comment Without showing us what you're trying, we can do nothing but guess. My guess is that you're not POSTing the attachment_1 field.
Re: [rt-users] 4.0.5 REST - adding an attachment - php
On 03/28/2012 07:40 PM, Alex Ardalich wrote: > $params = array( > 'http' => array( > 'method' => 'POST', > 'header' => 'Content-type: > application/x-www-form-urlencoded', > 'content' => $data > )); This is certainly the wrong content-type. You want a multipart content type since uploads generally can't work url encoded. > $postargs = array( > 'user' => 'aardalich', > 'pass' => 'BluesPacer', > 'content' => $content, > 'attachment_1' => $attachment_1 > ); You probably want to change that password now... > // get the curl session object > $session = curl_init($request); > > // set the POST options > curl_setopt ($session, CURLOPT_POST, true); > curl_setopt ($session, CURLOPT_POSTFIELDS, $postargs); > curl_setopt($session, CURLOPT_HEADER, true); > curl_setopt($session, CURLOPT_RETURNTRANSFER, true); > curl_setopt( $session, CURLOPT_HTTPHEADER, array( 'Expect:' ) ); I don't know enough about the PHP curl interface to tell if the POST is getting constructed correctly by this code. Since it doesn't work, however, I suspect it's subtly wrong. > Expect I'm not grabbing the raw file correctly, or encoding it or > something. Unsure of how. The POST data needs to be a multipart MIME entity. Look at the other language examples of POSTing attachment_1 on the wiki page I linked to. For debugging, capture the request that's actually sent by your code over the network. For figuring out what the POST is supposed to look like, capture what /opt/rt4/bin/rt sends when you submit a comment with an attachment. Thomas
Re: [rt-users] no response after login
On 03/28/2012 06:45 PM, ahmad shaban wrote: > > ServerAdmin webmaster@localhost > ServerName rtsystem > > DocumentRoot /opt/rt4/share/html > AddDefaultCharset UTF-8 > ErrorLog /opt/rt4/var/log/apache2.error > TransferLog /opt/rt4/var/log/apache2.access > SetHandler /opt/rt4/sbin/rt-server.fcgi > AddHandler fastcgi-script fcgi > ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/ > > SetHandler default > > > Order allow,deny > Allow from all > > AddDefaultCharset UTF-8 > > SetHandler perl-script > PerlResponseHandler Plack::Handler::Apache2 > PerlSetVar psgi_app /opt/rt4/sbin/rt-server > > > use Plack::Handler::Apache2; > Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server"); > > Uh, you appear to have mixed a mod_perl config with a fastcgi config. You need to pick one.
[rt-users] RT4.0.5 Query Builder and Custom Queue Fields
Hi All, I am having issues with custom queue fields and identifying them through Query Builder. I am sure I have missed a step somewhere, but have been working on this for 3 days now without luck. I have configured the custom field for the queue, applied it to all all queues (global). I have selected a value for this custom field agsinst all queues. When I open the query builder, select the queue and select add these terms. The custom fields do not update. They remain as the ticket custom fields. I have tried logging on as different users, even as the root user without luck. I'm sure it is something basic or simple that I have forgotten, however it is doing my head in. Could someone point me in the right direction. Cheers, Jason -- View this message in context: http://old.nabble.com/RT4.0.5-Query-Builder-and-Custom-Queue-Fields-tp33544865p33544865.html Sent from the Request Tracker - User mailing list archive at Nabble.com.
Re: [rt-users] 4.0.5 REST - adding an attachment - php
Will do, thanks for your help. And yes, as soon as I sent it, argh, forgot one of the user/pass spots :) Alex