Announcing: RTx::RightsMatrix 0.02.04

RTx::RightsMatrix is on it’s way to CPAN.

See it live at:
http://rt.chaka.net/Admin/Tools/RightsMatrix/index.html?user=guest&pass=guest

Changes:

0.02.04:

  • Going through Configuration menu no longer defaults to root.
  • Fixed bug in setting title.

0.02.03:

  • All tests pass
  • RTHOME honored for tests (thanks Howard Jones)

previous:

  • Broken link fixed (thanks Ruslan)
  • Logic bug fixed (thanks Todd)
  • Two components were renamed

-Todd

Hi Todd,

Great work! This makes admin life easier!!! What do you think to extend this
Tools with addidional Features?

  1. Did you know the Patch from Mr. Pape “HideGlobalScrips” ? It would be
    great to have all this under the same Tools / Rights Matrix or do you think
    this is a too heavy mixture?

  2. Something like i know from Novell, ist called: “Who has rights here” what
    i mean you pick a queue and as feedback you get every group or person with
    the attached rights.

What do you think about this ideas?

Callto://torsten_brumm

Thanks in advance

: Torsten Brumm
: IT Security Engineer
:
: Kuehne + Nagel
: HAM - MI-C
:
: Ferdinand Strasse 29-33
: 20095 Hamburg
:
: +49 (40) 329 15 199
: +49 (40) 329 15 500
:
: torsten.brumm@kuehne-nagel.com
: www.kn-portal.com
: icq: 78258840

Hi Todd,

Great work! This makes admin life easier!!! What do you think to extend this
Tools with addidional Features?

  1. Did you know the Patch from Mr. Pape “HideGlobalScrips” ? It would be
    great to have all this under the same Tools / Rights Matrix or do you think
    this is a too heavy mixture?

I’m not familiar with it. Where can I find it?

  1. Something like i know from Novell, ist called: “Who has rights here” what
    i mean you pick a queue and as feedback you get every group or person with
    the attached rights.

That would be hard to display in a summary form, I think. If you put an
example html or ascii are together I would consider it. It would also
be processor heavy; you would be calling HasRight on an object for
every group+user * each right.

Hi Todd,

Great work! This makes admin life easier!!! What do you think to extend this
Tools with addidional Features?

  1. Did you know the Patch from Mr. Pape “HideGlobalScrips” ? It would be
    great to have all this under the same Tools / Rights Matrix or do you think
    this is a too heavy mixture?

I’m not familiar with it. Where can I find it?

Google Cache is your friend.
http://page.mi.fu-berlin.de/~pape/rt3/HideGlobalScrips/HideGlobalScrips-1.1b1.tgz

Jérôme Fenal - jfenal AT gmail.com - http://fenal.org/
Paris.pm - http://paris.mongueurs.net/

Hi Todd,

Hi Todd,

Great work! This makes admin life easier!!! What do you think to
extend this Tools with addidional Features?

  1. Did you know the Patch from Mr. Pape “HideGlobalScrips”
    ? It would
    be great to have all this under the same Tools / Rights
    Matrix or do
    you think this is a too heavy mixture?

I’m not familiar with it. Where can I find it?

This is at the private Page from Mr. Pape:
http://page.mi.fu-berlin.de/~pape/rt3screenshots/

There is a problem with the download, so i will attach this to this mail.
This works good for version 3.2 of RT, i’m just fighting to implement at the
3.44 release. I think this makes really sense to add to this RTxRights Add
On, it’s not directly handle with rights but with scrips and so on and this
helps also very good for easy admin.

  1. Something like i know from Novell, ist called: “Who has rights
    here” what i mean you pick a queue and as feedback you get
    every group
    or person with the attached rights.

That would be hard to display in a summary form, I think. If
you put an example html or ascii are together I would
consider it. It would also be processor heavy; you would be
calling HasRight on an object for every group+user * each right.

OK, let me try to exlain in deep what i mean.

The Input must be a queue, so a dropdown for a queue will help. The Result
will bring the following:

Queuename: Testqueue1

	OwnTicket	AdminQueue		CreateTicket

Group1: y y y
Group2: n y y

User1: y y y
(Member of Group1)
User2: n y y
(Member of Group2)

Somethnig like this.

Another idea is a feature i know also from Novell Netware but let me explain
the situation first:

Many times we get requests from users (let me say user1) like: pls create
user2 and grant him the same rights like me. Then you can start to figure
out the rights and memberships of User1 and add user2 to the sme groups and
so on. In netware there was a feature where you can say a the user creation
or admin page: Grant rights from: user-xyz

This would also be a dream :wink:

Torsten

HideGlobalScrips.tgz (6.62 KB)

Hi Todd,

Hi Todd,

Great work! This makes admin life easier!!! What do you think to
extend this Tools with addidional Features?

  1. Did you know the Patch from Mr. Pape “HideGlobalScrips”
    ? It would
    be great to have all this under the same Tools / Rights
    Matrix or do
    you think this is a too heavy mixture?

I’m not familiar with it. Where can I find it?

This is at the private Page from Mr. Pape:
http://page.mi.fu-berlin.de/~pape/rt3screenshots/

There is a problem with the download, so i will attach this to this mail.
This works good for version 3.2 of RT, i’m just fighting to implement at the
3.44 release. I think this makes really sense to add to this RTxRights Add
On, it’s not directly handle with rights but with scrips and so on and this
helps also very good for easy admin.

It’s not rights related so I don’t think adding it is a good idea.

  1. Something like i know from Novell, ist called: “Who has rights
    here” what i mean you pick a queue and as feedback you get
    every group
    or person with the attached rights.

That would be hard to display in a summary form, I think. If
you put an example html or ascii are together I would
consider it. It would also be processor heavy; you would be
calling HasRight on an object for every group+user * each right.

OK, let me try to exlain in deep what i mean.

The Input must be a queue, so a dropdown for a queue will help. The Result
will bring the following:

Queuename: Testqueue1

  OwnTicket	AdminQueue		CreateTicket

Group1: y y y
Group2: n y y

User1: y y y
(Member of Group1)
User2: n y y
(Member of Group2)

Somethnig like this.

That would be easy to do. I’ll add it if I have the time.

Another idea is a feature i know also from Novell Netware but let me explain
the situation first:

Many times we get requests from users (let me say user1) like: pls create
user2 and grant him the same rights like me. Then you can start to figure
out the rights and memberships of User1 and add user2 to the sme groups and
so on. In netware there was a feature where you can say a the user creation
or admin page: Grant rights from: user-xyz

This would also be a dream :wink:

Another good idea, but doesn’t belong in this package. RTx::CloneUser
woule be easy to write though…

One more bug.

The User Rights display doesn’t work if the user does not have
ShowConfigTab, because /Admin/autohandler aborts the page if the user
doesn’t have ShowConfigTab. If it is moved to say User/RightsMatrix it
seems to work fine.

Joby Walker
ITI SSG, University of Washington

Todd Chapman wrote:

Darn. Looks like I need to do some reorganizing, or figure
out a way to supress the autohandler…On Thu, Nov 03, 2005 at 11:37:56AM -0800, Joby Walker wrote:

One more bug.

The User Rights display doesn’t work if the user does not have
ShowConfigTab, because /Admin/autohandler aborts the page if the user
doesn’t have ShowConfigTab. If it is moved to say User/RightsMatrix it
seems to work fine.

Joby Walker
ITI SSG, University of Washington

Todd Chapman wrote:

RTx::RightsMatrix is on it’s way to CPAN.

See it live at:
http://rt.chaka.net/Admin/Tools/RightsMatrix/index.html?user=guest&pass=guest

Changes:

0.02.04:

  • Going through Configuration menu no longer defaults to root.
  • Fixed bug in setting title.

0.02.03:

  • All tests pass
  • RTHOME honored for tests (thanks Howard Jones)

previous:

  • Broken link fixed (thanks Ruslan)
  • Logic bug fixed (thanks Todd)
  • Two components were renamed

-Todd


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com

One more but (that may not be worth fixing).

You can circumvent the checks on entering edit mode by just passing
"?Edit=1" as a part of the URL. It looks like you can’t do anything you
normally wouldn’t be able to, but it is possible to edit rights.

Joby Walker
ITI SSG, University of Washington

Todd Chapman wrote:

That’s right, the user won’t be able to do anything
they don’t already have permission to do. Not a
problem as far as I’m concerned.On Thu, Nov 03, 2005 at 12:09:55PM -0800, Joby Walker wrote:

One more but (that may not be worth fixing).

You can circumvent the checks on entering edit mode by just passing
“?Edit=1” as a part of the URL. It looks like you can’t do anything you
normally wouldn’t be able to, but it is possible to edit rights.

Joby Walker
ITI SSG, University of Washington

Todd Chapman wrote:

Darn. Looks like I need to do some reorganizing, or figure
out a way to supress the autohandler…

On Thu, Nov 03, 2005 at 11:37:56AM -0800, Joby Walker wrote:

One more bug.

The User Rights display doesn’t work if the user does not have
ShowConfigTab, because /Admin/autohandler aborts the page if the user
doesn’t have ShowConfigTab. If it is moved to say User/RightsMatrix it
seems to work fine.

Joby Walker
ITI SSG, University of Washington

Todd Chapman wrote:

RTx::RightsMatrix is on it’s way to CPAN.

See it live at:
http://rt.chaka.net/Admin/Tools/RightsMatrix/index.html?user=guest&pass=guest

Changes:

0.02.04:

  • Going through Configuration menu no longer defaults to root.
  • Fixed bug in setting title.

0.02.03:

  • All tests pass
  • RTHOME honored for tests (thanks Howard Jones)

previous:

  • Broken link fixed (thanks Ruslan)
  • Logic bug fixed (thanks Todd)
  • Two components were renamed

-Todd


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com

One more bug.

