[TYPO3-dev] Internal redirect creates cHash Exception

Daniel Ritter it.daniel.ritter at gmail.com
Thu Sep 10 14:03:28 CEST 2015


Quote: Stephan Schuler wrote on Thu, 10 September 2015 11:25
----------------------------------------------------
> Hi there.
> 
> It's a thing about RealURL and the core have different ideas about how empty GETvars should be treated when it comes to cHash. Well not exactly. It's more that reconstructing GETvars from url paths in RealURL skips empty arguments, which makes the reconstructed set of GETvars not matching the cHash being used to calculate. Something like that.
> 
> First suggestion: Skip the NULL argument in your „forward" call. That's the thing that corrupts your cHash. It gets added as empty value when calculating the outgoing cHash but not recognized when calculating the incoming one.
> 
> Second suggestion: Skip empty arguments from cHash. At all. That's not done by „cHashExcludedParameters", which names individual parameters to be excluded, no matter which value they have. Best thing to do is setting „cHashExcludedParametersIfEmpty" to either „*" or the list of GETvars you expect to happen to be NULL sometimes.
> 
> In general, the second way is by far better since that makes cHash work with NULL values in general. The first one means you need to use e.g. ugly condition view helpers in Fluid whenever you use actionViewHelpers hand expect a certain parameter to be NULL occasionally.
> 
> I'm not completely sure if you need to put the „cHashExcludedParametersIfEmpty" in your LocalConfiguration or AdditionalConfiguraiton. There are chances you can add this to the „ext_localconf.php" of your extension.
> 
> I *did* read your „is no option" statement. But imho not being able to adjust general settings for fixing a general misconfiguration issue is even more not an option.
> 
> Regards,
> 
> 
> 
> Am [DATE] schrieb "typo3-dev-bounces (at) lists.typo3.org im Auftrag von Daniel Ritter" <[ADDRESS]>:
> 
> >Sorry,
> >but changing settings of the install tool is no option for me. I need a solution internal of my extension.
> >
> Stephan Schuler
> Web-Entwickler | netlogix Web Solutions
> 
> Telefon: +49 (911) 539909 - 0
> E-Mail: Stephan.Schuler (at) netlogix.de
> Web: websolutions.netlogix.de
> 
> 
> 
> 
> netlogix GmbH & Co. KG
> IT-Services | IT-Training | Web Solutions
> Neuwieder Straße 10 | 90411 Nürnberg
> Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99
> E-Mail: info (at) netlogix.de | Web: http://www.netlogix.de
> 
> netlogix GmbH & Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA 13338)
> Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB 20634)
> Umsatzsteuer-Identifikationsnummer: DE 233472254
> Geschäftsführer: Stefan Buchta, Matthias Schmidt
> 
> 
> 
> _______________________________________________
> >TYPO3-dev mailing list
> >TYPO3-dev (at) lists.typo3.org
> >http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
----------------------------------------------------
Dear Stefan,
I skiped the null argument in my redirect, but there was no improvement The second suggestion is no option for me because there would be an effect for the global system. Thank you! 




More information about the TYPO3-dev mailing list