View Issue Details

IDProjectCategoryView StatusLast Update
0002112OXID eShop (all versions)2. ----- eShop backend (admin) -----public2011-10-27 15:03
Reporteravenger Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.4.2 revision 29492 
Fixed in Version4.5.5 revision 40299 
Summary0002112: Wrong redirection after exception in admin area
DescriptionIf an exception occurs in the admin-area (e.g. a missing module file), the redirection taken is wrong, so that the frontend-startpage is displayed in the lower half of the admin-screen.

Reason is, that in oxshopcontrol, function start() the shop is redirected to "$myConfig->getShopHomeUrl() .'cl=start'", not taking into account, that we are currently in the admin-area.

        try {
            $this->_process( $sClass, $sFunction );
        } catch( oxSystemComponentException $oEx ) {
            //possible reason: class does not exist etc. --> just redirect to start page
            oxUtilsView::getInstance()->addErrorToDisplay( $oEx );
            oxUtils::getInstance()->redirect( $myConfig->getShopHomeUrl() .'cl=start' );
        } catch ( oxCookieException $oEx ) {
            // redirect to start page and display the error
            oxUtilsView::getInstance()->addErrorToDisplay( $oEx );
            oxUtils::getInstance()->redirect( $myConfig->getShopHomeUrl() .'cl=start' );
        }
Steps To ReproduceRemove module file of a class used in the admin
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

Linas Kukulskis

2011-10-27 15:03

reporter   ~0005346

in debug mode -1 shows nise exeption and etc. fixed in earlier versions