View Issue Details

IDProjectCategoryView StatusLast Update
0006347OXID eShop (all versions)4.07. Source code, Testpublic2024-04-25 09:40
ReporterPrintusOxid Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
PlatformDesktop-PCOSWindowsOS Version7
Product Version4.9.7 / 5.2.7 
Summary0006347: oxview:_executeNewAction() not working as documented
Descriptiontrying to redirect to custom viewclass.
Wer are using PE-Version.
Steps To ReproduceAfter call of 'toBasket' the redirect url should be called.
Tried following urls as data for param $sNewAction:
'oxpr_subscription_frontend&currentStep=2&cnid=&anid=c87ee306ca3a9b2a445f7c8d6db0ee6d&listtype=list&'
'oxpr_subscription_frontend&currentStep=2&cnid=&anid=c87ee306ca3a9b2a445f7c8d6db0ee6d&listtype=list&'
'cl=oxpr_subscription_frontend&currentStep=2&cnid=&anid=c87ee306ca3a9b2a445f7c8d6db0ee6d&listtype=list&'
'cl=oxpr_subscription_frontend&currentStep=2&cnid=&anid=c87ee306ca3a9b2a445f7c8d6db0ee6d&listtype=list&'

trying the same url in different formats

try to use an url with some parameters after the classname: cl=<classname>&param1=value1&param2=value2.....
Additional InformationException ist thrown:

oxSystemComponentException-oxException (time: 2016-03-11 12:56:47): [0]: ERROR_MESSAGE_SYSTEMCOMPONENT_CLASSNOTFOUND
 Stack Trace: #0 /data/app/www/hf_oxid7/shop/core/oxutilsobject.php(180): oxUtilsObject->_getObject('oxsystemcompone...', 0, Array)
#1 [internal function]: oxUtilsObject->oxNew('oxSystemCompone...')
#2 /data/app/www/hf_oxid7/shop/core/oxfunctions.php(363): call_user_func_array(Array, Array)
#3 /data/app/www/hf_oxid7/shop/core/oxview.php(563): oxNew('oxSystemCompone...')
#4 /data/app/www/hf_oxid7/shop/core/oxview.php(518): oxView->_executeNewAction('cl=oxpr_subscripti...')
#5 /data/app/www/hf_oxid7/shop/application/controllers/oxubase.php(633): oxView->executeFunction('tobasket')
#6 /data/app/www/hf_oxid7/shop/core/oxshopcontrol.php(399): oxUBase->init()
#7 /data/app/www/hf_oxid7/shop/core/oxshopcontrol.php(330): oxShopControl->_initializeViewObject('start', 'tobasket', NULL, NULL)
#8 /data/app/www/hf_oxid7/shop/core/oxshopcontrol.php(118): oxShopControl->_process('start', 'tobasket', NULL, NULL)
#9 /data/app/www/hf_oxid7/shop/core/oxid.php(32): oxShopControl->start()
#10 /data/app/www/hf_oxid7/shop/index.php(18): Oxid::run()
0000011 {main}

 Faulty component --> cl=oxpr_subscription_frontend&currentStep=2&cnid=&anid=c87ee306ca3a9b2a445f7c8d6db0ee6d&listtype=list&
---------------------------------------------

as the exception shows, the function ist not able to extract the classname. (oxpr_subscription_frontend)
When I comment the exception in oxview (lines 558-566), the redirect works correctly.

the class 'oxpr_subscription_frontend' ist a user module which is activated in backend and working.
TagsNo tags attached.
ThemeOther
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Activities

michael_keiluweit

2024-03-06 17:49

administrator   ~0016383

Last edited: 2024-04-25 09:40

Without question mark the string "oxpr_subscription_frontend&currentStep=2&cnid=&anid=c87ee306ca3a9b2a445f7c8d6db0ee6d&listtype=list&" becomes
$className = "cl=oxpr_subscription_frontend&currentStep=2&cnid=&anid=c87ee306ca3a9b2a445f7c8d6db0ee6d&listtype=list&"

With question mark the string "oxpr_subscription_frontend?currentStep=2&cnid=&anid=c87ee306ca3a9b2a445f7c8d6db0ee6d&listtype=list&" becomes
$className = "oxpr_subscription_frontend"

Code documentation says:
Input example: "view_name?param1=val1&param2=val2" => "cl=view_name&param1=val1&param2=val2"


Can't reproduce the reported issue (EE 7.1.0).