#6056 Fix top request errors - NEEDS MONGO CMD

v1.0.0
closed
sf-2 (995)
General
2015-08-20
2013-04-05
No
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.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2013-04-05
    • size: --> 2
     
  • Dave Brondsema

    Dave Brondsema - 2013-04-09

    First is from e.g. /p/pyffi/news/favicon.ico

     
  • Dave Brondsema

    Dave Brondsema - 2013-04-09

    /p/awstats/support-requests generates TypeError: with_trailing_slash() got multiple values for keyword argument 'func'

     
  • Dave Brondsema

    Dave Brondsema - 2013-04-19
    • Milestone: forge-apr-19 --> forge-may-03
     
  • Dave Brondsema

    Dave Brondsema - 2013-04-19
    • Milestone: forge-may-03 --> forge-may-17
     
  • Dave Brondsema

    Dave Brondsema - 2013-05-03
    • Milestone: forge-may-17 --> forge-may-31
     
  • Dave Brondsema

    Dave Brondsema - 2013-05-20
    • Milestone: forge-may-31 --> forge-jun-06
     
  • Dave Brondsema

    Dave Brondsema - 2013-06-03
    • Milestone: forge-jun-14 --> forge-jun-28
     
  • Dave Brondsema

    Dave Brondsema - 2013-06-14
    • Milestone: forge-jun-28 --> forge-jul-12
     
  • Cory Johns

    Cory Johns - 2013-07-01
    • status: open --> in-progress
    • assigned_to: Cory Johns
     
  • Cory Johns

    Cory Johns - 2013-07-02

    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);
    });
    

    The change to PostController.post() should all but eliminate these errors, but it would be best to fix the data.

     
  • Cory Johns

    Cory Johns - 2013-07-02

    allura:cj/6056
    forge-classic:cj/6056
    forgepastebin:cj/6056

     
  • Cory Johns

    Cory Johns - 2013-07-02
    • status: in-progress --> code-review
     
  • Tim Van Steenburgh

    • QA: Tim Van Steenburgh
     
  • Tim Van Steenburgh

    • status: code-review --> blocked
     
  • Tim Van Steenburgh

    • summary: Fix top request errors --> Fix top request errors - NEEDS MONGO CMD
    • status: blocked --> closed
     
  • Tim Van Steenburgh

    forge branch merged

     

Log in to post a comment.