#2466 Error when registering project with unicode name

v1.0.0
closed
sf-1 (616)
General
nobody
2015-08-20
2011-07-15
No
Module sfx.sfx_main:157 in register_project
<<          # Reserve project name with SFX
               try:
                   ug_name = self.api.create(user, neighborhood, shortname, project_name, private_project)
                   log.info('SFX Project creation returned: %s', ug_name)
               except sfx_exc.SFXNotFound, exc:
>>  ug_name = self.api.create(user, neighborhood, shortname, project_name, private_project)
Module sfx.lib.sfx_api:172 in create
<<                  user_id=user.get_tool_data('sfx', 'userid'),
                       unix_group_name=ug_name,
                       group_name=lsub_utf8(project_name.encode('utf-8'), 40),
                       private=is_private_project,
                       short_description=lsub_utf8(short_description.encode('utf-8'), 255))
>>  group_name=lsub_utf8(project_name.encode('utf-8'), 40),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)

Discussion

  • Dave Brondsema

    Dave Brondsema - 2011-08-08
    • milestone: backlog --> aug-17
     
  • Jenny Steele - 2011-08-10
    • status: open --> in-progress
    • assigned_to: Jenny Steele
     
  • Jenny Steele - 2011-08-11
    • status: in-progress --> code-review
    • assigned_to: Jenny Steele --> John Hoffmann ☠
    • size: --> 1
     
  • Jenny Steele - 2011-08-11

    Fix is on forge classic js/2466. To test, make sure you can create a project with unicode in the project name.

     
  • Dave Brondsema

    Dave Brondsema - 2011-08-12
    • milestone: aug-19 --> aug-12
     
  • John Hoffman - 2011-08-15
    • status: code-review --> closed
     
  • John Hoffman - 2011-08-15

    Looks good, merged to dev. Also tested search/sfpy/sfx and the unicode char looked fine in each place.

     

Log in to post a comment.