Changeset b15ecc6 for fedd


Ignore:
Timestamp:
Jul 8, 2012 7:42:55 AM (7 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
25bf6cc
Parents:
2c36179
Message:

Deal with errors where no attribute will grant access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/access.py

    rbcc6fd6 rb15ecc6  
    313313            # We only return one fail proof because returning hundreds (which
    314314            # is easy to do) locks up the fault mechanism.
    315             raise service_error(service_error.access, "Access denied",
     315            if len(fail_proofs) == 0:
     316                self.log.debug('No choices either: %s' % check)
     317                raise service_error(service_error.access,
     318                        "Access denied - no way to grant requested access")
     319            raise service_error(service_error.access, "Access denied",
    316320                    proof=fail_proofs[0])
    317321
Note: See TracChangeset for help on using the changeset viewer.