View Issue Details

IDProjectCategoryView StatusLast Update
0006024OXID eShop (all versions)4.07. Source code, Testpublic2015-02-24 15:51
Reporterd.bloessl Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionwon't fix 
Product Version4.9.2 / 5.2.2 
Summary0006024: oxscript not working for ajax-requests
DescriptionIf you load a full page via Ajax (HTTP_X_REQUESTED_WITH == xmlhttprequest), the oxscript smarty tag does not render the scripts, added as includes.

Problem is located in smarty_function_oxscript(), because $blAjaxRequest will be set to true, but it's not a widget request.

This leads to big problems, if you are running a full page cache in front of your shop!
Steps To ReproduceI attached a test.php file, which can be put in the document root and where a path to a article detail page has to be put in.
If you are testing with Azure theme, you will see, that the whole script-block is not in the source code anymore, after requesting it via AJAX.


Completely missing:
<script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/jquery.min.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/cookie/jquery.cookie.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/jquery-ui.min.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxcookienote.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxmodalpopup.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxfacebook.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/superfish/hoverIntent.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/superfish/supersubs.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/superfish/superfish.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/cloudzoom.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxarticleactionlinksselect.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxrating.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxamountpriceselect.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/modules/oe/oepaypal/out/src/js/oepaypalonclickproceedaction.js"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxmorepictures.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxzoompictures.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxinputvalidator.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxreview.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxarticlebox.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxflyoutbox.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxloginbox.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxinnerlabel.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxtopmenu.js?1415871394"></script>
<script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxequalizer.js?1415871394"></script>
Additional InformationThe bug is reproducable in an OXID EE 5.1.7 and OXID PE 4.9.2, I guess in all shops, that are using widgets.
TagsNo tags attached.
Attached Files
test.php (401 bytes)   
<html>
<head>
    <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
    <script type="text/javascript">
        $(document).ready( function() {
            $.get('/Wakeboarding/Wakeboards/Wakeboard-LIQUID-FORCE-SHANE-2010.html', function(data) {
                $('body').text(data);
            });
        });
    </script>
</head>
<body>


</body>


</html>
test.php (401 bytes)   
ThemeAll
BrowserAll
PHP Versionany
Database Versionany

Activities

jurate.baseviciene

2015-02-09 13:39

reporter   ~0010655

waiting for the PO decision

jurate.baseviciene

2015-02-09 13:53

reporter   ~0010656

Hi,

We changed severity to feature, because it is more feature request.
Our current implementation uses widgets for caching.
From the first look, you are trying to implement custom caching solution, which is not using commong mechanisms provided by OXID eShop core. Please allow me to know the reasons behind it, so we could help.

Best regards,
Jurate

QA

2015-02-24 15:51

administrator   ~0010714

Last edited: 2015-02-24 17:45

no feedback from reporter for 2 weeks.
closed.