Menu

#223 Multiple spaces in author suffixes error out

v1.0 (example)
closed-fixed
5
2014-01-22
2011-06-18
Ahasuerus
No

If the author's name in a submission has multiple consecutive spaces where a suffix should be, e.g. "William H. Keith Jr.", an attempt to approve the submission results in a Python error in common.py on line "if lastname[len(lastname)-1] == ',':" with a "string index out of range" error. This should only happen with Web API submissions since regular submissions convert multiple spaces to a single space.

Discussion

  • Ahasuerus

    Ahasuerus - 2011-06-25
    • assigned_to: nobody --> marty-d
     
  • Ahasuerus

    Ahasuerus - 2011-06-25

    Assigned to MartyD.

     
  • Ahasuerus

    Ahasuerus - 2014-01-22
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1 @@
    -If the author's name in a submission has multiple consecutive spaces where a suffix should be, e.g. "William H. Keith  Jr.", an attempt to approve the submission results in a Python error in common.py on line "if lastname\[len\(lastname\)-1\] == ',':" with a "string index out of range" error. This should only happen with Web API submissions since regular submissions convert multiple spaces to a single space.
    +If the author's name in a submission has multiple consecutive spaces where a suffix should be, e.g. "William H. Keith  Jr.", an attempt to approve the submission results in a Python error in common.py on line "if lastname[len(lastname)-1] == ',':" with a "string index out of range" error. This should only happen with Web API submissions since regular submissions convert multiple spaces to a single space.
    
    • status: open --> closed-fixed
    • assigned_to: MartyD --> Ahasuerus
    • Group: --> v1.0 (example)
     
  • Ahasuerus

    Ahasuerus - 2014-01-22

    Changed the Web API to collapse multiple adjacent spaces, which should eliminate all similar issues with Web API submissions. Fixed in rest/submission.py 1.8, installed in r2014-54 on 2014-01-21. Closing.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB