Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2412 (closed defect: fixed)

Opened 10 years ago

Last modified 9 years ago

TG 2.1a2 mishandling url parameters

Reported by: khorn Owned by: percious
Priority: normal Milestone: 2.1b1
Component: TurboGears Version: 2.1a2
Severity: normal Keywords:
Cc:

Description

reported by Robert Forkel on the mailing list:

hi all,
after upgrading from tg 2.0.3 to tg 2.1a2 (with webob 0.9.6.1 and
paste 1.7.2) i ran into the following problem:
parameters for controllers are handled differently depending on how
they are passed. with 2.0.3 for  both urls
http://localhost:8080/about/Abip%C3%B3n
and
http://localhost:8080/about?arg1=Abip%C3%B3n
the value Abip%C3%B3n was url decoded and passed to the controller as
unicode object. now this only the case with the latter; with the first
version, the controller receives arg1= 'Abip%C3%B3n'.
is this a bug or an intended change?
regards,
robert

actually apples to 2.1a2 but there's no version in Trac for that

Change History

comment:1 Changed 10 years ago by jorge.vargas

  • Version changed from 2.1a1 to 2.1a2
  • Milestone changed from __unclassified__ to 2.1b1

comment:2 Changed 9 years ago by percious

Do you have example controller code to show?

comment:3 Changed 9 years ago by percious

  • Owner set to percious
  • Status changed from new to assigned

comment:4 Changed 9 years ago by percious

okay, i added a failing test for this one. I have to look into where the decoding of arguments happens to see what is going on here.

comment:5 Changed 9 years ago by percious

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.