Error using "plugin=fileupload" in url with sef

lcollong

FabriKant d'applications web
Hi,

I have a strange error. Using a link on a detail view with an href generating an url which should trigger the downloading of the corresponding file. In "normal mode" (no sef no rewrite), it works very well. In sef mode, it seems to loose the formid ref. Here is the result of my tries :

with SEF and rewrite :
Code:
http://wwww.mysite.com/affichage-vue-detail-sans-modules/plugin.pluginAjax/16/9324.html?plugin=fileupload&method=ajax_download&element_id=197&repeatcount=0
generates an error 404 (0 form does not exists)

with sef but without rewriting :
Code:
http://wwww.mysite.com/index.php/affichage-vue-detail-sans-modules/plugin.pluginAjax/16/9324.html?plugin=fileupload&method=ajax_download&element_id=197&repeatcount=0
generates an error 404 (0 form does not exists)

without sef nor rewriting :
Code:
http://www.mysite.com/index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=fileupload&method=ajax_download&element_id=197&formid=16&rowid=9324&repeatcount=0&Itemid=304
trigger the download immediatly without any errors

The way the formid is passed as a parameter in the sef url seems to be the problem.

Could be tested on the B4 site of mysites. Menu "Contribuer"-->"derni?res contributions". Click on a name under "Toponyme" to display the detail view. At the bottom, clicking on one of the labels (photo n? 1/2/3/4) should trigger the download of the corresponding image. Currently set with SEF and Rewrite on. But switching them off in the administrator access, let them work.
 
No problem. The security issue makes me busy also ;-)
The test site is still currently running J3.7.2/F3.6. I plan to update it shortly except if you prefer I drive some test on this version.
 
Friendly bump.
I've upgraded the site to J3.7.4 and F3.7 (regular J! update, not the last github).
The problem described on my first post is still there.
 
Yeah, our router has no concept of 'plugin.pluginAjax' as the first segment of the route. The first segment has to be a view (list, form, details, inport, etc). For 3.8 and beyond, I'll probably wind up having to rewrite the router, as J! moves steadily towards the New Improved 4.x router, and can look at making pluginAjax SEF routable. But for now, it is what it is.

You'll have to use the full, un-SEF'ed URL.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top