Ticket #13107 (confirmed Bug)

Opened 4 years ago

Last modified 4 years ago

Check code for obj.absolute_url_path(), many should probably be replaced by obj.getPhysicalPath()

Reported by: kleist Owned by:
Priority: minor Milestone: 4.x
Component: General Version: 4.1
Keywords: VHM Cc:

Description

As noted in https://dev.plone.org/ticket/8787#comment:21

obj.absolute_url_path()

is not robust against virtual hosting, and we should instead use

obj.getPhysicalPath()

When grep:ing the Plone code, I find quite a few usages of obj.absolute_url_path(). However, I'm not guru enough to decide if all of them should be replaced by obj.getPhysicalPath()...

More here:

 https://github.com/collective/collective.developermanual/blob/master/source/serving/traversing.rst#id16

Change History

comment:1 Changed 4 years ago by kleist

  • Status changed from new to confirmed
  • Keywords VHM added
  • Component changed from Unknown to General
Note: See TracTickets for help on using tickets.