Project

General

Profile

Actions

Bug #100288

open

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

Added by Andreas Oelkers about 1 year ago. Updated 12 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2023-03-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.2
Tags:
chash action call
Complexity:
Is Regression:
Sprint Focus:

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ä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

Actions #1

Updated by Stefan Froemken 12 months ago

  • Status changed from New to Needs Feedback

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

Actions

Also available in: Atom PDF