power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

Issues with long component ID ? #429

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I have a TPage, with a component of mine named WholeActionsConfigurator.
The declaration is like this : <com:WholeActionsConfigurator 
ID="WholeActionsConfigurator" />, it extends TTemplateControl
In this last component i declare another component which also extends 
TTemplateControl, The declaration :
<com:ProcessDocumentDepositConfigurator ID="ProcessDocumentDepositConfigurator" 
/>

ProcessDocumentDepositConfigurator is composed with a TDropDownList and a 
TActiveButton, the callback method just echo the SelectedValue of 
TDropDownList. 
The problem is with those long component ID, echo of the ddl selected value 
doesn't work, if i look at the posted data in firebug the value with component 
id is there and good. If i rename ProcessDocumentDepositConfigurator with 
ConfigDepotDoc, there is no problem i have the correct output in my callback 
method.

So my question is : Is there an issue with long component ID ? or am i missing 
something elsewhere, maybe in php.ini or another config file ?

Thanks for the answer.
Happy new year :-)

PS : Sorry if this is not the right place to post, i didn't know if i should 
ask in pradosoft forum or here.

Original issue reported on code.google.com by Maxime.D...@gmail.com on 31 Dec 2012 at 9:11

GoogleCodeExporter commented 8 years ago
OK i found the reason, this was totally not a prado issue but a 
misconfiguration of php. 
The fact is that Suhosin is enabled on my server (i didn't notice :/) and was 
configured whith :
suhosin.post.max_name_length=64
suhosin.post.max_totalname_length=254
suhosin.request.max_totalname_length=254
suhosin.request.max_varname_length=64

Since the posted variable of dllFileTypes was 
ctl0%24Main%24WholeActionsConfigurator%24ConfigDepotDoc%24ddlFileTypes, it was 
rejected by suhosin because of a var length = 70 !

Now my new suhosin conf in php.ini looks like this
[suhosin]
suhosin.post.max_name_length=255
suhosin.post.max_totalname_length=1024
suhosin.request.max_totalname_length=1024
suhosin.request.max_varname_length=255

And everything works like a charm !

Original comment by Maxime.D...@gmail.com on 31 Dec 2012 at 11:33

GoogleCodeExporter commented 8 years ago
Thank you for reporting how you were able to resolve the issue

Original comment by ctrlal...@gmail.com on 31 Dec 2012 at 11:38