Forums / Developer / HTTP Post to URL conversion weird url with brackets in ie

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

eZ debug

Timing: Jan 18 2025 11:01:09
Script start
Timing: Jan 18 2025 11:01:09
Module start 'content'
Timing: Jan 18 2025 11:01:09
Module end 'content'
Timing: Jan 18 2025 11:01:10
Script end

Main resources:

Total runtime1.0381 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 587.9688180.7969
Module start 'content' 0.00980.8626 768.7656545.7656
Module end 'content' 0.87240.1656 1,314.5313332.7109
Script end 1.0380  1,647.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3926210.0002
Check MTime0.00150.1416210.0001
Mysql Total
Database connection0.00280.268510.0028
Mysqli_queries0.951291.62941910.0050
Looping result0.00290.28001890.0000
Template Total1.002096.520.5010
Template load0.00220.210420.0011
Template processing0.999896.312220.4999
Template load and register function0.00030.026210.0003
states
state_id_array0.00090.088710.0009
state_identifier_array0.00190.178420.0009
Override
Cache load0.00180.1749440.0000
Sytem overhead
Fetch class attribute can translate value0.00150.147830.0005
Fetch class attribute name0.00120.117530.0004
XML
Image XML parsing0.00090.090730.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00370.3561260.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs