Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Vincent <jesse@bestpractical.com>1999-12-22 23:05:18 +0300
committerJesse Vincent <jesse@bestpractical.com>1999-12-22 23:05:18 +0300
commitf21b21d24e4867492dc5d20d326cfea7ba1e520f (patch)
treee69d7f0fc1be5e6161b03ed7830816ccda171536
parentc0da0d22e2474ced028c80153cfa5cea9fa019fa (diff)
23 Dec 1999rt-1.0.2pre2
----------- * Enabled a status = unresolved option for the web ui. thanks to brandon allbery <allbery@ece.cmu.edu> and Marion Hakanson <hakanson@cse.ogi.edu> * Made most of the permissions and directory changes from Marion Hakanson <hakanson@cse.ogi.edu> generally cleaned things up. but DID not include the changes to the directory creation, file copying and permission fixing code to enable RT_VAR_DIR * Made the web ui use $MESSAGE_FONT when putting up the compose window. Marion Hakanson <hakanson@cse.ogi.edu> * Genericised the templates to not mention the mythical "systems group"
-rwxr-xr-xMakefile62
-rwxr-xr-xNEWS16
-rwxr-xr-xlib/generic_templates/autoreply4
-rwxr-xr-xlib/generic_templates/comment7
-rwxr-xr-xlib/generic_templates/give4
-rwxr-xr-xlib/generic_templates/steal3
-rwxr-xr-xlib/rt/ui/web/forms.pm6
-rwxr-xr-xlib/rt/ui/web/manipulate.pm6
8 files changed, 80 insertions, 28 deletions
diff --git a/Makefile b/Makefile
index 5d6ec60805..d6bd417662 100755
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Header: /usr/local/cvsroot/rt/Makefile,v 1.69 1999/04/13 07:07:35 jesse Exp O
+# $Header$
#
#
# Request Tracker is Copyright 1997-9 Jesse Reed Vincent <jesse@fsck.com>
@@ -11,7 +11,7 @@ RTGROUP = rt
RT_VERSION_MAJOR = 1
RT_VERSION_MINOR = 0
-RT_VERSION_PATCH = 2
+RT_VERSION_PATCH = 2pre2
RT_VERSION = $(RT_VERSION_MAJOR).$(RT_VERSION_MINOR).$(RT_VERSION_PATCH)
@@ -30,7 +30,17 @@ RT_LIB_PATH = $(RT_PATH)/lib
RT_ETC_PATH = $(RT_PATH)/etc
RT_BIN_PATH = $(RT_PATH)/bin
RT_CGI_PATH = $(RT_BIN_PATH)/cgi
-RT_TRANSACTIONS_PATH = $(RT_PATH)/transactions
+
+
+# You might want to store RT's transaction content in your /var directory
+# rather than with the rest of RT. If so, comment out the first RT_VAR_PATH
+# line and uncomment the second
+
+RT_VAR_PATH = $(RT_PATH)
+#RT_VAR_PATH = /var/rt
+
+
+RT_TRANSACTIONS_PATH = $(RT_VAR_PATH)/transactions
# Where you keep the templates for your various queues
RT_TEMPLATE_PATH = $(RT_ETC_PATH)/templates
@@ -85,8 +95,8 @@ RT_MAIL_TAG = change-this-string-or-perish
RT_MAIL_ALIAS = rt\@your.domain.is.not.yet.set
#
-# RT_USER_MIN_PASS specifies the minimum length of RT user passwords. If you don't
-# want such functionality, simply set it to 0
+# RT_USER_PASSWD_MIN specifies the minimum length of RT user passwords.
+# If you don't want such functionality, simply set it to 0
#
RT_USER_PASSWD_MIN = 5
@@ -154,9 +164,11 @@ RT_MYSQL_PASS = My!word%z0t
RT_MYSQL_HOST = localhost
#
-# Set this to the canonical name of the interface RT will be talking to the mysql database on.
+# Set this to the canonical name of the interface RT will be talking to the
+# mysql database on.
# If you said that the RT_MYSQL_HOST above was "localhost," this should be too.
-# This value will be used by mysql to grant rt on your RT server access to the Mysql database.
+# This value will be used by mysql to grant rt on your RT server access
+# to the Mysql database.
#
RT_HOST = localhost
@@ -223,29 +235,45 @@ upgrade-noclobber: libs-install mux-install nondestruct
nondestruct: mux-links fixperms
all:
- @echo "Read the readme."
+ @echo "Read the README."
fixperms:
- chown -R $(RTUSER) $(RT_PATH)
- chgrp -R $(RTGROUP) $(RT_PATH)
- chmod -R 755 $(RT_LIB_PATH)
- chmod -R 0700 $(RT_ETC_PATH)
- chmod 0755 $(RT_PATH)
- chmod 0755 $(RT_BIN_PATH)
- chmod 0755 $(RT_CGI_PATH)
+
+# Main, read-only directories.
+ chown -R root $(RT_PATH)
+ chgrp -R root $(RT_PATH)
+ chmod -R a+r,a-w $(RT_PATH)
+ ( cd $(RT_PATH) && find . -type d -exec chmod a+x {} \; )
+# Restricted and special access areas.
+ chown -R $(RTUSER) $(RT_ETC_PATH) $(RT_TRANSACTIONS_PATH)
+ chgrp -R $(RTGROUP) $(RT_ETC_PATH) $(RT_TRANSACTIONS_PATH)
+# Some password & config info is sensitive.
+ chmod -R a-w,o-r $(RT_ETC_PATH)
+ chmod ug+x,o-x $(RT_ETC_PATH)
+# This covers RT_TRANSACTIONS_PATH
+ chmod -R a-w,o-r,u+rw,g+r $(RT_TRANSACTIONS_PATH)
+ ( cd $(RT_TRANSACTIONS_PATH) && find . -type d -exec chmod ug+x,o-x {} \; )
+# Do the same for the templates
+ chmod -R a-w,o-r,u+rw,g+r $(RT_TEMPLATE_PATH)
+ ( cd $(RT_TEMPLATE_PATH) && find . -type d -exec chmod ug+x,o-x {} \; )
+
+# Individual executable files.
+
chmod 0755 $(RT_PERL_MUX)
+ chown $(RTUSER) $(RT_WRAPPER)
chmod 4111 $(RT_WRAPPER)
dirs:
mkdir -p $(RT_BIN_PATH)
mkdir -p $(RT_CGI_PATH)
mkdir -p $(RT_ETC_PATH)
- cp -rp ./etc/* $(RT_ETC_PATH)
+ cp -p ./etc/config.pm ./etc/mysql.acl $(RT_ETC_PATH)
+ mkdir -p $(RT_TEMPLATE_PATH)
+ cp -rp ./etc/templates $(RT_TEMPLATE_PATH)/..
mkdir -p $(RT_TRANSACTIONS_PATH)
libs-install:
mkdir -p $(RT_LIB_PATH)
cp -rp ./lib/* $(RT_LIB_PATH)
- chmod -R 0755 $(RT_LIB_PATH)
initialize: database acls
diff --git a/NEWS b/NEWS
index 064abd8685..b7f46b3624 100755
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,19 @@
+23 Dec 1999
+-----------
+
+* Enabled a status = unresolved option for the web ui. thanks to
+ brandon allbery <allbery@ece.cmu.edu> and Marion Hakanson <hakanson@cse.ogi.edu>
+
+* Made most of the permissions and directory changes from Marion
+ Hakanson <hakanson@cse.ogi.edu> generally cleaned things up. but DID not
+ include the changes to the directory creation, file copying and permission
+ fixing code to enable RT_VAR_DIR
+
+* Made the web ui use $MESSAGE_FONT when putting up the compose window.
+ Marion Hakanson <hakanson@cse.ogi.edu>
+
+* Genericised the templates to not mention the mythical "systems group"
+
6 Dec 1999
----------
* Fixed a bug with admin-webrt.cgi/frames. Thanks to
diff --git a/lib/generic_templates/autoreply b/lib/generic_templates/autoreply
index e2d7aef3fd..49a6718bba 100755
--- a/lib/generic_templates/autoreply
+++ b/lib/generic_templates/autoreply
@@ -2,7 +2,7 @@
This message has been automatically generated in response to your
message regarding "%subject%", the content of which appears below. There is
-no need to reply to it now. The Systems group has received your message and
+no need to reply to it now. Request Tracker has received your message and
it has been assigned a ticket ID of [%rtname% #%serial_num%]. Please
include the string
@@ -15,7 +15,7 @@ problem. To do so, you may reply to this message.
Thank you,
- The Systems Group
+ Request Tracker
%queue:mailalias%
-------------------------------------------------------------------------
diff --git a/lib/generic_templates/comment b/lib/generic_templates/comment
index db7c437adc..a5f0d78c75 100755
--- a/lib/generic_templates/comment
+++ b/lib/generic_templates/comment
@@ -1,6 +1,7 @@
- Request number %serial_num% was commented on by %actor%.
-
- The Systems Group
+Request number %serial_num% was commented on by %actor%.
+Responding to this message will send mail to the requestor.
+
+ Request Tracker
%mailalias%
--------------------------------------------------------------
diff --git a/lib/generic_templates/give b/lib/generic_templates/give
index 1201c42d1f..4004b96d1c 100755
--- a/lib/generic_templates/give
+++ b/lib/generic_templates/give
@@ -1,5 +1,5 @@
Request number %serial_num% was given to you by %actor%.
-
- The Systems Group
+ Request Tracker
%mailalias%
+
diff --git a/lib/generic_templates/steal b/lib/generic_templates/steal
index 3621f07586..c2fc12d876 100755
--- a/lib/generic_templates/steal
+++ b/lib/generic_templates/steal
@@ -1,5 +1,4 @@
Request number %serial_num% was stolen from you by %actor%.
-
- The Systems Group
+ Request Tracker
%mailalias%
diff --git a/lib/rt/ui/web/forms.pm b/lib/rt/ui/web/forms.pm
index 047f01dba5..395d95e223 100755
--- a/lib/rt/ui/web/forms.pm
+++ b/lib/rt/ui/web/forms.pm
@@ -26,6 +26,10 @@ sub FormQueueOptions{
print "<OPTION> open" if (! (($rt::ui::web::FORM{'q_status'} eq "open" ) or (!$rt::ui::web::FORM{'q_status'})) );
print "<OPTION SELECTED> stalled" if ($rt::ui::web::FORM{'q_status'} eq "stalled");
print "<OPTION> stalled" if ($rt::ui::web::FORM{'q_status'} ne "stalled");
+
+ print "<OPTION SELECTED> unresolved" if ($rt::ui::web::FORM{'q_status'} eq "unresolved");
+ print "<OPTION> unresolved" if ($rt::ui::web::FORM{'q_status'} ne "unresolved");
+
print "<OPTION SELECTED> resolved" if ($rt::ui::web::FORM{'q_status'} eq "resolved");
print "<OPTION> resolved" if ($rt::ui::web::FORM{'q_status'} ne "resolved");
print "<OPTION SELECTED> dead" if ($rt::ui::web::FORM{'q_status'} eq "dead");
@@ -518,7 +522,7 @@ Final priority:
</TD></TR>
<TR><TD valign=\"top\" align=\"right\">Content:</TD><TD COLSPAN=5>
-<font size=\"-1\">
+<font size=\"$MESSAGE_FONT\">
<textarea rows=15 cols=78 name=\"content\" WRAP=HARD>
$template
</textarea>
diff --git a/lib/rt/ui/web/manipulate.pm b/lib/rt/ui/web/manipulate.pm
index 2fa9f501fa..1634d76dfa 100755
--- a/lib/rt/ui/web/manipulate.pm
+++ b/lib/rt/ui/web/manipulate.pm
@@ -398,7 +398,11 @@ sub display_queue {
if ($status_ops){
$status_ops .= " OR ";
}
- if ($rt::ui::web::FORM{'q_status'} ne "any") {
+ if ($rt::ui::web::FORM{'q_status'} eq "unresolved") {
+ $status_ops = " status <> \'dead\' AND status <> \'resolved\'";
+ }
+ elsif ($rt::ui::web::FORM{'q_status'} ne "any") {
+
$status_ops .= " status = \'" .$rt::ui::web::FORM{'q_status'}."\'" ;
}