HTTP Post to URL conversion weird url with brackets in ie

Author Message

Marco Caldari

Wednesday 20 August 2008 2:00:30 am

Hello Everybody,
On ez 3.10, I'm trying to set up a HTTP Post to URL to filter on view parameters like ez does in http://ez.no/partner/worldwide_partners .
I followed the example at url http://ez.no/ezpublish/documentation/incoming/http_post_to_url_conversion and everything works smooth with mozilla firefox...

After the post the url..
/content/view/full/828/(ay)/2008/(am)/08/(ad)/14/(py)/2008/(pm)/08/(pd)/14/(service)/5/(stars)/4
is created and fetch works fine.. this with <b>mozilla firefox</b>,

If I repeat the post with <b>internet explorer</b> i get instead this url..
/content/view/full/828/%28ay%29/2008/%28am%29/09/%28ad%29/05/%28py%29/2008/%28pm%29/09/%28pd%29/12/%28service%29/0/%28stars%29/4

with curved brackets replaced by %28 and %29 of course the fetch doens't work anymore and I get results from the fetch only if i reload the page..

I confronted what ez does here:
http://ez.no/partner/worldwide_partners
where everything works fine with internet explorer too
ad what is explained here
http://ez.no/ezpublish/documentation/incoming/http_post_to_url_conversion

And I see that in the above mentioned page EZ doesn't use:

<form action="content/action" method="post">

but:

<form action="/ezposttoview/action" method="post">

And the brackets are placed via action and not via html,
to explain it better..
I have in my html of the posting page:

<select name="(service)">     


while ez in the worldwide_partners would have:

<select name="service">     


Adding the bracket later, via post action, to get /(service)/5
I hacked the kernel /kernel/content/action.php at line 1304 to ad the brackets and palced in my html:

<select name="service">     


everithing works but the problem still remains with internet explorer

Checked the http headers, checked my files, everithing is utf-8..

Where can I get this /ezposttoview/action ?
Infact if I call it in my posting html page tpl I get kernel (20) module not found..

Can somenone help me to fix this issue?
Thanks in advance,
Marco

Hans Melis

Wednesday 20 August 2008 2:51:35 am

Hello Marco,

The reason for the failure in IE should not be the %28 and %29. We also use the POST to URL conversion in several places and IE indeed shows the urlencoded brackets but it still works fine.

Hans
http://blog.hansmelis.be

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:17:07
Script start
Timing: Jan 31 2025 01:17:07
Module start 'layout'
Timing: Jan 31 2025 01:17:07
Module start 'content'
Timing: Jan 31 2025 01:17:07
Module end 'content'
Timing: Jan 31 2025 01:17:07
Script end

Main resources:

Total runtime0.0230 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.3906151.2422
Module start 'layout' 0.00500.0034 739.6328220.7500
Module start 'content' 0.00840.0133 960.3828997.9922
Module end 'content' 0.02170.0013 1,958.375033.9922
Script end 0.0230  1,992.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.3639140.0002
Check MTime0.00125.1379140.0001
Mysql Total
Database connection0.00072.837110.0007
Mysqli_queries0.00219.312030.0007
Looping result0.00000.047710.0000
Template Total0.00093.910.0009
Template load0.00073.072610.0007
Template processing0.00020.852710.0002
Override
Cache load0.00052.157610.0005
General
dbfile0.00125.275880.0002
String conversion0.00000.027040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs