Tags:
create new tag
view all tags

Question

In a protected web nobody can access attachments. The error is:


Access Denied
Attention

Access check on CcS.FireWalls failed. 
Action "VIEW": access not allowed on web.

Contact twiki.support@cern.ch if you 
have any questions.

Related topics: TWikiGroups, TWikiAccessControl 

I get this message even though I am the admin.

It appears that viewfile does not recognise the user.

Following the upgrade to 4.1.2 our workaround for accessing attachments on protected webs no longer works.

In Store.pm we previously commented out the following

---
 > # Debug hack to get around attachment viewing problem
 > #    if( $user &&
 > #          !$this->{session}->{security}->checkAccessPermission
 > #            ( 'view', $user, undef, undef, $topic, $web )) {
 > #        throw TWiki::AccessControlException(
 > #            'VIEW', $user, $web, $topic,
 > #            $this->{session}->{security}->getReason());
 > #    }

I had origianally asked the question under AuthenticationAttachments

Does the paragraph

Controlling access to Attachments

in TWikiAccessControl

still apply?

Has anyone else had similar problems with this in 4.1.2 ?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RH
Web server: apache
Perl version: 5.8
Client OS: Windows Linux
Web Browser: IE Firefox
Categories: Permissions

-- PeterJones - 03 May 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Correction

The above workaround still works but the comments must be made in the subroutine readAttachment

sub readAttachment {
    my ( $this, $user, $web, $topic, $attachment, $theRev ) = @_;

    ASSERT($this->isa('TWiki::Store')) if DEBUG;

    # Changes as for Dakar to allow viewfile on protected webs
    #if( $user &&
    #      !$this->{session}->{security}->checkAccessPermission
    #        ( 'view', $user, undef, undef, $topic, $web )) {
    #    throw TWiki::AccessControlException(
    #        'VIEW', $user, $web, $topic,
    #        $this->{session}->{security}->getReason());
    #}

    my $handler = $this->_getHandler( $web, $topic, $attachment );
    return $handler->getRevision( $theRev );
}

However it would still be good to have a correct fix for this

-- PeterJones - 04 May 2007

You don't say what sort of security setup you have (login manager, password manager). Nor what a "protected web" means. Is it a web nobody can view? In that case, viewfile is just doing its job.....

-- CrawfordCurrie - 14 May 2007

We have kerberos authentication enabled. The protected webs are those with the access control variables like ALLOWWEBVIEW set in WebPreferences.

The problem occurs for those users that do have access including admin.

-- PeterJones - 14 May 2007

Sorry, closing this after more than 30 days...

-- PeterThoeny - 06 Jul 2007

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-07-06 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.