Project

General

Profile

Actions

Bug #66171

closed

Wizard element browser crashes with invalid identifier

Added by Xavier Perseguers over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend API
Target version:
Start date:
2015-03-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
hard
Is Regression:
No
Sprint Focus:

Description

Problem

In FlexForms or TCA, when you have such definition:

<path>
    <TCEforms>
        <exclude>0</exclude>
        <label>LLL:EXT:restdoc/Resources/Private/Language/locallang_db.xml:pi_flexform.path</label>
        <config>
            <type>input</type>
            <size>48</size>
            <eval>required,trim</eval>
            <wizards type="array">
                <_PADDING>2</_PADDING>
                <link type="array">
                    <type>popup</type>
                    <title>LLL:EXT:restdoc/Resources/Private/Language/locallang_db.xml:pi_flexform.path.wizard</title>
                    <icon>link_popup.gif</icon>
                    <module type="array">
                        <name>wizard_element_browser</name>
                        <urlParameters type="array">
                            <mode>wizard</mode>
                            <act>file</act>
                        </urlParameters>
                    </module>
                    <params type="array">
                        <blindLinkOptions>page,url,mail,spec,file</blindLinkOptions>
                    </params>
                    <JSopenParams>height=500,width=400,status=0,menubar=0,scrollbars=1</JSopenParams>
                </link>
            </wizards>
        </config>
    </TCEforms>
</path>

If you put an invalid identifier in the input text (such as file:1:/invalid/directory/) and try to open the wizard with , it crashes with

#1329647780: Object with identifier "1:/invalid/directory/" does not exist in storage (More information)

Expected output

Just like before FAL: the tree without any node (directory) selected and no exception at all, as this is not user friendly and may easily happen.


Files

wizard.png (50.8 KB) wizard.png Xavier Perseguers, 2015-03-31 09:41
Actions

Also available in: Atom PDF