[rt-users] Can't call method "HasMemberRecursively" on an undefined value when promoting user to privileged

2008-08-30 Thread Nathaniel Griswold
Hi,

I'm running an rt-3.8.0 instance (upgraded from rt-3.4.4). I have a
problem with granting unprivileged users rights.

When i try to "Let this user be granted rights" in the "Access
Control" panel of the user modification page i get the following error
in my browser:
---
Can't call method "HasMemberRecursively" on an undefined value at
/bin/../lib/RT/CachedGroupMember_Overlay.pm line 221,  line
1662.
---

And the end of my apache error_log looks like this:
---
[Sat Aug 30 19:22:48 2008] [warning]: Use of uninitialized value in
string eq at /p/condor/software/rt-3.8.0/bin/../l
ib/RT/Principal_Overlay.pm line 98.
(/p/condor/software/rt-3.8.0/bin/../lib/RT/Principal_Overlay.pm:98)
[Sat Aug 30 19:22:48 2008] [warning]: Use of uninitialized value in
concatenation (.) or string at /p/condor/software
/rt-3.8.0/bin/../lib/RT/Principal_Overlay.pm line 127.
(/p/condor/software/rt-3.8.0/bin/../lib/RT/Principal_Overlay.p
m:127)
[Sat Aug 30 19:22:48 2008] [crit]: Found a principal () that was
neither a user nor a group (/p/condor/software/rt-3.
8.0/bin/../lib/RT/Principal_Overlay.pm:127)
[Sat Aug 30 19:22:48 2008] [crit]: Transaction not committed. Usually
indicates a software fault.Data loss may have o
ccurred (/p/condor/software/rt-3.8.0/bin/../lib/RT/Interface/Web/Handler.pm:198)
--- end apache error_log


Does anyone have any ideas as to what might be causing this? I've
searched around but no one else seems to have had the problem. The
same thing happened when i tested it in rt-3.8.1rc5. I've not yet
tried rt-3.8.1

Thanks
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Template Variables - Not In FromAddress?!?

2008-08-30 Thread Kevin Falcone

On Aug 28, 2008, at 1:13 PM, Paul Broadwith wrote:

> Hi,
>
> I’m using the template from the second message in this thread 
> http://www.gossamer-threads.com/lists/rt/users/74122 
> . While the problem I’m having is not this template in general  
> (otherwise I’d contact the author), I have a question about the  
> variables in FromAddress.
>
> The original code is this:
>
> my $FromAddress = 'RT Requests ';
> my $ContactAddress = 'real.person[at]myorg.org';
>
> Now I’ve modified it to:
>
> my $FromAddress = 'RT Requests <$RT::CorrespondAddress>';

Perl doesn't interpolate variables in single quotes, only in double  
quotes.  Single quotes indicates
'this is a static string'.

my $FromAddress = "RT Requests <$RT::CorrespondAddress>";

Please note, if you're setting Correspond Addresses on any of your  
Queues, this may not be the
correct logic

-kevin

> my $ContactAddress = $RT::CorrespondAddress;
>
> The $ContactAddress works fine and comes out to the correct address  
> (as this is used in the message body later on), however the  
> FromAddress is show as $RT::[EMAIL PROTECTED] (where  
> MYHOSTNAME is the hostname of the server it’s running on). I can’t  
> understand why this is.
>
> I’ve tried moving the < and > around the address so that it has  
> spaces there in case that caused it. I’ve even modified the code so  
> that it is:
>
> my $ContactAddress = $RT::CorrespondAddress;
> my $FromAddress = 'RT Requests < $ContactAddress >';
>
> And the problem is still there. Can anybody help?
>
> One other amendment I was wanting to make was to change the  
> FromAddress so that it reads:
>
> my $FromAddress = ‘$Ticket->QueueObj->Description < $ContactAddress  
> >';
>
> Which is what the AutoReply template uses when responding. Again  
> this doesn’t work and I removed it from the code so that it doesn’t  
> complicate things, however anybody help with this too?
>
> Many thanks in advance.
>
> Kind regards,
>
> Paul Broadwith
> {Blue Ivy Ltd - ICT For Small Businesses}
>
> ___
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: [EMAIL PROTECTED]
>
>
> 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: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] rt and sendmail problem

2008-08-30 Thread Bartosz Komander
Hey,

I have tried to find any answer to my problem in mailinglist archive, but 
without success...

My problem is, I want to install RT Tickets on the "www" machine. I don't want 
to have there any MTA or such things... Fetching mails from external mail 
server works perfectly, without problems. But sending mail doesn't work at 
all.

Is there any solution? How can I configure RT to connect to remote smtp 
server, authorize and send an e-mail?

Thank you in advance,

Best regards,

CoMeC 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Template Variables - Not In FromAddress?!?

2008-08-30 Thread Paul Broadwith
Hi,

 

I'm using the template from the second message in this thread
http://www.gossamer-threads.com/lists/rt/users/74122. While the problem
I'm having is not this template in general (otherwise I'd contact the
author), I have a question about the variables in FromAddress.

 

The original code is this:

 

my $FromAddress = 'RT Requests '; 
my $ContactAddress = 'real.person[at]myorg.org';

 

Now I've modified it to:

 

my $FromAddress = 'RT Requests <$RT::CorrespondAddress>';

my $ContactAddress = $RT::CorrespondAddress;

 

The $ContactAddress works fine and comes out to the correct address (as
this is used in the message body later on), however the FromAddress is
show as $RT::[EMAIL PROTECTED] (where MYHOSTNAME is the
hostname of the server it's running on). I can't understand why this is.

 

I've tried moving the < and > around the address so that it has spaces
there in case that caused it. I've even modified the code so that it is:

 

my $ContactAddress = $RT::CorrespondAddress;

my $FromAddress = 'RT Requests < $ContactAddress >';

 

And the problem is still there. Can anybody help?

 

One other amendment I was wanting to make was to change the FromAddress
so that it reads:

 

my $FromAddress = '$Ticket->QueueObj->Description < $ContactAddress >';

 

Which is what the AutoReply template uses when responding. Again this
doesn't work and I removed it from the code so that it doesn't
complicate things, however anybody help with this too?

 

Many thanks in advance.

 

Kind regards,

 

Paul Broadwith

{Blue Ivy Ltd - ICT For Small Businesses}

 

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] ExtractSubjectTag scrip missing on upgrade from rt-3.4.4

2008-08-30 Thread Kevin Falcone

On Aug 29, 2008, at 2:21 PM, Nathaniel Griswold wrote:

> It seems that between rt-3.4.4 and rt-3.8.0, the ExtractSubjectTag
> addon was integrated. It also seems that the global scrip for 'On
> Transaction' 'Extract Subject Tag' now exists in etc/initialdata.
> However, on my upgraded system, the scrip does not seem to be there
> and tags are not being extracted. This particular scrip does not seem
> to be added in any of the rt-3.8.0 etc/upgrade/* scripts.

You're absolutely right.  It will show up in a clean system but
not in an upgrade.

I've forward your message to [EMAIL PROTECTED] so we
can track this for 3.8.2

-kevin

>
>
> Is it normal that i have an upgraded system without this global scrip?
> If so, is it intentional that I should have to manually add the
> ExtractSubjectTag global scrip?
>
> Thankyou
>
> -nate
> ___
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: [EMAIL PROTECTED]
>
>
> 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: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Separate permission

2008-08-30 Thread Kevin Falcone

On Aug 29, 2008, at 4:55 PM, Kenneth Crocker wrote:

>   I'm not using 3.8 yet, but I was hoping that perhaps the permissions
> had been modified a bit to allow a user from one queue to "link" his
> ticket to a ticket in another queue without having to have the
> "ModifyTicket" privilege. I have many queues that could have their
> tickets linked to tickets in other queues, but don't want the support
> personnel of those other queues to be able to modify tickets in their
> own. Does that make any sense?

I can't tell if you don't want to hand out ModifyTicket to these
users at all or if you're ok letting them have ModifyTicket in their
own queue.

If the latter, StrictLinkACL in your config may help.

If the former, there is some rather tangled code that would
need untangling to do what you want.

-kevin
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com