Issue Bug Closed

#100288chash is corupted when send as an http link in mail program

Andreas Oelkers 03/24/23, 13:47 updated 07/10/24, 07:17

Description

Hello,

i have a problem when i send an link by email. The link is created via uriBuilder with an valid chash.
First i thought it is an email problem, but it is not working with several email programs.

i create an url with uriBuilder in the the controller.
@$link = $this->uriBuilder->reset()
->setTargetPageUid($pid)
->setNoCache(TRUE)
->setCreateAbsoluteUri(TRUE)
->setLanguage(‘en_EN’ )
->uriFor( $action,
[ $parameter ],
$controller,
$extension,
$plugin );@

then i send it in an email as link.

<a href="https://bastel.haste.de/bastel/termine?no_cache=1&tx_bbaotermin_c%5B0%5D%5Bhash%5D=MjE3MTIyMDExNQ%3D%3D&tx_bbaotermin_c%5Bcontroller%5D=Termin&cHash=d0372a70246a6d99d76760eec2d10144" > Termin best&auml;tigen</a>

When i click in the link in the email i get:

404 Page not found chash empty
the link called looks like this:

https://bastel.haste.de/bastel/termine?no_cache=1&tx_bbaotermin_c%5B0%5D%5Bhash%5D=MjE3MTIyMDExNQ%3D%3D&tx_bbaotermin_c%5Bcontroller%5D=Termin&cHash%EF%BF%BD372a70246a6d99d76760eec2d10144

When i access the source code of the email and copy and paste the url in a browser it is working.
@https://bastel.haste.de/bastel/termine?no_cache=1&tx_bbaotermin_c%5B0%5D%5Bhash%5D=MjE3MTIyMDExNQ%3D%3D&tx_bbaotermin_c%5Bcontroller%5D=Termin&cHash=d0372a70246a6d99d76760eec2d10144@

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 2

  1. Stefan Froemken commented and changed status New Needs Feedback 06/24/23, 12:06

    Hello Andreas,

    In your link I see following HEX values: %EF%BF%BD
    I know these HEX values. They are representing the BOM in UTF-8 files:
    https://de.wikipedia.org/wiki/Byte_Order_Mark

    Please not not work with BOM in any of your files.

    Stefan

  2. Georg Ringer commented and changed status Needs Feedback Closed 07/10/24, 07:17

    closing because lack of feedback. if still valid in v12, please open a new issue and reference this or contact me on slack