Skip Menu |
 

This queue is for tickets about the RT-Extension-CommandByMail CPAN distribution.

Report information
The Basics
Id: 106069
Status: new
Priority: 0/
Queue: RT-Extension-CommandByMail

People
Owner: Nobody in particular
Requestors: jjahns [...] vmware.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, score=-6.909 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
X-Spam-Flag: NO
X-Virus-Checked: Checked
Content-Language: en-US
Content-Type: multipart/alternative; boundary="_000_f0da60535b6a4c208f8e7778975b888dEX13MBX013vmwarecom_"
Message-ID: <f0da60535b6a4c208f8e7778975b888d [...] EX13-MBX-013.vmware.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-MS-Tnef-Correlator:
X-Spam-Score: -6.909
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 9F3622405C4 for <cpan-bug+RT-Extension-CommandByMail [...] hipster.bestpractical.com>; Fri, 24 Jul 2015 17:52:42 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ofgVvEkX59fP for <cpan-bug+RT-Extension-CommandByMail [...] hipster.bestpractical.com>; Fri, 24 Jul 2015 17:52:41 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 79B8F24034B for <bug-RT-Extension-CommandByMail [...] rt.cpan.org>; Fri, 24 Jul 2015 17:52:40 -0400 (EDT)
Received: (qmail 25581 invoked by alias); 24 Jul 2015 21:52:39 -0000
Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (208.91.2.13) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 24 Jul 2015 14:52:36 -0700
Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 0A8212879A for <bug-RT-Extension-CommandByMail [...] rt.cpan.org>; Fri, 24 Jul 2015 14:52:23 -0700 (PDT)
Received: from EX13-CAS-006.vmware.com (EX13-CAS-006.vmware.com [10.113.191.56]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id EBE9CB01FB for <bug-RT-Extension-CommandByMail [...] rt.cpan.org>; Fri, 24 Jul 2015 14:52:23 -0700 (PDT)
Received: from EX13-MBX-013.vmware.com (10.113.191.33) by EX13-MBX-030.vmware.com (10.113.191.50) with Microsoft SMTP Server (TLS) id 15.0.913.22; Fri, 24 Jul 2015 14:52:17 -0700
Received: from EX13-MBX-013.vmware.com ([fe80::b82b:d0bb:9cd7:392e]) by EX13-MBX-013.vmware.com ([fe80::b82b:d0bb:9cd7:392e%15]) with mapi id 15.00.0913.011; Fri, 24 Jul 2015 14:52:00 -0700
Delivered-To: cpan-bug+RT-Extension-CommandByMail [...] hipster.bestpractical.com
Subject: Issue Setting Owner Via Email
Return-Path: <jjahns [...] vmware.com>
X-RT-Mail-Extension: rt-extension-commandbymail
X-Original-To: cpan-bug+RT-Extension-CommandByMail [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Thread-Index: AQHQxlrcrnhaDwDAZkO+jW71LN/41A==
Date: Fri, 24 Jul 2015 21:51:59 +0000
X-Spam-Level:
X-MS-Has-Attach:
Thread-Topic: Issue Setting Owner Via Email
X-Originating-Ip: [10.113.160.246]
Accept-Language: en-US
To: "bug-RT-Extension-CommandByMail [...] rt.cpan.org" <bug-RT-Extension-CommandByMail [...] rt.cpan.org>
From: Jay Jahns <jjahns [...] vmware.com>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 1088
Running version RT 4.2.11 Plugin version is 1.00 Issue is when trying to set owner of a newly created ticket that nobody owns. Getting the following errors: [12516] [Fri Jul 24 21:42:38 2015] [warning]: Failed command '?owner: jjahns' Error message: Command '?owner' is unknown (/opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Interface/Email/Filter/TakeAction.pm:756) [12516] [Fri Jul 24 21:42:38 2015] [crit]: Extended mailgate error: Failed command '?owner: jjahns' Error message: Command '?owner' is unknown (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:245) rt-mailgate returns the following: Failed command '?owner: jjahns' Error message: Command '?owner' is unknown? I have been looking at the TakeAction.pm file to find out why this is the case. We are simply specifying Owner and the username as defined in RT. The user is authorized to take ownership of the ticket and there are no issues like this in the UI, so its definitely the plugin from what I can tell. Thanks for all your hard work, and thank you for making a fantastic product/extension.
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 8459
MIME-Version: 1.0
X-Spam-Status: No, score=-8.909 tagged_above=-99.9 required=10 tests=[AWL=2.001, BAYES_00=-1.9, FROM_OUR_RT=-4, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
In-Reply-To: <rt-4.0.18-19186-1437774763-427.106069-3-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-106069 [...] rt.cpan.org> <f0da60535b6a4c208f8e7778975b888d [...] EX13-MBX-013.vmware.com>,<rt-4.0.18-19186-1437774763-427.106069-3-0 [...] rt.cpan.org>
Content-Language: en-US
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <658a4cbe30f645c3bcdd8a4a9031e801 [...] EX13-MBX-013.vmware.com>
content-type: text/plain; charset="utf-8"
X-MS-Tnef-Correlator:
X-RT-Original-Encoding: utf-8
X-Spam-Score: -8.909
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 265B0240327 for <cpan-bug+RT-Extension-CommandByMail [...] hipster.bestpractical.com>; Mon, 27 Jul 2015 00:17:14 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qwBJrJsWUbsT for <cpan-bug+RT-Extension-CommandByMail [...] hipster.bestpractical.com>; Mon, 27 Jul 2015 00:17:13 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id AD80C2400AB for <bug-RT-Extension-CommandByMail [...] rt.cpan.org>; Mon, 27 Jul 2015 00:17:12 -0400 (EDT)
Received: (qmail 31016 invoked by alias); 27 Jul 2015 04:17:10 -0000
Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (208.91.2.13) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sun, 26 Jul 2015 21:17:08 -0700
Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 26F2728174 for <bug-RT-Extension-CommandByMail [...] rt.cpan.org>; Sun, 26 Jul 2015 21:17:04 -0700 (PDT)
Received: from EX13-CAS-007.vmware.com (EX13-CAS-007.vmware.com [10.113.191.57]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 34AAC18472 for <bug-RT-Extension-CommandByMail [...] rt.cpan.org>; Sun, 26 Jul 2015 21:17:05 -0700 (PDT)
Received: from EX13-MBX-013.vmware.com (10.113.191.33) by EX13-MBX-012.vmware.com (10.113.191.32) with Microsoft SMTP Server (TLS) id 15.0.913.22; Sun, 26 Jul 2015 21:16:47 -0700
Received: from EX13-MBX-013.vmware.com ([fe80::b82b:d0bb:9cd7:392e]) by EX13-MBX-013.vmware.com ([fe80::b82b:d0bb:9cd7:392e%15]) with mapi id 15.00.0913.011; Sun, 26 Jul 2015 21:16:47 -0700
Delivered-To: cpan-bug+RT-Extension-CommandByMail [...] hipster.bestpractical.com
Subject: RE: [rt.cpan.org #106069] Issue Setting Owner Via Email
Return-Path: <jjahns [...] vmware.com>
Thread-Index: AQHQyCJ1qVvcyWCj4Um2QSS5bkceFQ==
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+RT-Extension-CommandByMail [...] hipster.bestpractical.com
X-RT-Mail-Extension: rt-extension-commandbymail
Date: Mon, 27 Jul 2015 04:16:46 +0000
X-Spam-Level:
Thread-Topic: [rt.cpan.org #106069] Issue Setting Owner Via Email
X-MS-Has-Attach:
X-Originating-Ip: [10.113.160.246]
To: "bug-RT-Extension-CommandByMail [...] rt.cpan.org" <bug-RT-Extension-CommandByMail [...] rt.cpan.org>
Accept-Language: en-US
Content-Transfer-Encoding: quoted-printable
From: Jay Jahns <jjahns [...] vmware.com>
RT-Message-ID: <rt-4.0.18-9709-1437970634-220.106069-0-0 [...] rt.cpan.org>
Content-Length: 1524
Download (untitled) / with headers
text/plain 1.4k
So according to the TakeAction.pm, the value is located in the REGULAR_ATTRIBUTES: our @REGULAR_ATTRIBUTES = qw(Queue Owner Subject Status Priority FinalPriority); However, it appears that it fails at this section of code: foreach my $cmd ( keys %cmds ) { my ($val, $msg) = _CheckCommand( $cmd ); unless ( $val ) { $results{ $cmd } = { value => delete $cmds{ $cmd }, result => $val, message => $msg, }; } } The _CheckCommand function is as defined here: sub _CheckCommand { my ($cmd, $val) = (lc shift, shift); return 1 if $cmd =~ /^(add|del|)customfield{.*}$/i; return 1 if $cmd =~ /^transactioncustomfield{.*}$/i; if ( grep $cmd eq lc $_, @REGULAR_ATTRIBUTES, @TIME_ATTRIBUTES, @DATE_ATTRIBUTES ) { return 1 unless ref $val; return (0, "Command '$cmd' doesn't support multiple values"); } return 1 if grep $cmd eq lc $_, @LINK_ATTRIBUTES, @WATCHER_ATTRIBUTES; if ( $cmd =~ /^(?:add|del)(.*)$/i ) { my $cmd = $1; if ( grep $cmd eq lc $_, @REGULAR_ATTRIBUTES, @TIME_ATTRIBUTES, @DATE_ATTRIBUTES ) { return (0, "Command '$cmd' doesn't support multiple values"); } return 1 if grep $cmd eq lc $_, @LINK_ATTRIBUTES, @WATCHER_ATTRIBUTES; } return (0, "Command '$cmd' is unknown"); } I'm not sure yet on what the problem is, but I'm currently testing the removal of this check to see if that allows us to set the owner.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.