• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

To reproduce:

  • copy a web from Cairo (can be the standard Sandbox web)
  • create a new topic and try to attach a file to it

RCS: failed to create /home/terceiro/src/twiki/dakar/pub/CSandbox/TestTopic8: No such file or directory

It looks like form some reason the topic directory in pub is not being created, but it does work on post-Cairo webs. Weird.

-- AT

update:

it works when the user is a member of the TWikiAdminGroup, but doesn't work when the user is a "regular" one.

-- AT

additional info: yes, I have chown'ed and chmod'ed with -R the directories.

-- AT

and worse, i can't re-produce it on my systems - so i'm going ot move it to normal (not holding up release)

-- SD

The 8606 version works OK, no errors (the version from before Item1453):

sub _mkPathTo {
    my $file = shift;

    my @components = split( /(\/+)/, $file );
    pop( @components );
    my $path = '';
    for my $dir ( @components ) {
        if( $dir =~ /\/+/ ) {
            $path .= '/';
        } else {
            $path .= $dir;
            # use -e rather than -d for speed
            if( $path && !-e $path ) {
                mkdir( $path, $TWiki::cfg{RCS}{dirPermission} ) ||
                  throw Error::Simple('RCS: failed to create '.$path.': '.$!);
            }
        }
    }
}

It seems the eval in the new version is complaining of something not untainted?

..
Insecure dependency in mkdir while running with -T switch at /usr/share/perl/5.8/File/Path.pm line 150.
 at /usr/share/perl/5.8/File/Path.pm line 150 
..

-- SP

Untainted $file, SVN 8669.

-- SP

Thanks Steffen. smile

-- AT

ItemTemplate
Summary RCS error when attaching to webs migrated from Cairo
ReportedBy TWiki:Main.AntonioTerceiro
Codebase

SVN Range SVN 8658 - ? (currently)
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 8667 8669
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-02-01 - AntonioTerceiro
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback