Tags:
create new tag
, view all tags

Question

Hi,everyone,

Thanks a lot in advance for any help. I can edit and save anything if the file (like *.txt,v )are in the data/Main directory.

But when I create a new topic, it cannot create original *.txt,v file. the Errors like this:

///////////Error saving topic During save of NeptuneDesc an error was found by the version control system. Please notify your TWiki administrator. =/usr/local/bin/bin/rcs -q -i -t-none -ko %FILENAME|F% of /usr/local/twiki/data/Main/NeptuneDesc.txt,v failed to create history file =

Go back in your browser and save your changes locally. ////////////

I can create the .txt,v file manually, and after creating it manually, everything is ok. The data/ and pub/ is 777 and configure passed without any warnings.

I stuck here for quiet a while. Any help would be grateful.

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris9
Web server: apache2
Perl version: 5.8.7
Client OS: window2000 professional
Web Browser: IE
Categories: Installation

-- JanetZhang - 28 Feb 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

I have exactly the same problem after upgrading a working cairo install: editing existing topics works, but new ones don't.

I'm using apache 1.33 on RH9 using perl 5.8.5 with TWiki 4.0.1

When trying to view a topic's history, I get the following error: "Insecure directory in $ENV{PATH} while running with -T switch"

Any help would be greatly appreciated!

-- JosMaccabiani - 04 Mar 2006

I got the same error as well.

-- JanetZhang - 06 Mar 2006

Janet, do you also get the "Insecure directory in $ENV{PATH} while running with -T switch" error?

-- JosMaccabiani - 11 Mar 2006

On insecure directory: Using configure, make sure to list only safe directories in {SafeEnvPath}, typically /bin:/usr/bin for Unix.

-- PeterThoeny - 11 Mar 2006

I believe Jos' problem was due to the way he was constructing SafeEnvPath, as Peter suggests. He was constructing it this way:

$cfg{ScriptUrlPath} = '/bin';
$cfg{SafeEnvPath} = "$cfg{ScriptUrlPath};/usr/$cfg{ScriptUrlPath}";
This triggered perl's taint checking mechanism, I guess because $cfg{ScriptUrlPath} is a variable.

-- CrawfordCurrie - 12 Mar 2006

That is correct, after changing it to:

$cfg{SafeEnvPath} = "/bin;/usr/bin";
...almost all my wierd problems related to RCS and perl taint checking were gone.

Janet, if you could try to edit LocalSite.cfg in your twiki/lib/ directory and see if this is the problem in your case as well, we might close this question!

-- JosMaccabiani - 12 Mar 2006

Thanks everyone! I solved this problem by reinstalled twiki program after sucessfully installing it on another host. Yes, I think you are right, maybe it is the SafeEnvPath problem, but I am not sure.

-- JanetZhang - 14 Mar 2006

You also need to check that the permissions on the /usr and /bin directories for your Cygwin installation are correct as well. Write permissions for the world can cause the taint checks to fail.

-- DougSchremp - 16 Apr 2007

 
Topic revision: r9 - 2007-04-16 - DougSchremp
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.