Changeset 8d6f204 for fedd/federation


Ignore:
Timestamp:
Jan 17, 2012 5:16:33 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
94a6661
Parents:
7653f01
Message:

Returning too many failure proofs locks up the fault mechanism.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/access.py

    r7653f01 r8d6f204  
    309309                self.log.debug("Access failed for %s %s" % (attr.attr, fid))
    310310        else:
     311            self.log.debug("Access denied for for %s" % fid)
     312            # We only return one fail proof because returning hundreds (which
     313            # is easy to do) locks up the fault mechanism.
    311314            raise service_error(service_error.access, "Access denied",
    312                     proof=fail_proofs)
     315                    proof=fail_proofs[0])
    313316
    314317
Note: See TracChangeset for help on using the changeset viewer.