Re: [rt-users] Tests

2012-03-29 Thread Tim Cutts

On 28 Mar 2012, at 22:56, Paul Tomblin 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 mode on?  It doesn't really matter 
for a unit test, and RT is known not to work under taint mode anyway.

Tim

--
 The Wellcome Trust Sanger Institute is operated by Genome Research
 Limited, a charity registered in England with number 1021457 and a
 company registered in England with number 2742969, whose registered
 office is 215 Euston Road, London, NW1 2BE.


[rt-users] chart link with double slash in dashboard

2012-03-29 Thread Givano
Hi,

when I open a saved chart over dashboard the edit menu Edit Search
Advanced Show Results... is not showing up. After comparing with
saved searches view I've noticed that the link in Dashboard to this
chart have a second slash between hostname and Search - looking like
following:

https://rt.company.com//Search/Chart.html?ChartStyle=barFormat=PrimaryGroupBy=Owner.RealNameQuery=Queue%20%3D%20'COMPANY%3A%3ACIT%3A%3AInfrastructure'%20AND%20(%20%20Status%20%3D%20'resolved'%20)%20AND%20Resolved%20%3E%20'7%20days%20ago'SavedSearchId=RT%3A%3AGroup-8498-SavedSearch-88160SearchType=Chart

When I manually remove the second slash the edit menu appears again.
The link is builded wrongly only for charts, normal saved searches
don't have this second slash. I checked my config files, also tried rt
4.0.5 - with same result.

It looks like a bug in RT for me but maybe it's something wrong with
my config. Anyone can confirm this problem as well?

Thanks in advance,

Ivan


Re: [rt-users] no response after login

2012-03-29 Thread ahmad shaban
I have reconfigured the virtual host to use only mod_perl ...I changed the 
owner of  noauth folder , delete mason cache, restart the service, changed the 
own of mason cache to be owned be www..restart the service..I logged ..but 
still the problem..




 From: Joe Harris drey...@gmail.com
To: ahmad shaban eng_ahmadsha...@yahoo.com 
Cc: rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com 
Sent: Thursday, March 29, 2012 12:54 AM
Subject: 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 eng_ahmadsha...@yahoo.com 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
 
VirtualHost *:80
    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/
    Location /NoAuth/images
    SetHandler
default
    /Location
    Location /
Order allow,deny
Allow from all
 
AddDefaultCharset UTF-8
 
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server
/Location
Perl
use Plack::Handler::Apache2;
Plack::Handler::Apache2-preload(/opt/rt4/sbin/rt-server);
/Perl
/VirtualHost
 
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

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 mode on?  It doesn't
 really matter for a unit test, and RT is known not to work under taint mode
 anyway.


Ah yes, that cracked it.  I'm also going to try switching from Test:More to
RT:Test after I recover from my surgery.  Thanks.



-- 
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin


[rt-users] REST + user without e-mail address = no requestor

2012-03-29 Thread Arthur Rance

Hello,
Is it possible to create a ticket through REST with a user which has no e-mail 
address ?
This doesn't work :
#!/usr/bin/env perl
use strict;
use RT::Client::REST;
my $rt = RT::Client::REST-new( server = 'http://myrtserver' 
);$rt-login(username = 'user', password = 'password' );
$rt-create(  type = 'ticket',  set =  {requestor = 'rt_user', # user 
with no e-mail addressqueue = 'test',subject = 'test'  },  text = '1 
2 1 2 this is a test');
# the ticket is created without any requestor...
  

Re: [rt-users] REST + user without e-mail address = no requestor

2012-03-29 Thread Ruslan Zakirov
Try id instead of name, but I wouldn't be surprised if it doesn't work.

Ruslan from phone.
29.03.2012 13:54 пользователь Arthur Rance arthur_ra...@hotmail.com
написал:

  Hello,

 Is it possible to create a ticket through REST with a user which has no
 e-mail address ?

 This doesn't work :

 #!/usr/bin/env perl

 use strict;

 use RT::Client::REST;

 my $rt = RT::Client::REST-new( server = 'http://myrtserver' );
 $rt-login(username = 'user', password = 'password' );

 $rt-create
 (
   type = 'ticket',
   set =
   {
 requestor = 'rt_user', # user with no e-mail address
 queue = 'test',
 subject = 'test'
   },
   text = '1 2 1 2 this is a test'
 );

 # the ticket is created without any requestor...




[rt-users] Correspondence and Resolved

2012-03-29 Thread Giuseppe Sollazzo

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi there,
we have templates for Correspondence and Resolved, as I guess most
people around here.

The Correspondence template is activated whenever there is a message
sent, whereas the Resolved is sent when the status is changed to
Resolved.

If I resolve a ticket by adding a message (and selecting Reply to the
user rather than commenting), both templates are triggered, so the
user receives a first message with the reply, and a second message
with the Job closed message.

The question is: is there any way to intercept this situation and send
just one message?

Thanks,
Giuseppe

- -- 


Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George's, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsoll...@sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPdFmsAAoJEAqigArPBfJXPloIAJg80dTkyfKy2yb6AfelQwYn
ae+zcOxEyUuClofqAu+68Jl4BRNlGOP01xVCwEHrkoAugerjAtikh4736UCYxz6g
/6sdieggO+Vx+qu5fYJ0Hk0FqzesRpnRWc3qSiizlsVIGB3Yf0fC3U1HMgRK50I+
xoW2MINwSsn4cC8//+ZyO1UW7BqeDs2v7ByrXkDBmGOKrLvB8w9004zJI1cGkRuV
ZVInnx/dQowTIrzfnVzFnX/rjbzyff0uG0D8qin1Q+vQiZSHr6t+Et+8Wx0Kcjf+
o5pDdA11AldC4pJksEUI6IfqSB+T4WUp9gXeWLzuwPTMG2ZoV/UgK4tHqTWlJSc=
=Ct+k
-END PGP SIGNATURE-



Re: [rt-users] chart link with double slash in dashboard

2012-03-29 Thread Thomas Sibley
On 03/29/2012 05:12 AM, Givano wrote:
 It looks like a bug in RT for me but maybe it's something wrong with
 my config. Anyone can confirm this problem as well?

Send your RT_SiteConfig.pm and apache conf otherwise we can't know if
it's a config problem.


Re: [rt-users] Correspondence and Resolved

2012-03-29 Thread Ruslan Zakirov
Yes. With transaction batch staged scrip. You can find an example on the
wiki.

Ruslan from phone.
29.03.2012 16:46 пользователь Giuseppe Sollazzo gsoll...@sgul.ac.uk
написал:


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi there,
 we have templates for Correspondence and Resolved, as I guess most
 people around here.

 The Correspondence template is activated whenever there is a message
 sent, whereas the Resolved is sent when the status is changed to
 Resolved.

 If I resolve a ticket by adding a message (and selecting Reply to the
 user rather than commenting), both templates are triggered, so the
 user receives a first message with the reply, and a second message
 with the Job closed message.

 The question is: is there any way to intercept this situation and send
 just one message?

 Thanks,
 Giuseppe

 - --
 

 Giuseppe Sollazzo
 Senior Systems Analyst
 Computing Services
 Information Services
 St. George's, University Of London
 Cranmer Terrace
 London SW17 0RE

 Email: gsoll...@sgul.ac.uk
 Direct Dial: +44 20 8725 5160
 Fax: +44 20 8725 3583

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iQEcBAEBAgAGBQJPdFmsAAoJEAqigArPBfJXPloIAJg80dTkyfKy2yb6AfelQwYn
 ae+zcOxEyUuClofqAu+68Jl4BRNlGOP01xVCwEHrkoAugerjAtikh4736UCYxz6g
 /6sdieggO+Vx+qu5fYJ0Hk0FqzesRpnRWc3qSiizlsVIGB3Yf0fC3U1HMgRK50I+
 xoW2MINwSsn4cC8//+ZyO1UW7BqeDs2v7ByrXkDBmGOKrLvB8w9004zJI1cGkRuV
 ZVInnx/dQowTIrzfnVzFnX/rjbzyff0uG0D8qin1Q+vQiZSHr6t+Et+8Wx0Kcjf+
 o5pDdA11AldC4pJksEUI6IfqSB+T4WUp9gXeWLzuwPTMG2ZoV/UgK4tHqTWlJSc=
 =Ct+k
 -END PGP SIGNATURE-




[rt-users] logo change

2012-03-29 Thread Arun ragini
Hi All,

I'm trying to change the logo through /Admin/Tools/Theme.html ,
but when I click upload just waits and waits the clears the upload and
stops.

Any idea what;s happening. I'm not running under any webserver running
the RT through RT Server on port 

Thanks for your time
Arun

-- 
www.opensourcer.net


Re: [rt-users] chart link with double slash in dashboard

2012-03-29 Thread Givano
Here are the config files, as I said it happens only in the collection
of charts in a dashboard, if I load a chart directly the edit bar is
appearing normally in both 4.0.2 and 4.0.5. What I also found out that
if I do a quicksearch in RT 4.0.2 I don't get the edit bar, in RT
4.0.5 it shows up.

2012/3/29 Thomas Sibley t...@bestpractical.com:
 On 03/29/2012 05:12 AM, Givano wrote:
 It looks like a bug in RT for me but maybe it's something wrong with
 my config. Anyone can confirm this problem as well?

 Send your RT_SiteConfig.pm and apache conf otherwise we can't know if
 it's a config problem.
VirtualHost *:80

   AddDefaultCharset UTF-8
   PerlSetEnv RT_SITE_CONFIG /etc/request-tracker4/RT_SiteConfig.pm

   ServerAdmin r...@company.com

   Redirect / https://rt.company.com/

   DocumentRoot /usr/share/request-tracker4/html

   Directory /usr/share/request-tracker4/html
  Order allow,deny
  Allow from all

  SetHandler modperl
  PerlResponseHandler Plack::Handler::Apache2
  PerlSetVar psgi_app /usr/share/request-tracker4/libexec/rt-server
   /Directory

   # Limit mail gateway access to localhost by default
   Location /REST/1.0/NoAuth
  Order Allow,Deny
  Allow from 127.0.0.1
  Allow from 10.128.19.177
  Allow from 10.1.128.56
   /Location

   Perl
 use Plack::Handler::Apache2;
 
Plack::Handler::Apache2-preload(/usr/share/request-tracker4/libexec/rt-server);
   /Perl

/VirtualHost


RT_SiteConfig.pm
Description: Binary data
VirtualHost *:443

   ServerName rt.company.com
   ServerAlias srv-vie-rt4.vie.company.com
   ServerAdmin r...@company.com

   AddDefaultCharset UTF-8
   PerlSetEnv RT_SITE_CONFIG /etc/request-tracker4/RT_SiteConfig.pm

   ServerAdmin r...@company.com

   DocumentRoot /usr/share/request-tracker4/html

   Directory /usr/share/request-tracker4/html
  Order allow,deny
  Allow from all

  SetHandler modperl
  PerlResponseHandler Plack::Handler::Apache2
  PerlSetVar psgi_app /usr/share/request-tracker4/libexec/rt-server
   /Directory

   # Limit mail gateway access to localhost by default
   Location /REST/1.0/NoAuth
  Order Allow,Deny
  Allow from 127.0.0.1
  Allow from 10.128.19.177
  Allow from 10.1.128.56
   /Location

   Perl
 use Plack::Handler::Apache2;
 
Plack::Handler::Apache2-preload(/usr/share/request-tracker4/libexec/rt-server);
   /Perl


   ErrorLog /var/log/apache2/error.log
   LogLevel warn

   CustomLog /var/log/apache2/ssl_access.log combined

   SSLEngine on

   SSLCertificateFile/etc/apache2/ssl/rt.company.com_crt.pem
   SSLCertificateKeyFile /etc/apache2/ssl/rt.company.com_key.pem

   SSLCACertificateFile /etc/ssl/mm/MMWebSvc_combined_crt.pem

   FilesMatch \.(cgi|shtml|phtml|php)$
  SSLOptions +StdEnvVars
   /FilesMatch
   Directory /usr/lib/cgi-bin
  SSLOptions +StdEnvVars
   /Directory

   BrowserMatch .*MSIE.* \
  nokeepalive ssl-unclean-shutdown \
  downgrade-1.0 force-response-1.0

/VirtualHost


Re: [rt-users] Correspondence and Resolved

2012-03-29 Thread Giuseppe Sollazzo

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ah, that's exactly what I was after!
Many thanks,
Giuseppe

On 29/03/12 15:38, Ruslan Zakirov wrote:

 Yes. With transaction batch staged scrip. You can find an example
 on the wiki.

 Ruslan from phone.

 29.03.2012 16:46 пользователь Giuseppe Sollazzo
 gsoll...@sgul.ac.uk mailto:gsoll...@sgul.ac.uk написал:


 Hi there, we have templates for Correspondence and Resolved, as I
 guess most people around here.

 The Correspondence template is activated whenever there is a
 message sent, whereas the Resolved is sent when the status is
 changed to Resolved.

 If I resolve a ticket by adding a message (and selecting Reply to
 the user rather than commenting), both templates are triggered, so
 the user receives a first message with the reply, and a second
 message with the Job closed message.

 The question is: is there any way to intercept this situation and
 send just one message?

 Thanks, Giuseppe


- -- 


Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George's, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsoll...@sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPdIaOAAoJEAqigArPBfJXA/MH/RvEXlkQQ5tJUyystaXXwyT6
dh5s5O4Zv4JAz6tX42h9fCKb83rgHmZAobK/3O/9yQ/n7NL5j92Krg2Porfp06XP
GieWkRysrwWkm6gqiNifzdAVcR7r9LkEx4HAu0okDPu5Fy6GoX9U4GJ/jGJs6Bp7
GhXAF8r5RGUS75MCWO9Y+SvXIpGOFvLJHXDIYAo0du1D6XEmKdUXiH60yxeg0HcX
a+oFZHDHrkxEFKucQ/Gbx6a2iUwoarFyYAih+SG8c0F4TWlj6jYSvjilQaj50TNZ
pouh7Sm7+5/exMvbzxQ3j2wJbNg9ja8i+z+K5o6sBAKBhp6kb/j6BDJnkzRCoZI=
=Igoc
-END PGP SIGNATURE-



[rt-users] FW: logo change

2012-03-29 Thread Brent Wiese
 I'm trying to change the logo through /Admin/Tools/Theme.html , but
 when I click upload just waits and waits the clears the upload and
 stops.

The most reliable way I've found is to overwrite bpslogo.png at 
/opt/rt4/share/html/NoAuth/images

I'd suggest keeping a copy around of your logo as upgrades will likely 
overwrite your change.

I haven't tried putting it in the local folders to avoid that overwrite 
problem. Might be worth trying... You'll likely have to create some of the path 
yourself:

/opt/rt4/local/html/NoAuth/images/bpslogo.png


Re: [rt-users] logo change

2012-03-29 Thread Kevin Falcone
On Thu, Mar 29, 2012 at 08:28:03PM +0530, Arun ragini wrote:
 I'm trying to change the logo through /Admin/Tools/Theme.html ,
 but when I click upload just waits and waits the clears the upload and
 stops.
 
 Any idea what;s happening. I'm not running under any webserver running
 the RT through RT Server on port 

You don't say what database you're using, there was a bug with large
logo files and MySQL that will be resolved when we release 4.0.6.  You
may be fine just using a smaller version of your logo for now, or you
may need to apply the database upgrade.

-kevin


pgp67lUYHVIwp.pgp
Description: PGP signature


Re: [rt-users] logo change

2012-03-29 Thread Arun ragini
I resolved the issue by copy the image file to
/opt/rt4/local/html/NoAuth/images/bpslogo.png

the image file is less than 1 MB (don't know if that is a database problem).

Thanks every one for helping me .

-Arun

On Thu, Mar 29, 2012 at 11:19 PM, Kevin Falcone
falc...@bestpractical.com wrote:
 On Thu, Mar 29, 2012 at 08:28:03PM +0530, Arun ragini wrote:
 I'm trying to change the logo through /Admin/Tools/Theme.html ,
 but when I click upload just waits and waits the clears the upload and
 stops.

 Any idea what;s happening. I'm not running under any webserver running
 the RT through RT Server on port 

 You don't say what database you're using, there was a bug with large
 logo files and MySQL that will be resolved when we release 4.0.6.  You
 may be fine just using a smaller version of your logo for now, or you
 may need to apply the database upgrade.

 -kevin



-- 
www.opensourcer.net


[rt-users] Assign permissions massively

2012-03-29 Thread Juanjo
Hello Again.

In my RT migration (3.6.5 to 4.0.5) i lost some users rights.

The users can´t create new tickets or reply to its.

I need to grant all useres permission to open tickets, reply to its and
Peremit Outgoing mail.

How can i do it?

Regards and thanks.

-- 
Un saludo.
Juanjo Corral


Re: [rt-users] Assign permissions massively

2012-03-29 Thread Thomas Sibley
On 03/29/2012 08:58 PM, Juanjo wrote:
 In my RT migration (3.6.5 to 4.0.5) i lost some users rights.
 
 The users can´t create new tickets or reply to its.

A standard RT migration will preserve all rights.  Can you expand on
what you mean by lost?