Re: [rt-users] How to get authentication while opening ticket from the link in the admin correspondance mail.?
Hello Ruslan, Thanks for your suggestion; however my cigarette went in vein. This couldnt solve my requirement. Any other ways.??? Please suggest. Like any forums or chat rooms. etc.. Got a deadline also for this task. Thanks Manohar -Original Message- From: Ruslan Zakirov [mailto:ruslan.zaki...@gmail.com] Sent: Tuesday, May 26, 2009 8:02 PM To: H Manohar rayker Cc: rt-users@lists.bestpractical.com Subject: Re: [rt-users] How to get authentication while opening ticket from the link in the admin correspondance mail.? I believe you adjusted NoAuth regexp in the config, didn't you? This regexp doesn't mean UI will start working without auth, but the following instead components matching this regular expression can work without any credentials. On Tue, May 26, 2009 at 4:11 PM, H Manohar rayker manoha...@glowtouch.com wrote: Hi, When a ticket is created we get a admin correspondence mail with the ticket id , owner and the link to the ticket. Now when we click the link of the ticket directly it should open up the login screen after entering the user name and password which should proceed showing the ticket details. For eg.: http://abc.defghk.com/Ticket/Display.html?id=345 The ticket opens up from the link when there is already a user logged in. If there are no users logged in we get the error: Can't call method HasRight on an undefined value at /opt/rt3/bin/../lib/RT/Ticket_Overlay.pm line 3351. When refered to the rt.log I find this error: [Tue May 26 12:05:14 2009] [error]: Couldn't get principal for not loaded object (/opt/rt3/bin/../lib/RT/User_Overlay.pm:1154) [Tue May 26 12:05:18 2009] [error]: Couldn't get principal for not loaded object (/opt/rt3/bin/../lib/RT/User_Overlay.pm:1154) Is this is a bug or what do I need to do to get this working? Please Guide . Im using RT 3.8.2, Apache 1.3, CentOS 5.2 Thanks Manohar ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com -- Best regards, Ruslan. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] associate calendar to custom field
Hi all, Is it possible to associate a calendar link to a custom field? Thank you. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Perl help
On Tue, 26 May 2009 19:59:15 -0400, Ken Crocker kfcroc...@lbl.gov wrote: I don't see or understand the mechanisms that make the - work. My problem is that I am completely sight-oriented. It's the old saying, I can hear you talking, but I can't see a word you say. That's me. I've coded in over 20 languages in my 40 years in this business, but no perl. Perl is EXTREMELY harder to understand than COBOL, SQL, even Assembler. I have no framework of reference points to See what the explanations of the code means. Kenn, I found an online book Beginning Perl that would answer many of your questions - http://www.perl.org/books/beginning-perl/ The Object-Oriented Perl chapter in particular explains the - syntax. Might be worth a try - and it's free! Steve ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] Error while initializing database
hello, I have a new install of RT on centos. Make initialize-database command is failing with make: *** No rule to make target `initialize-database'. Stop. can anyone assist to resolve this issue? Thanks, vm ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Error while initializing database
RT 3.8.2 mysql 5.0 On Wed, May 27, 2009 at 12:04 PM, testwreq wreq testw...@gmail.com wrote: hello, I have a new install of RT on centos. Make initialize-database command is failing with make: *** No rule to make target `initialize-database'. Stop. can anyone assist to resolve this issue? Thanks, vm ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] is there a place in RT where I can view an HTTP REST request?
Developers, Is there a place in RT where I can add logging to see what exactly RT is getting when it receives a REST request? Re a place where I can print to the log the http reest being received. As I have posted in another earlier message to this board, I continue to struggle with why when I make a REST request for a new ticket from PHP CURL code the ticket gets made, but the custom field in the content of the request does not get set. When I make what I believe is the exact same request via an html form the ticket gets made and the custom field gets set. So apparetly the PHP CURL request is not exactly the same as the form request but for the life of me I cannot figure out how they are different. Logging I have added elsewhere in RT indicates that the CURL request is not resulting in the custom field being set due to a permission issue. But why the form doesn't have this same issue I don't know. Both methods are sending the same user name and password as post args. And the custom field as a line in the content. Both request are successful, but only the form method sets the custom field too. So I thought I would try to examine what exactly RT is receiving in either case and see what is different. I am trying to familiarize myself with the code, and I gather that I should be able to look at the request from one f the lib/RT/Interface files, but I am not sure. Have any of you had a need to examine an http request coming into RT and if so can you tell me how to do this? Thanks sooo much! Kim___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] is there a place in RT where I can view an HTTP REST request?
Kim Jones wrote: Developers, Is there a place in RT where I can add logging to see what exactly RT is getting when it receives a REST request? Re a place where I can print to the log the http reest being received. It's HTTP. You can log the HTTP request/response with wireshark fairly easily. -- -- Tom Lahti BIT Statement LLC (425)251-0833 x 117 http://www.bitstatement.net/ -- ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] customize the home page of rt
Please is there someone who can tell me how can i do this. Thank you, -- Forwarded message -- From: hanane ourdani hanane.ourd...@gmail.com Date: 2009/5/26 Subject: Re: [rt-users] customize the home page of rt To: Nick Kartsioukas change+lists...@nightwind.netchange%2blists...@nightwind.net indeed, this search is based on 2 custom fields - Date et heure début de l`opération (JJ/MM/ HH :MM): 10/05/2009 15:20(for example) - Date et Heure fin de l`opération (JJ/MM/ HH :MM) : 10/05/2009 17:18 This is the Requet: Queue = '' AND 'CF..{Date et Heure début de l`opération (JJ/MM/ HH :MM)}' '10/05/2009' AND 'CF..{Date et Heure fin de l`opération (JJ/MM/ HH :MM)}' '10/05/2009' I can do this, but i chould change the date every day, i want that RT do this automatically, is it possible ? thank you very much 2009/5/26 Nick Kartsioukas change+lists...@nightwind.netchange%2blists...@nightwind.net On Tue, 26 May 2009 09:08:08 +, hanane ourdani hanane.ourd...@gmail.com said: Please is there a way to display all operations of day in the home page and how can i do it please, Logged in as a SuperUser, create a new search, Last Updated/After/'1 day ago'. Save it as an RT system saved search. Go to Config, Global, At A Glance and add that saved search to the list. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Simple Search functionality
I am running 3.8.2 which is installed under /apps/rt-3.8.2. According to http://wiki.bestpractical.com/view/SimpleSearchIncludeResolved, I created... # cat /apps/rt-3.8.2/local/html/Callbacks/stuff/Search/Simple.html/ModifyQuery %init #active is the default: open new stalled $$query =~ s/\bany\b/new open resolved stalled rejected deleted/i; #$$query =~ s/\bclosed\b/resolved rejected deleted/i; /%init %args $query = undef /%args Tested it but it did not work. Restarted httpd and still not working. Do I have to define something in /apps/rt-3.8.2/etc/RT_SiteConfig.pm so that RT finds the ModifyQuery file I created? Thanks. -Original Message- From: rt-users-boun...@lists.bestpractical.com [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Emmanuel Lacour Sent: Tuesday, May 26, 2009 11:10 AM To: rt-users@lists.bestpractical.com Subject: Re: [rt-users] Simple Search functionality On Tue, May 26, 2009 at 05:05:26PM +0200, Emmanuel Lacour wrote: On Tue, May 26, 2009 at 11:00:07AM -0400, Jerrad Pierce wrote: On the wiki searching for SimpleSearch returns two of 5 relevant results. And I just fully described how it works here: http://wiki.bestpractical.com/view/SimpleSearch And a FAQ entry with this article as answer. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] FW: Regular Authentication and ExternalAuth RT 3.8.1
Is there any other data I need to provide? I'm still having a problem with this. Thank you, -Original Message- From: rt-users-boun...@lists.bestpractical.com [mailto:rt-users- boun...@lists.bestpractical.com] On Behalf Of Eric Chatham Sent: Tuesday, May 26, 2009 11:30 To: Rob Munsch Cc: RT-Users@lists.bestpractical.com Subject: Re: [rt-users] FW: Regular Authentication and ExternalAuth RT 3.8.1 On Friday, May 22, 2009 16:33, Rob Munsch wrote: There is nothing listed in /var/log. er... I'm thinking you should probably tell us more about your system setup in general... I am running CentOS (RHEL 5.1) on VMWare. As far as System Setup, I installed RT 3.8.2 with the following (let me know if there is something specific you need): Perl Modules: Perl v5.8.8 under linux Apache2::Const v2.04; Apache2::Log v2.04; Apache2::RequestIO v2.04; Apache2::RequestRec v2.04; Apache2::RequestUtil v2.04; Apache2::Response v2.04; Apache2::ServerUtil v2.04; Apache2::Status v4.00; Apache::Session v1.88; Apache::Session::Generate::MD5 v2.12; Apache::Session::Lock::MySQL v1.01; Apache::Session::MySQL v1.01; Apache::Session::Serialize::Storable v1.01; Apache::Session::Store::DBI v1.02; Apache::Session::Store::MySQL v1.04; APR v0.009000; APR::Pool v0.009000; APR::Table v0.009000; AutoLoader v5.60; base v2.07; bytes v1.02; Cache::Simple::TimedExpiry v0.27; Carp v1.04; CGI v3.43; CGI::Cookie v1.29; CGI::Util v1.5_01; Class::Accessor v0.33; Class::Accessor::Fast v0.33; Class::Container v0.12; Class::Data::Inheritable v0.08; Class::Inspector v1.24; Class::ReturnValue v0.55; Clone v0.31; constant v1.05; Convert::ASN1 v0.22; Cwd v3.12; Data::Dumper v2.121_08; Date::Format v2.22; Date::Parse v2.27; DBD::mysql v4.010; DBI v1.608; DBIx::SearchBuilder v1.54; DBIx::SearchBuilder::Union v0; DBIx::SearchBuilder::Unique v0.01; Devel::StackTrace v1.20; Devel::StackTraceFrame v1.20; Digest::base v1.00; Digest::MD5 v2.36; DynaLoader v1.05; Email::Address v1.889; Encode v2.33; Encode::Alias v2.12; Encode::Config v2.05; Encode::Encoding v2.05; Errno v1.0901; Exception::Class v1.29; Exception::Class::Base v1.20; Exporter v5.58; Exporter::Heavy v5.58; Fcntl v1.05; File::Basename v2.74; File::Glob v1.05; File::Path v1.08; File::ShareDir v1.00; File::Spec v3.12; File::Spec::Unix v1.5; File::Temp v0.21; FileHandle v2.01; GD v2.41; GD::Image v2.27; HTML::Element v3.23; HTML::Entities v1.35; HTML::Formatter v2.04; HTML::FormatText v2.04; HTML::Mason v1.42; HTML::Mason::ApacheHandler v1.69; HTML::Mason::Exception v1.1; HTML::Mason::Exception::Abort v1.1; HTML::Mason::Exception::Compilation v1.1; HTML::Mason::Exception::Compilation::IncompatibleCompiler v1.1; HTML::Mason::Exception::Compiler v1.1; HTML::Mason::Exception::Decline v1.1; HTML::Mason::Exception::Params v1.1; HTML::Mason::Exception::Syntax v1.1; HTML::Mason::Exception::System v1.1; HTML::Mason::Exception::TopLevelNotFound v1.1; HTML::Mason::Exception::VirtualMethod v1.1; HTML::Mason::Exceptions v1.43; HTML::Parser v3.55; HTML::Scrubber v0.08; HTML::Tagset v3.10; HTML::TreeBuilder v3.23; I18N::LangTags v0.35; integer v1.00; IO v1.22; IO::File v1.13; IO::Handle v1.25; IO::InnerFile v2.110; IO::Lines v2.110; IO::ScalarArray v2.110; IO::Seekable v1.1; IO::Select v1.17; IO::Socket v1.29; IO::Socket::INET v1.29; IO::Socket::UNIX v1.22; IO::WrapTie v2.110; IPC::Open2 v1.02; IPC::Open3 v1.02; List::Util v1.19; Locale::Maketext v1.09; Locale::Maketext::Fuzzy v0.10; Locale::Maketext::Lexicon v0.77; Locale::Maketext::Lexicon::Gettext v0.17; Log::Dispatch v2.22; Log::Dispatch::Base v1.09; Log::Dispatch::Output v1.26; Log::Dispatch::Screen v1.17; Log::Dispatch::Syslog v1.18; Mail::Address v2.04; Mail::Field v2.04; Mail::Field::AddrList v2.04; Mail::Field::Date v2.04; Mail::Field::Generic v2.04; Mail::Header v2.04; Mail::Internet v2.04; Mail::Mailer v2.04; Mail::Util v2.04; MIME::Base64 v3.07; MIME::Body v5.427; MIME::Decoder v5.427; MIME::Entity v5.427; MIME::Field::ContDisp v5.427; MIME::Field::ConTraEnc v5.427; MIME::Field::ContType v5.427; MIME::Field::ParamVal v5.427; MIME::Head v5.427; MIME::Parser v5.427; MIME::QuotedPrint v3.07; MIME::Tools v5.427; MIME::Words v5.427; mod_perl v2.04; mod_perl2 v2.04; ModPerl::Const v2.04; Module::Versions::Report v1.06; Net::LDAP v0.39; Net::LDAP::ASN v0.08; Net::LDAP::Constant v0.07; Net::LDAP::Filter v0.15; Net::LDAP::Message v1.11; Net::LDAP::Util v0.11; overload v1.04; Params::Util v0.38; Params::Validate v0.91; POSIX v1.09; re v0.05; Regexp::Common v2.122; Regexp::Common::delimited v2.106; RT v3.8.2; RT::Authen::ExternalAuth v0.08; RT::Interface::Email v2; RT::Interface::Web::Request v0.30;
[rt-users] Queue-level Parsing of CC's
To all (especially Ruslan Stephen), Hallelujah! I finally got the code to parse CC addresses to a ticket for Queues only to work. Below is the code: # # Custom condition: # # condition set on email transaction to create my $trans = $self-TransactionObj; my $msgattr = $trans-Message-First; return 0 unless $trans-Type eq Create; return 0 unless $msgattr; return 1 if $msgattr-GetHeader('Received'); return 0; # # Custom action preparation code: # # Setup default QA Approver my $trans = $self-TransactionObj; my $ticket = $self-TicketObj; my $cf_obj = RT::CustomField-new($RT::SystemUser); my $cf_name = QA Approver; my $cf_value = $trans-CreatorObj-Name; $cf_obj-LoadByName( Name = $cf_name ); $RT::Logger-debug( Loaded \$cf_obj-Name = . $cf_obj-Name() .\n ); $ticket-AddCustomFieldValue( Field=$cf_obj, Value=$cf_value, RecordTransaction=0 ); # Set up variables for parsing CC's my $header; my $addr; my $ccid; my $cc; # Parse the email CC's into ticket CC Watchers foreach $header ($trans-Attachments-First-GetHeader(Cc)) { foreach $cc ( split /\,/, $header ) { ($addr) = $cc =~ /([\w-]...@[\w-]+?\.[\w]+)/; $ccid = substr($addr, 0,length($addr)-8); my $user = RT::User-new($RT::SystemUser); $addr = $user-CanonicalizeEmailAddress($ccid); $ticket-AddWatcher( Type = 'Cc', Email = $ccid ); } } return 1; # # Custom action cleanup code: # return 1; Now, I'm sure there are a couple of better ways to write this code, so Ruslan or Stephen, please advise. However, I am EXTREMELY tickled that I finally got this thing to work. OH, also thanks to Gene LeDuc. Kenn LBNL ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Simple Search functionality
On Wed, May 27, 2009 at 13:48, Jeff Lucas jlu...@eagleinvsys.com wrote: I am running 3.8.2 which is installed under /apps/rt-3.8.2. According to http://wiki.bestpractical.com/view/SimpleSearchIncludeResolved, I created... # cat /apps/rt-3.8.2/local/html/Callbacks/stuff/Search/Simple.html/ModifyQuery %init #active is the default: open new stalled $$query =~ s/\bany\b/new open resolved stalled rejected deleted/i; #$$query =~ s/\bclosed\b/resolved rejected deleted/i; /%init %args $query = undef /%args Tested it but it did not work. Restarted httpd and still not working. Are you sure it didn't work? What this customization does is add the keyword any. So that searching for quux finds active tickets LIKE quux and quux any finds any ticket LIKE quux, regardless of status. This is a more powerful and targeted solution than reverting to an always return all states, but you can do that by appending the list of desired states to $$query, rather than doing the replace. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Simple Search functionality
I've tried and tried and tried and I cannot get it to work. Is stuff in the following path correct... /apps/rt-3.8.2/local/html/Callbacks/stuff/Search/Simple.html/ModifyQuery After restarting Apache... # cd /apps/rt-3.8.2 # find . -name \*imple\* ./share/html/NoAuth/RichText/FCKeditor/editor/plugins/simplecommands ./share/html/Elements/SimpleSearch ./share/html/Search/Simple.html ./local/html/Callbacks/stuff/Search/Simple.html Thanks. -Original Message- From: Jerrad Pierce [mailto:jpie...@cambridgeenergyalliance.org] Sent: Wednesday, May 27, 2009 3:13 PM To: Jeff Lucas Cc: Emmanuel Lacour; rt-users@lists.bestpractical.com Subject: Re: [rt-users] Simple Search functionality On Wed, May 27, 2009 at 13:48, Jeff Lucas jlu...@eagleinvsys.com wrote: I am running 3.8.2 which is installed under /apps/rt-3.8.2. According to http://wiki.bestpractical.com/view/SimpleSearchIncludeResolved, I created... # cat /apps/rt-3.8.2/local/html/Callbacks/stuff/Search/Simple.html/ModifyQuery %init #active is the default: open new stalled $$query =~ s/\bany\b/new open resolved stalled rejected deleted/i; #$$query =~ s/\bclosed\b/resolved rejected deleted/i; /%init %args $query = undef /%args Tested it but it did not work. Restarted httpd and still not working. Are you sure it didn't work? What this customization does is add the keyword any. So that searching for quux finds active tickets LIKE quux and quux any finds any ticket LIKE quux, regardless of status. This is a more powerful and targeted solution than reverting to an always return all states, but you can do that by appending the list of desired states to $$query, rather than doing the replace. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Simple Search functionality
Is stuff in the following path correct... /apps/rt-3.8.2/local/html/Callbacks/stuff/Search/Simple.html/ModifyQuery It should be, here's mine: (You can use any name you want for the folder between Callbacks and Search) [ceaad...@rt ~]$ cat /opt/rt3/local/html/Callbacks/Indirection/Search/Simple.html/ModifyQuery %init $$query =~ s/\bany\b/new open resolved stalled rejected deleted/i; $$query =~ s/\bclosed\b/resolved rejected deleted/i; /%init %args $query = undef /%args All I can say is check your server logs, Apache and RT/syslog. After restarting Apache... You don't need to restart it, a graceful HUP will do fine. -- Cambridge Energy Alliance: Save money. Save the planet. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] [Rt-announce] RT 3.8.3 Release
We are happy to announce that RT 3.8.3 is now available. You can download it from: http://download.bestpractical.com/pub/rt/release/rt-3.8.3.tar.gz http://download.bestpractical.com/pub/rt/release/rt-3.8.3.tar.gz.sig SHA1 sums 6fe0187408104e9a5a9f0832f1f11ed24b6df10a rt-3.8.3.tar.gz e87623b4a958b13d5ce1474ca6d8d4024fa13920 rt-3.8.3.tar.gz.sig A longer changelog is available at the bottom of this announcement. Some highlighted changes include: * Bug fixes for IE support with the RichText editor * Improvements in parsing and validating gpg-signed messages * Improved config loading, errors and improved messages about where Config overrides originated. * Fix for rewriting Ticket subjects when using Queue Subject tags * Fixes to searching for NULL Custom Fields * New User level config options for HomePage and Search Result Refresh * Multiple new callbacks * Updated Scrip descriptions to mention that a Notify All includes the Owner * Dashboard improvements, including the ability to nest Dashboards, new access links for dashboards, callbacks and a new Mon-Fri subscription Changelog for RT 3.8.3, generated 2009-05-27T19:42:52 FIXES AND CLEANUPS == * Indent cleanup. * doc updates for mysql upgrades from jmoseley * Tell explicitely that $DayBeforeMonth is only for parsing, not for displaying dates. * Remove blank Values since the magic field will take care of this. Sometimes the browser gives you a blank value which causes CFs to be processed twice Thanks to Philip Kime * better support situations when CF's LookupType is not complex, for example 'RT::Queue'. Thanks to Philip Kime and Emmanuel Lacour * Factor out a ShowParents template * Show the correct side of the link * RT/Config.pm minor pod changes delete empty functions * store extension name in META{Option}{Source}{Extension} instead of boolean value * Fix incorrect Queue-SetDisabled introduced in r17674. * Don't leave attachments in session after ProcessUpdateMessage to remove them from WebUI for next update. * Formatting cleanup (thanks to Richard Hartmann, closes: #12457) * Fix WebFallbackToInternalAuth (thanks to David Chandek-Stark, closes: #12478) * RT::Test sets ENV{RT_SITE_CONFIG} to a tempfile that doesn't look like SiteConfig.pm so we need to force _LoadConfig to treat it as a SiteConfig, otherwise it won't let you override DatabaseName or MailCommand and running tests will drop your real database. * use a little bit proper fix for site config thing * Reduce list of owners from SelectOwner in Search to queues the current user can see (or see tickets in). * Reduce the list of owners from SelectOwner in bulk update to queues where current user can create or modify tickets. * update ru.po reuse some loc strings that we have already * Revert commits that tried to fix the count of Owners displayed in Build.html/Bulk.html as it needs more discuss. * in RT we use [_1] instead of %1 * use WebPath when invoking the Autocompleter * upgrade scriptaculous from 1.8.0 to 1.8.2 upgrade prototype from 1.6.0 to 1.6.0.3 mainly bugfixes and browser compatibility nits * local modification to avoid browser jumping when you try to use the keyboard to move up and down in an autocompleted list * fix reporting by owner, created by and last updated by * tiny html fix: an extra /form in Dashboards/Queries.html * make words consistent in Install pages * handle mails with nested inline signatures in old-style gpg format * Correct test count for gnupg-reverification * Rename schema.mysql to schema.mysql-4.0 to avoid confusion without reading Handle.pm (closes: #12665) * Use friendly name for customfields in title of chart page (closes: #13144). * add tests for validator * schema.mysql was renamed * use RT-Config instead of direct option variable access * {Add,Del}Watcher references principals as a group can be added as watchers * fix checking and recovering CGMs * Grammar nit * RT-Ticket: 13047 Hide transaction custom fields from users who can't edit them * quiet test warnings * if you say JOIN you need to say ON or Pg will bail * RT-Ticket: 13174 There's a small typo in RT::Interface::Email that causes emails to be sent to the first To address only, ignoring the other recipients such as Cc. Requestors: eynat.nirmis...@algosec.com * When we open a div, we should close a div, not a span * Comboboxes weren't rendering properly on IE7. This appears to fix it * LoadByValues returns detailed message on errors * don't check right in GrantRight as ACE-Create does better job * Pg 8.3 requires explicit casting of date types to text for substring and other functions * Don't rewrite sub language name in preference if the variant is already enclosed by parenthesis. * post check only when we're not in install mode * localize $@ as we don't rethrow it * on some systems
[rt-users] Possible bug in ExtractCustomFieldValues 2.99_01
I have been using ExtractCustomFieldValues 2.99_01 for a few months now with RT 3.8.2 and it seemed to work well. Recently I added some new global custom fields and then applied them to a new queue and I've been getting errors unless I remove the new custom fields from the template when emails are parsed. [Wed May 27 19:26:51 2009] [debug]: Looking for CF Job Name (/usr/local/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/ RT/Action/ExtractCustomFieldValues.pm:105) [Wed May 27 19:26:51 2009] [error]: Scrip Commit 15 died. - Can't call method id on an undefined value at /usr/local/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/R T/Action/ExtractCustomFieldValues.pm line 119. Stack: [/usr/local/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/ RT/Action/ExtractCustomFieldValues.pm:119] [/usr/local/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/lib/ RT/Action/ExtractCustomFieldValues.pm:81] [/usr/local/rt3/bin/../lib/RT/ScripAction_Overlay.pm:238] [/usr/local/rt3/bin/../lib/RT/Scrip_Overlay.pm:464] [/usr/local/rt3/bin/../lib/RT/Scrips_Overlay.pm:196] [/usr/local/rt3/bin/../lib/RT/Transaction_Overlay.pm:188] [/usr/local/rt3/bin/../lib/RT/Record.pm:1456] [/usr/local/rt3/bin/../lib/RT/Ticket_Overlay.pm:648] [/usr/local/rt3/bin/../lib/RT/Interface/Email.pm:1357] [/usr/local/rt3/share/html/REST/1.0/NoAuth/mail-gateway:61] (/usr/local/rt3/bin/../lib/RT/Scrip_Overlay.pm:472) I believe it is because in this area of code it tries to see if a field pertains to a queue or not and makes the assumtion that if it is global it is in all queues or if it isn't global it is there. We have global custom fields that don't apply to all queues. 101 sub LoadCF { 102 my $self = shift; 103 my %args= @_; 104 my $CustomFieldName = $args{Name}; 105 $RT::Logger-debug( Looking for CF $CustomFieldName); 106 107 # We do this by hand instead of using LoadByNameAndQueue because 108 # that can find disabled queues 109 my $cfs = RT::CustomFields-new($RT::SystemUser); 110 $cfs-LimitToGlobalOrQueue($self-Queue); 111 $cfs-Limit( 112 FIELD = 'Name', 113 VALUE = $CustomFieldName, 114 CASESENSITIVE = 0 115 ); 116 $cfs-RowsPerPage(1); 117 118 my $cf = $cfs-First; 119 if ( $cf-id ) { 120 $RT::Logger-debug( Found CF id . $cf-id ); 121 } elsif ( not $args{Quiet} ) { 122 $RT::Logger-error( Couldn't load CF $CustomFieldName!); 123 } 124 125 return $cf; It would seem to me that the limit method isn't limiting enough? Meaning that it just checks if a custom field is global or not but doesn't seem to check if it is applied or not?? This is my first guess. Any ideas on a resolution? Thanks, -Tim ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Simple Search functionality
This was sent to the list a long time ago, my apologies for not remembering who sent it.(Espen Wiborg or Gordon maybe?)It works on 3.8.1. Not sure if it is what you are looking for or not though Index: lib/RT/Search/Googleish.pm === --- lib/RT/Search/Googleish.pm (revision 15777) +++ lib/RT/Search/Googleish.pm (working copy) @@ -162,7 +162,7 @@ push @tql_clauses, join( OR , sort @id_clauses ); push @tql_clauses, join( OR , sort @owner_clauses ); if ( ! @status_clauses ) { -push @tql_clauses, join( OR , map Status = '$_', RT::Queue-ActiveStatusArray()); +push @tql_clauses, join( OR , map Status = '$_', RT::Queue-ActiveStatusArray(), RT-Config- Get('ExtraStatesInSimpleSearch')); } else { push @tql_clauses, join( OR , sort @status_clauses ); } Index: etc/RT_Config.pm.in === --- etc/RT_Config.pm.in (revision 15777) +++ etc/RT_Config.pm.in (working copy) @@ -1117,6 +1117,15 @@ Set($DontSearchFileAttachments, undef); +=item C$ExtraStatesInSimpleSearch + +Tickets in these states are included in the results of a simple +search, along with any active tickets. + +=cut + +Set(@ExtraStatesInSimpleSearch, qw()); + =item C$ChartFont The LGD module (which RT uses for graphs) uses a builtin font that doesn't I don't remember who made this, but it is working for me... Then I put in RT_SiteConfig.pm Greg Evans gev...@hcc.net Hood Canal Communications (360) 898-2481 x212 On May 26, 2009, at 7:41 AM, Jeff Lucas wrote: Hello folks. I searched thru RT_Config.pm and the RT Wiki but could not find the answer… it appears that the Simple Search tool in RT only reports on unresolved tickets. Is that true? If so, can someone tell me how to adjust RT so that it reports on ALL tickets containing the keyword in the ticket subject regardless of status? Thanks. -Jeff ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Possible bug in ExtractCustomFieldValues 2.99_01
On May 27, 2009, at 4:47 PM, Flynn, Timothy J wrote: I have been using ExtractCustomFieldValues 2.99_01 for a few months now with RT 3.8.2 and it seemed to work well. Recently I added some new global custom fields and then applied them to a new queue and I've been getting errors unless I remove the new custom fields from the template when emails are parsed. I think you want: http://svn.bestpractical.com/cgi-bin/index.cgi/bps/revision/?rev=19391 2.99_01 is a developer release, sounds like there needs to be a 2.99_02 -kevin [Wed May 27 19:26:51 2009] [debug]: Looking for CF Job Name (/usr/local/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/ lib/ RT/Action/ExtractCustomFieldValues.pm:105) [Wed May 27 19:26:51 2009] [error]: Scrip Commit 15 died. - Can't call method id on an undefined value at /usr/local/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/ lib/R T/Action/ExtractCustomFieldValues.pm line 119. Stack: [/usr/local/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/ lib/ RT/Action/ExtractCustomFieldValues.pm:119] [/usr/local/rt3/local/plugins/RT-Extension-ExtractCustomFieldValues/ lib/ RT/Action/ExtractCustomFieldValues.pm:81] [/usr/local/rt3/bin/../lib/RT/ScripAction_Overlay.pm:238] [/usr/local/rt3/bin/../lib/RT/Scrip_Overlay.pm:464] [/usr/local/rt3/bin/../lib/RT/Scrips_Overlay.pm:196] [/usr/local/rt3/bin/../lib/RT/Transaction_Overlay.pm:188] [/usr/local/rt3/bin/../lib/RT/Record.pm:1456] [/usr/local/rt3/bin/../lib/RT/Ticket_Overlay.pm:648] [/usr/local/rt3/bin/../lib/RT/Interface/Email.pm:1357] [/usr/local/rt3/share/html/REST/1.0/NoAuth/mail-gateway:61] (/usr/local/rt3/bin/../lib/RT/Scrip_Overlay.pm:472) I believe it is because in this area of code it tries to see if a field pertains to a queue or not and makes the assumtion that if it is global it is in all queues or if it isn't global it is there. We have global custom fields that don't apply to all queues. 101 sub LoadCF { 102 my $self = shift; 103 my %args= @_; 104 my $CustomFieldName = $args{Name}; 105 $RT::Logger-debug( Looking for CF $CustomFieldName); 106 107 # We do this by hand instead of using LoadByNameAndQueue because 108 # that can find disabled queues 109 my $cfs = RT::CustomFields-new($RT::SystemUser); 110 $cfs-LimitToGlobalOrQueue($self-Queue); 111 $cfs-Limit( 112 FIELD = 'Name', 113 VALUE = $CustomFieldName, 114 CASESENSITIVE = 0 115 ); 116 $cfs-RowsPerPage(1); 117 118 my $cf = $cfs-First; 119 if ( $cf-id ) { 120 $RT::Logger-debug( Found CF id . $cf-id ); 121 } elsif ( not $args{Quiet} ) { 122 $RT::Logger-error( Couldn't load CF $CustomFieldName!); 123 } 124 125 return $cf; It would seem to me that the limit method isn't limiting enough? Meaning that it just checks if a custom field is global or not but doesn't seem to check if it is applied or not?? This is my first guess. Any ideas on a resolution? Thanks, -Tim ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com