[ ispman-Bugs-1693680 ] Adding replica failed for resellers/clients
"SourceForge.net" <[email protected]> Tue, 03 Apr 2007 07:43:03 -0700
| Newsgroups | gmane.comp.isp.ispman.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1693680, was opened at 2007-04-03 07:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108390&aid=1693680&group_id=8390
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Adding replica failed for resellers/clients
Initial Comment:
When adding replica domain resellers/clients get "Add Domain aborted! HomeDirectory must be subdir of ..."
Th test is :
if ( $r->param("homeDirectory") !~ m/^$defaultHomeDirectoryPath/ )
But replica don not have a homeDirectory.
Here is a patch :
diff -u /usr/local/ispman/lib/ISPMan/DomainMan.pm.orig /usr/local/ispman/lib/ISPMan/DomainMan.pm
--- /usr/local/ispman/lib/ISPMan/DomainMan.pm.orig 2007-04-03 16:37:36.000000000 +0200
+++ /usr/local/ispman/lib/ISPMan/DomainMan.pm 2007-04-03 16:36:17.000000000 +0200
@@ -193,9 +193,9 @@
# check if homeDirectory lies in defaultHomeDirectoryPath
my $defaultHomeDirectoryPath =
$self->getConf("defaultHomeDirectoryPath");
- if ( $r->param("homeDirectory") !~ m/^$defaultHomeDirectoryPath/ ) {
+ if ( $r->param("ispmanDomainType") ne "replica" and $r->param("homeDirectory") !~ m/^$defaultHomeDirectoryPath/ ) {
print
-"Add Domain aborted!\nHomeDirectory must be subdir of $defaultHomeDirectoryPath.\n";
+"Add Domain aborted!\nHomeDirectory '".$r->param("homeDirectory")."' must be subdir of $defaultHomeDirectoryPath.\n";
return;
}
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108390&aid=1693680&group_id=8390
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV