allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cory Johns" <masterbunn...@users.sf.net>
Subject [allura:tickets] #6056 Fix top request errors
Date Tue, 02 Jul 2013 02:02:18 GMT
There are 115 entries in `project-data.post` with old-style ACLs (dict of perm/roles, instead
of array of ACEs), which are causing a fair number of Ming schema validation errors.  The
following should fix them:

    db.post.find({
        'acl.0': {$exists: false},
        'acl': {$not: {$size: 0}}
    }).forEach(function(post) {
        var new_acl = [];
        for(var perm in post.acl) {
            post.acl[perm].forEach(function(role_id) {
                new_acl.push({
                    'access': 'ALLOW',
                    'permission': perm,
                    'role_id': role_id
                });
            });
        }
        post.acl = new_acl;
        db.post.update({_id: post._id}, post);
    });



---

** [tickets:#6056] Fix top request errors**

**Status:** in-progress
**Created:** Fri Apr 05, 2013 01:42 PM UTC by Dave Brondsema
**Last Updated:** Mon Jul 01, 2013 09:10 PM UTC
**Owner:** Cory Johns

    308 : <type 'exceptions.TypeError'>: _lookup() takes at least 4 arguments (2 given)
    214 : <type 'exceptions.KeyError'>: 'total'
    149 : <type 'exceptions.TypeError'>: _lookup() takes at least 4 arguments (3 given)
    101 : <type 'exceptions.TypeError'>: getattr(): attribute name must be string
     95 : <type 'exceptions.TypeError'>: commit_browser() got an unexpected keyword
argument '_'

Need to check logs to find full traces for these.



---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message