#2425 Redirect to default wiki page doesn't work if unicode in page title

v1.0.0
closed
sf-1 (616)
Wiki
nobody
2015-08-20
2011-07-07
No

For example, https://sourceforge.net/p/welcomesoft/home/ fails to redirect to https://sourceforge.net/p/welcomesoft/home/welcomesoft%20ERP%20for%20Joomla%2C%20Drupal%20and%20LAMP%20%E8%BF%8E%E6%96%B0ERP%E8%BB%9F%E4%BB%B6LAMP%E7%89%88%2C%20Joomla%E7%89%88%2C%20Drupal%E7%89%88/

Module forgewiki.wiki_main:242 in index
<<      @expose()
           def index(self, **kw):
               redirect(c.app.root_page_name+'/')

           #Instantiate a Page object, and continue dispatch there
>>  redirect(c.app.root_page_name+'/')
Module tg.controllers.util:108 in redirect
<<      new_url = url(*args, **kwargs)
           found = HTTPFound(location=new_url).exception
           raise found
>>  found = HTTPFound(location=new_url).exception
Module webob.exc:355 in __init__
<<              body_template=body_template)
               if location is not None:
                   self.location = location
                   if add_slash:
                       raise TypeError(
>>  self.location = location
Module webob.descriptors:111 in __set__
<<              if isinstance(value, unicode):
                       # This is the standard encoding for headers:
                       value = value.encode('ISO-8859-1')
                   obj.headers[self.header] = value
>>  value = value.encode('ISO-8859-1')
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 44-45: ordinal not in range(256)

Discussion

  • Dave Brondsema

    Dave Brondsema - 2011-07-15
    • milestone: backlog --> jul-22
     
  • Dave Brondsema

    Dave Brondsema - 2011-07-15
    • size: --> 1
     
  • Jenny Steele - 2011-07-19
    • status: open --> in-progress
    • assigned_to: Jenny Steele
     
  • Jenny Steele - 2011-07-20
    • status: in-progress --> code-review
    • assigned_to: Jenny Steele --> Tim Van Steenburgh
     
  • Jenny Steele - 2011-07-20

    Fix is on allura js/2425. To test, make sure a page with unicode in the name can be created through the Create Page pop-up in the left nav. Once the page is created, make sure that it functions normally. Set this page as the wiki home and make sure you are redirected correctly if you go to the tool in the nav.

     
    • status: code-review --> closed
    • assigned_to: Tim Van Steenburgh --> Jenny Steele
     
  • Looks good, merged to dev.

     

Log in to post a comment.