The User Rights display doesn’t work if the user does not have
ShowConfigTab, because /Admin/autohandler aborts the page if the user
doesn’t have ShowConfigTab. If it is moved to say User/RightsMatrix it
seems to work fine.

Joby Walker
ITI SSG, University of Washington

Bug fixed in next version. Add this component:

html/Admin/Tools/RightsMatrix/autohandler

with content:
<%init>
$m->call_next;
</%init>
<%flags>
inherit=>‘/autohandler’
</%flags>

-Todd

I’m having an issue running a cron job using rt-crontool:

#0 3 * * * /opt/rt3/bin/rt-crontool --search RT::Search::FromSQL
#–search-arg “LastUpdated < ‘3 days ago’ AND Status != ‘resolved’ AND
Status != ‘rejected’”
#–action RT::Action::RecordComment --template ‘Ignored tickets’

Gives me this error:

(/opt/rt3/lib/RT/Template_Overlay.pm:369)
[Mon Nov 14 18:06:05 2005] [error]: Template parsing error: Can’t call
method “CreatedAsString” on an undefined value at template line 3.
(/opt/rt3/lib/RT/Template_Overlay.pm:415)
[Mon Nov 14 18:06:05 2005] [error]: error: unexpected end of header

This might be something easy, but I’m not a perl or script person - I just
use it as is, so my apologies if this is an easy fix.

Using RT3.4.4 on CentOS4.2, Apache 2.0.52, mysql 4.1.12.

Thanks,
Chris

At Monday 11/14/2005 01:13 PM, Chris wrote:

I’m having an issue running a cron job using rt-crontool:

#0 3 * * * /opt/rt3/bin/rt-crontool --search RT::Search::FromSQL
#–search-arg “LastUpdated < ‘3 days ago’ AND Status != ‘resolved’ AND
Status != ‘rejected’”
#–action RT::Action::RecordComment --template ‘Ignored tickets’

Gives me this error:

(/opt/rt3/lib/RT/Template_Overlay.pm:369)
[Mon Nov 14 18:06:05 2005] [error]: Template parsing error: Can’t call
method “CreatedAsString” on an undefined value at template line 3.
(/opt/rt3/lib/RT/Template_Overlay.pm:415)
[Mon Nov 14 18:06:05 2005] [error]: error: unexpected end of header

This might be something easy, but I’m not a perl or script person - I just
use it as is, so my apologies if this is an easy fix.

Using RT3.4.4 on CentOS4.2, Apache 2.0.52, mysql 4.1.12.

Chris,

Have you tried running the command from the command line? If so did you get
the same result.

Could you also post the content of the ‘Ignored tickets’ template?

Thanks,
Steve

At Monday 11/14/2005 03:27 PM, Chris wrote:

Yes, this is the response I receive from the command-line.

Here is the Ignored Tickets paste (I stole most of it from the transaction
template):

RT-Attach-Message: yes

{$Transaction->CreatedAsString}: Request {$Ticket->id} has not been updated
for the past 3 days. Please update, resolve, or put ticket into a stalled
status.

Transaction: {$Transaction->Description}
Queue: {$Ticket->QueueObj->Name}
Subject: {$Transaction->Subject || $Ticket->Subject || “(No subject
given)”}
Owner: {$Ticket->OwnerObj->Name}
Requestors: {$Ticket->RequestorAddresses}
Status: {$Ticket->Status}
Ticket <URL: {$RT::WebURL}Ticket/Display.html?id={$Ticket->id} >

{$Transaction->Content()}

I’m guessing that the crontool does not give the template a transaction
context in the way a scrip does. The template gets invoked as the result of
a search rather than an update, so there is no transaction.

I think if you remove the $Transaction parts you’ll be OK.

Steve

This is known problem that when you run “rt-crontool” then Transaction
object is not available for templates and actions. It’s on my TODO
list, but is low priority thing, so patches for mainline are wellcome.On 11/14/05, Chris chris-lists@pipelinewireless.us wrote:

I’m having an issue running a cron job using rt-crontool:

#0 3 * * * /opt/rt3/bin/rt-crontool --search RT::Search::FromSQL
#–search-arg “LastUpdated < ‘3 days ago’ AND Status != ‘resolved’ AND
Status != ‘rejected’”
#–action RT::Action::RecordComment --template ‘Ignored tickets’

Gives me this error:

(/opt/rt3/lib/RT/Template_Overlay.pm:369)
[Mon Nov 14 18:06:05 2005] [error]: Template parsing error: Can’t call
method “CreatedAsString” on an undefined value at template line 3.
(/opt/rt3/lib/RT/Template_Overlay.pm:415)
[Mon Nov 14 18:06:05 2005] [error]: error: unexpected end of header

This might be something easy, but I’m not a perl or script person - I just
use it as is, so my apologies if this is an easy fix.

Using RT3.4.4 on CentOS4.2, Apache 2.0.52, mysql 4.1.12.

Thanks,
Chris


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com

Best regards, Ruslan.