RT 1.3.10 CVS commit: rt

I just rolled RT 1.3.10. I’ve documented most of the changes below.
(Highlights include ACLs and the start of a cli admin tool.)
In addition to the listed stuff, there were a number of little bug
fixes and tweaks and some work on the incoming mail gateway.

This seems to basically install and run out of the box for me.
But I’d be surprised if it did that for anyone else :wink:
Don’t run this in production. But install it on your staging
server, if you feel bored.

Next up, rolling in the preliminary oracle port that came in
today’s email from Dave Morgan.

-jesse

----- Forwarded message from jesse@fsck.com -----From: jesse@fsck.com
To: cvs-commit@fsck.com
Reply-To: jesse@fsck.com
Date: Wed, 2 Aug 2000 00:20:07 -0400 (EDT)
Subject: [rt-commit] CVS commit: rt
List-Id: Gets mail of RT CVS commits <rt-commit.lists.fsck.com>

Module Name: rt
Committed By: jesse
Date: Wed Aug 2 04:20:06 UTC 2000

Modified Files:
rt: Makefile NEWS TODO
rt/etc: config.pm schema.mysql
rt/lib/RT: ACE.pm ACL.pm CurrentUser.pm Date.pm Queue.pm Record.pm
Ticket.pm Tickets.pm User.pm
rt/lib/RT/Interface: Email.pm
rt/lib/rt/ui/cli: admin.pm manipulate.pm

Log Message:
Weekend of 1 Aug 2000
I spent the weekend in DC visiting family. This meant I got a bit of
code written :wink: Sadly, I have no access to the CVS server,
so I’ll be batching a bunch of commits.

  1. Enabled CLI admin tool

  2. Added ACL listing functionality to the CLI admin tool.

  3. Enhanced RT::Queue->Grant such that it works with the structure of RT2
    ACLs

  4. Made the Logging framework actually log errors to STDERR.
    (This makes debugging the CLI tools much easier. It also means
    that the cli tools explain why they’re dying.)

  5. Fully expunged use of Mysql’s SQL keyword “now()”. I’d have left this
    stuff in, except mysql doesn’t seem to deal well with the idea that the
    entire world isn’t one timezone. On top of that, it doesn’t seem to
    have a way to force it into GMT mode that doesn’t involve modifying init
    scripts. sigh

  6. Did a whole bunch more work on the ACL checking in RT::User

  7. Wrote up some preliminary docs on local hacks to RT

  8. Added in a routine to allow local canonicalization of email addresses

  9. Added in the concept of “Disabled users” To preserve RT2’s database
    Integrity, whacking user accounts would be a bad thing. So, instead,
    we’ve got the concept of ‘disabled’ users. A disabled user fails ANY
    ACL check, ANY password check and doesn’t appear in any lists of ACLs.
    (note that the lastmost statement isn’t yet true)

  10. rtadmin user -enable and rtadmin user -disable now work.

  11. ACLs are now enforced for many ticket related actions.
    (this does mean that you’ll want to insert some acls like those below)

INSERT INTO ACL VALUES (1,0,‘User’,‘SuperUser’,‘Queue’,0);
INSERT INTO ACL VALUES (2,3,‘User’,‘CreateTicket’,‘Queue’,0);
INSERT INTO ACL VALUES (3,3,‘User’,‘ShowTicket’,‘Ticket’,0);
INSERT INTO ACL VALUES (4,3,‘User’,‘ShowTicketHistory’,‘Ticket’,0);
INSERT INTO ACL VALUES (6,3,‘User’,‘CreateTicket’,‘Queue’,1);
INSERT INTO ACL VALUES (7,3,‘User’,‘ModifyTicket’,‘Ticket’,1);
INSERT INTO ACL VALUES (8,1,‘User’,‘Superuser’,‘System’,0);
INSERT INTO ACL VALUES (9,0,‘Everyone’,‘Superuser’,‘System’,0);

To generate a diff of this commit:
cvs rdiff -u -r1.90.2.81 -r1.90.2.82 rt/Makefile
cvs rdiff -u -r1.49.2.20 -r1.49.2.21 rt/NEWS
cvs rdiff -u -r1.10.2.4 -r1.10.2.5 rt/TODO
cvs rdiff -u -r1.11.2.38 -r1.11.2.39 rt/etc/config.pm
cvs rdiff -u -r1.1.2.104 -r1.1.2.105 rt/etc/schema.mysql
cvs rdiff -u -r1.1.2.9 -r1.1.2.10 rt/lib/RT/ACE.pm
cvs rdiff -u -r1.1.2.8 -r1.1.2.9 rt/lib/RT/ACL.pm
cvs rdiff -u -r1.1.2.15 -r1.1.2.16 rt/lib/RT/CurrentUser.pm
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 rt/lib/RT/Date.pm
cvs rdiff -u -r1.1.2.20 -r1.1.2.21 rt/lib/RT/Queue.pm
cvs rdiff -u -r1.1.2.21 -r1.1.2.22 rt/lib/RT/Record.pm
cvs rdiff -u -r1.1.2.132 -r1.1.2.133 rt/lib/RT/Ticket.pm
cvs rdiff -u -r1.1.2.10 -r1.1.2.11 rt/lib/RT/Tickets.pm
cvs rdiff -u -r1.1.2.28 -r1.1.2.29 rt/lib/RT/User.pm
cvs rdiff -u -r1.1.2.29 -r1.1.2.30 rt/lib/RT/Interface/Email.pm
cvs rdiff -u -r1.9.2.18 -r1.9.2.19 rt/lib/rt/ui/cli/admin.pm
cvs rdiff -u -r1.6.2.60 -r1.6.2.61 rt/lib/rt/ui/cli/manipulate.pm

Rt-commit mailing list
Rt-commit@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-commit

----- End forwarded message -----

jesse reed vincent — root@eruditorum.orgjesse@fsck.com
pgp keyprint: 50 41 9C 03 D0 BC BC C8 2C B9 77 26 6F E1 EB 91
As I sit here alone looking at green text on a laptop in a mostly bare room listening
to loud music wearing all black, I realize that that it is much less cool in real life :slight_smile:
–Richard Tibbets