Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#644 closed defect (duplicate)

Wrong URLs in db and omega cgi

Reported by: terencz Owned by: Olly Betts
Priority: normal Milestone: 1.2.21
Component: Omega Version: 1.2.12
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: Linux

Description

I upgraded from debian squeeze to wheezy and the URLs went wrong.

For example "Szerződések" is now shown as "Szerz%C5%91d%C3%A9sek" in database and the omega cgi web frontend.

Change History (5)

comment:1 by Olly Betts, 10 years ago

Component: OtherOmega

Are you saying these URLs don't work, or just that they look ugly?

If the former, please can you provide us with some examples of document filenames which when indexed reproduce the problem.

If the latter, I think what you're seeing is the result of fixing a bug in that older version - we weren't encoding characters in URLs which should be encoded according to the relevant RFCs, which was causing problems in some cases.

There's now a $prettyurl omegascript command which undoes some of this encoding in cases where it doesn't actually seem to be required in practice with the commonly used webbrowsers - the aim is to produce a more human readable version of the URL which is still likely to work if cut and pasted (since some users will try that). Unfortunately, top-bit-set characters are a bit problematic, as we don't know necessarily know what encoding filenames have on the system, and inside $prettyurl we don't know what character set the page we're generating has. There's certainly scope for improvement here, and there's already ticket #550 open for this issue.

Last edited 10 years ago by Olly Betts (previous) (diff)

comment:2 by terencz, 10 years ago

Everything works fine (indexing, searching) just the URLs look ugly.

comment:3 by Olly Betts, 10 years ago

Resolution: duplicate
Status: newclosed

Thanks for the clarification.

I think this is already covered by #550, so closing this as a duplicate.

comment:4 by Olly Betts, 10 years ago

Milestone: 1.3.3

Fixed in [6f34d49].

comment:5 by Olly Betts, 10 years ago

Milestone: 1.3.31.2.21

Fix backported for 1.2.21.

Note: See TracTickets for help on using tickets.