Item1073: Configure should not load Plugins that are hidden - ie files starting with a dot

Priority: Normal
Current State: Closed
Released In: 1.0.1
Target Release: patch
Applies To: Engine
Component: Configure
Reported By: DrewStevenson
Waiting For:
Last Change By: KennethLavrsen
Mac ._ files can create bogus files ending in .pm

The Mac OS generates metadata files that begin with ._ to go with regular files. So if you were to copy a file like I don't know by hand into location, you will end up with another file named

When lib/Foswiki/Configure/ performs the check at line 87 or so

    my $checkClass = 'Foswiki::Configure::Checkers::' . $id;


    eval "use $checkClass; \$checker = new $checkClass(\$item);";

It explodes rather un-elegantly.

The error print out unfortunately doesn't get to the ._ part of the error


    my $checkClass = 'Foswiki::Configure::Checkers::' . $id;
    #if configure bails with Foswiki::Configure::Checkers::... foo uncomment below
    #print '<p>' . $checkClass . '</p>';
    my $checker;
    eval "use $checkClass; \$checker = new $checkClass(\$item);";

let me see why it was bailing. then scraping through all the dirs on my server us la -ls let me find and remove the ._ files

SvenDowideit suggested there will need to be a check (too many lazy users like me mixing OS X with wink

-- DrewStevenson - 13 Feb 2009

neat - fixorated.

-- SvenDowideit - 14 Feb 2009

ItemTemplate edit

Summary Configure should not load Plugins that are hidden - ie files starting with a dot
ReportedBy DrewStevenson
Codebase 1.0.0, trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component Configure
Priority Normal
CurrentState Closed
Checkins distro:a583ec918c40
TargetRelease patch
ReleasedIn 1.0.1
Topic revision: r4 - 23 Feb 2009, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy