Ticket #6925 (closed Bug: fixed)

Opened 7 years ago

Last modified 7 years ago

default_error_message.pt bypasses types_not_searched when displaying alternates

Reported by: newbery Owned by: optilude
Priority: minor Milestone: 3.0
Component: General Version:
Keywords: Cc:

Description

If you request a non-existing resource, the default_error_message.pt template offers several options based on the id you requested. The search results you get bypass the site_properties blacklist "types_not_searched".

I believe the problem can be traced to the search_for_similar method in plone.app.redirector.browser

Attachments

browser.diff Download (737 bytes) - added by rsantos 7 years ago.
Since the 'queryCatalog' script respects the site-wide search configuration, it may be better use it directly. This patches 'plone.app.redirector.browser'.

Change History

comment:1 Changed 7 years ago by optilude

  • Priority changed from major to minor
  • Component changed from Unknown to Infrastructure

You're probably right. It's just a catalog search.

Changed 7 years ago by rsantos

Since the 'queryCatalog' script respects the site-wide search configuration, it may be better use it directly. This patches 'plone.app.redirector.browser'.

comment:2 Changed 7 years ago by optilude

  • Owner changed from somebody to optilude

comment:3 Changed 7 years ago by optilude

  • Status changed from new to closed
  • Resolution set to fixed

(In [16529]) Use friendly types to search for redirect misses. This fixes #6925.

comment:4 Changed 22 months ago by davisagli

  • Component changed from Infrastructure to General
Note: See TracTickets for help on using tickets.