Forums / Developer / Could eZ be used without GET?

Could eZ be used without GET?

Author Message

Felipe Jaramillo

Thursday 20 October 2005 2:00:40 pm

Hi,

We received a RFP from a former client and in the requirements they state that throughout the site no parameters can be passed using GET, or using URL analysis. All parameters must be passed using POST.

This is a very unusual requirement, and it's non-negotiable so I was wondering if eZ could be adapted to comply with this.

Thanks,

Felipe

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

Marko Žmak

Thursday 20 October 2005 3:23:09 pm

I think that using GET or POST methods doesn't really depend on eZ but on your browser. Usually for clicking on links the GET method is used, and for sending forms (unless specified otherwise) the POST method is used.

Practically you could make all your site navigation (where some parameters are required) through buttons in froms instead of links, and then fetch the parameter by using the ezhttp() operator.

So it is possible, but it could be a real pain in the ass...

If someone has a better idea, please suggest.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Xavier Dutoit

Friday 21 October 2005 3:46:31 am

You mean all the actions have to be done using post ? THat's the case with ez.

If the requirement is also for the browsing of the site, that's plain stupid, as typing http://thesite.com is going to be a get anyway.

X+

http://www.sydesy.com

Frederik Holljen

Friday 21 October 2005 4:53:00 am

Can you say something about the reason for this requirement? I can't see any reason why you would want a site with no GETs at all.

Felipe Jaramillo

Friday 21 October 2005 7:54:10 am

Thanks for the answers guys.

I was also very surprised about this, asked for clarification and generally did my best to avoid calling it for what it appears: plain stupid ;)

Xavier: what they seem concerned is about passing parameters and using parameters through GET, although it's a good point to note that all accesses are using GET in some way or another.

Frank: The restriction seemed to have come from the security department and applies to all the solution, ie. admin area, site, etc.

Marko: My first thought was to use a lot of forms with image buttons. To use links inside the text one could just use javascript to trigger the submit of the form.

In general, a real pain in the behind.

Thanks again,
Felipe

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

Marko Žmak

Friday 21 October 2005 11:04:12 am

Now that I think, there is a way to descrease the pain this problem could cause in the behind. You caould make a template, let's say stupid_link.tpl which generates a FORM and a link in it with javascript that submits the form. And then everywhere when you want to put a link in the site you use theis template with approprite parameters. This should'nt be so hard to use, actually for some of my sites I do display links using a special templates, when I want all the links to bi generated in the same way. You should only adapt this principle to your case.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Frederik Holljen

Sunday 23 October 2005 11:08:11 am

If the problem lies only in parameters and not in GET requests in general eZ publish should be pretty well suited. AFAIK we only use GET for the search right now. Other than that we use POST.

I'd like to speak to the guys in their security department though :)

Marko Žmak

Sunday 23 October 2005 2:50:52 pm

Yep, but sometimes users who make eZ sites maybe want to pass some additional parameters in the URL to their templates. And for that they sometimes need GET.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Frederik Holljen

Monday 24 October 2005 12:32:34 am

Yeah, you would have to restrain yourself then :)

Felipe Jaramillo

Tuesday 25 October 2005 9:38:40 am

Thanks for the input guys.

I suspect that the security department must have a CMS in mind that does this by default.

Looking at the Typo3 demo site (http://demo.typo3.org) I noticed it generates static .html files, meaning no GET parameters are passed. Anyone know if Typo3 would work?

Even with your valuable suggestions, making eZ comply would mean editing a lot of admin and site templates and in general means it's a pain to set up.

Thanks again,
Felipe

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

Alexandre Abric

Wednesday 26 October 2005 12:51:05 am

Well, eZ can also generate static HTML files ...

eZ debug

Timing: Jan 19 2025 00:14:32
Script start
Timing: Jan 19 2025 00:14:32
Module start 'content'
Timing: Jan 19 2025 00:14:33
Module end 'content'
Timing: Jan 19 2025 00:14:33
Script end

Main resources:

Total runtime1.0856 sec
Peak memory usage4,096.0000 KB
Database Queries224

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 587.7109180.8359
Module start 'content' 0.00680.9516 768.5469750.0156
Module end 'content' 0.95840.1270 1,518.5625344.4375
Script end 1.0854  1,863.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3658210.0002
Check MTime0.00150.1341210.0001
Mysql Total
Database connection0.00130.121210.0013
Mysqli_queries0.983190.55982240.0044
Looping result0.00250.22892220.0000
Template Total1.057097.420.5285
Template load0.00170.154720.0008
Template processing1.055397.212420.5277
Template load and register function0.00010.013510.0001
states
state_id_array0.00110.100110.0011
state_identifier_array0.00050.048420.0003
Override
Cache load0.00160.1457530.0000
Sytem overhead
Fetch class attribute can translate value0.00120.106560.0002
Fetch class attribute name0.00120.1106140.0001
XML
Image XML parsing0.00230.213660.0004
class_abstraction
Instantiating content class attribute0.00000.0030180.0000
General
dbfile0.00490.4470410.0001
String conversion0.00000.000830.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
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 6

Time used to render debug report: 0.0005 secs