merging some of the 6.6.4 changes

This commit is contained in:
JT Smith 2005-07-13 02:10:16 +00:00
parent 88d751b64e
commit 85f8ef7f43
8 changed files with 38 additions and 34 deletions

View file

@ -1,4 +1,5 @@
6.7.0
- fix [ 1229042 ] crumbtrail should show full path...
- Added asset versioning.
- fix [ 1229188 ] typo in Help: Collaboration, Post List Template Variables
- fix [ 1221284 ] Operation\user.pm i18n {internationalize labels}

View file

@ -86,6 +86,11 @@ save you many hours of grief.
6.3.0
--------------------------------------------------------------------
* After upgrading your site you'll have to reset the privileges on
your uploads folder to make sure that the web server has
the privileges it needs to write due to a large number of
changes on the filesystem.
* In order to upgrade to 6.3.0 or beyond you need to have already
already upgraded to 6.2.0 or above. The upgrades will fail if
you try to jump from any 6.1 (or prior) version directly to

View file

@ -1,21 +0,0 @@
#!/usr/bin/perl
use lib "../../lib";
use Getopt::Long;
use strict;
use WebGUI::Session;
my $configFile;
my $quiet;
GetOptions(
'configFile=s'=>\$configFile,
'quiet'=>\$quiet
);
WebGUI::Session::open("../..",$configFile);
WebGUI::Session::close();

View file

@ -958,7 +958,7 @@ Creates and returns a tabform to edit parameters of an Asset.
sub getEditForm {
my $self = shift;
my $tabform = WebGUI::TabForm->new(undef,undef,$self->getContainer->getUrl());
my $tabform = WebGUI::TabForm->new(undef,undef,$self->getUrl());
$tabform->hidden({
name=>"func",
value=>"editSave"

View file

@ -191,7 +191,7 @@ sub view {
}
# deal with unplaced children
foreach my $child (@{$children}) {
unless (isIn($child->getId, @found)) {
unless (isIn($child->getId, @found)||isIn($child->getId,@hidden)) {
push(@{$vars{"position1_loop"}},{
id=>$child->getId,
content=>$child->view

View file

@ -194,8 +194,8 @@ sub convertVisitorToUser {
if ($session{setting}{passiveProfilingEnabled}) {
WebGUI::SQL->write("update passiveProfileLog set userId = ".quote($_[1])." where sessionId = ".quote($_[0]));
}
undef $session{isInGroup}; # decache some performance enhancers because we're
undef $session{gotGroupsForUser}; # user ids.
delete $session{isInGroup}; # decache some performance enhancers because we're
delete $session{gotGroupsForUser}; # user ids.
$session{var}{userId} = $_[1];
refreshUserInfo($_[1]);
}

View file

@ -263,8 +263,13 @@ sub page {
$url = getSiteURL();
}
$url .= getScriptURL();
my $pathinfo = $session{env}{PATH_INFO};
$pathinfo =~ s/^\/(.*)/$1/;
my $pathinfo;
if ($session{asset}) {
$pathinfo = $session{asset}->get("url");
} else {
$pathinfo = $session{env}{PATH_INFO};
$pathinfo =~ s/^\/(.*)/$1/;
}
$url .= $pathinfo;
if ($session{setting}{preventProxyCache} == 1 && !$skipPreventProxyCache) {
$url = append($url,"noCache=".randint(0,1000).';'.time());

View file

@ -13,15 +13,18 @@ package WebGUI::UploadsAccessHandler;
our $webguiRoot;
BEGIN {
use Apache::ServerUtil;
my $s = Apache->server;
my $s;
if ($mod_perl::VERSION >= 1.999023) {
$s = Apache2::ServerUtil->server;
} else {
$s = Apache->server;
}
$webguiRoot = $s->dir_config('WebguiRoot');
unshift (@INC, $webguiRoot."/lib");
}
print "Starting WebGUI Uploads Access Handler\n";
use Apache::RequestUtil;
use strict;
use CGI::Util qw/escape/;
use WebGUI::Grouping;
@ -29,7 +32,18 @@ use WebGUI::Session;
use WebGUI::URL;
sub handler {
my $r = Apache->request;
my $r;
my $ok;
my $notfound;
if ($mod_perl::VERSION >= 1.999023) {
$r = Apache2::RequestUtil->request;
$ok = Apache2::Const::OK();
$notfound = Apache2::Const::NOT_FOUND();
} else {
$r = Apache->request;
$ok = Apache::OK();
$notfound = Apache::NOT_FOUND();
}
if (-e $r->filename) {
my $path = $r->filename;
$path =~ s/^(\/.*\/).*$/$1/;
@ -47,14 +61,14 @@ sub handler {
$cookie =~ s/wgSession\=(.*)/$1/;
$cookie = WebGUI::URL::unescape($cookie);
WebGUI::Session::refreshSessionVars($cookie);
return Apache::OK if ($session{user}{userId} eq $privs[0] || WebGUI::Grouping::isInGroup($privs[1]) || WebGUI::Grouping::isInGroup($privs[2]));
return $ok if ($session{user}{userId} eq $privs[0] || WebGUI::Grouping::isInGroup($privs[1]) || WebGUI::Grouping::isInGroup($privs[2]));
WebGUI::Session::close();
return 401;
}
}
return Apache::OK;
return $ok;
} else {
return Apache::NOT_FOUND;
return $notfound;
}
}