#4309 TypeError in sitemap() for some projects

v1.0.0
closed
sf-2 (994)
General
2015-08-20
2012-05-31
No

This occurs on many projects, including https://sourceforge.net/p/waznexserver/admin/ and pformat and bikesimulator for example.

Seems like it is a data issue?

Module allura.model.project:418 in sitemap
<<                      entry = sm.bind_app(app)
                           entry.ui_icon='tool-%s' % ac.tool_name.lower()
                           ordinal = ac.options.get('or    dinal', 0) + delta_ordinal
                           if ordinal > max_ordinal:
                               max_ordinal = ordinal
>>  ordinal = ac.options.get('ordinal', 0) + delta_ordinal
TypeError: coercing to Unicode: need string or buffer, int found

Discussion

  • Dave Brondsema

    Dave Brondsema - 2012-06-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -6,7 +6,7 @@
     Module allura.model.project:418 in sitemap
     <<                      entry = sm.bind_app(app)
                                entry.ui_icon='tool-%s' % ac.tool_name.lower()
    -                           ordinal = ac.options.get('ordinal', 0) + delta_ordinal
    +                           ordinal = ac.options.get('or    dinal', 0) + delta_ordinal
                                if ordinal > max_ordinal:
                                    max_ordinal = ordinal
     >>  ordinal = ac.options.get('ordinal', 0) + delta_ordinal
    
    • size: --> 2
     
  • Jenny Steele - 2012-06-07
    • status: open --> in-progress
    • assigned_to: Jenny Steele
     
  • Jenny Steele - 2012-06-07
    • status: in-progress --> code-review
    • qa: Tim Van Steenburgh
     
  • Jenny Steele - 2012-06-07

    On allura js/4309. To test, go into mongo and change the options.ordinal in an app config to a string like "2" instead of 2. Make sure the project doesn't 500.

     
    • status: code-review --> closed
     

Log in to post a comment.