Ticket #13491 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

Bad "request['URL']" for "browser:page" with "attribute" attribute

Reported by: dieter Owned by:
Priority: major Milestone: 4.x
Component: Backend (Python) Version: 4.2
Keywords: Cc: dieter@…

Description

If a view is registered by

<browser:page name="<name>" attribute="<attr>" ... />

its request['URL'] gets a value of ".../<name>/<attr>" (instead of ".../<name>" -- the value without an "attribute" attribute in the registration).

As a consequence, relative urls are wrongly resolved (Zope sets a bad "base" element in HTML responses) and absolute urls computed based on request['URL'] and friends can be wrong (if the artificial "<attr>" url segment is not taken into account).

Change History

comment:1 Changed 3 years ago by kleist

  • Priority changed from minor to major
  • Status changed from new to confirmed
  • Component changed from Unknown to Backend (Python)

comment:2 Changed 3 years ago by dieter

  • Cc dueter@… added

comment:3 Changed 3 years ago by dieter

  • Cc dieter@… added; dueter@… removed
Note: See TracTickets for help on using tickets.