#2743 Error 500 of wiki page (unicode escaping in URL) [21558]

v1.0.0
closed
nobody
None
General
nobody
2015-08-20
2011-09-07
Chris Tsai
No

https://sourceforge.net/apps/trac/sourceforge/ticket/21558

From yesterday, I could not open my develop page, it says:

"Error 500
We're sorry but we weren't able to process this request."

https://sourceforge.net/p/dmcrop/home/Project%20overview/
I don't know why, can you help me with this? thanks.

I tried looking at the Markdown source for the page, but I didn't see anything that I thought might cause problems... https://sourceforge.net/p/dmcrop/home/Project%20overview/edit

Thoughts?

Discussion

  • Dave Brondsema

    Dave Brondsema - 2011-09-07

    The URL in item #1 does not use a standard tilde (~), and the URL processor chokes on it. I'll keep this ticket open so we can fix the problem, but the user can change the URL to use an ascii tilde and it should work.

    The error for us to fix is:

    Module allura.lib.markdown_extensions:214 in run
    <<              rewrite = self._rewrite
                   for link in soup.findAll('a'):
                       rewrite(link, 'href')
                   for link in soup.findAll('img'):
                       rewrite(link, 'src')
    >>  rewrite(link, 'href')
    Module allura.lib.markdown_extensions:231 in _rewrite
    <<                  return
                       else:
                           tag[attr] = '/nf/redirect/?path=%s' % quote(val)
                           tag['rel']='nofollow'
                           return
    >>  tag[attr] = '/nf/redirect/?path=%s' % quote(val)
    Module urllib:1222 in quote
    <<              safe_map[c] = (c in safe) and c or ('%%%02X' % i)
                   _safemaps[cachekey] = safe_map
               res = map(safe_map.__getitem__, s)
               return ''.join(res)
    >>  res = map(safe_map.__getitem__, s)
    KeyError: u'\u223c'
    
    • summary: Error 500 of wiki page [21558] --> Error 500 of wiki page (unicode escaping in URL) [21558]
     
  • Anonymous - 2011-09-07

    Originally by: fengzys

    yes, follow your suggestion, it works now, thanks.

     
    • status: open --> closed
     
  • Duplicate of [#3149]

     

    Related

    Tickets: #3149


Log in to post a comment.