What are the Slack Archives?

Itโ€™s a history of our time together in the Slack Community! Thereโ€™s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you wonโ€™t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi there, after updating product-management to 0.19.2 we are experiencing exceptions regarding missi

UP58NR6BS
UP58NR6BS Posts: 19 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

Hi there, after updating product-management to 0.19.2 we are experiencing exceptions regarding missing xss_sanitize option. I assume there is another module providing that option which is not mentioned in the dependencies. fyi: currently using spryker/gui 3.29.0

Comments

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 โœจ - Novice
    edited January 2020

    Hi, probably it's about this one - https://github.com/spryker/util-sanitize-xss/releases/tag/1.0.0.

    I'll create an internal ticket about missing dependency.

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 โœจ - Novice

    Or maybe not. Checking.

  • UP58NR6BS
    UP58NR6BS Posts: 19 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    thx, Iโ€˜ll try that

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 โœจ - Novice

    Seems like you need to add plugin on project level in src/Pyz/Zed/Form/FormDependencyProvider.php:

    use Spryker\Zed\Form\Communication\Plugin\Form\CsrfFormPlugin;
    use Spryker\Zed\Form\FormDependencyProvider as SprykerFormDependencyProvider;   use Spryker\Zed\Form\FormDependencyProvider as SprykerFormDependencyProvider;
    use Spryker\Zed\Gui\Communication\Plugin\Form\NoValidateFormTypeExtensionFormPlugin;    use Spryker\Zed\Gui\Communication\Plugin\Form\NoValidateFormTypeExtensionFormPlugin;
    use Spryker\Zed\Gui\Communication\Plugin\Form\SanitizeXssTypeExtensionFormPlugin;
    use Spryker\Zed\Http\Communication\Pluign\Form\HttpFoundationFormPlugin;    use Spryker\Zed\Http\Communication\Pluign\Form\HttpFoundationFormPlugin;
    use Spryker\Zed\Validator\Communication\Plugin\Form\ValidatorFormPlugin;    use Spryker\Zed\Validator\Communication\Plugin\Form\ValidatorFormPlugin;
    use Spryker\Zed\WebProfiler\Communication\Plugin\Form\WebProfilerFormPlugin;    use Spryker\Zed\WebProfiler\Communication\Plugin\Form\WebProfilerFormPlugin;
    class FormDependencyProvider extends SprykerFormDependencyProvider  class FormDependencyProvider extends SprykerFormDependencyProvider
    {   {
        /**     /**
         * @return \Spryker\Shared\FormExtension\Dependency\Plugin\FormPluginInterface[]         * @return \Spryker\Shared\FormExtension\Dependency\Plugin\FormPluginInterface[]
         */      */
        protected function getFormPlugins(): array      protected function getFormPlugins(): array
        {       {
            return [            return [
                new ValidatorFormPlugin(),              new ValidatorFormPlugin(),
                new HttpFoundationFormPlugin(),             new HttpFoundationFormPlugin(),
                new CsrfFormPlugin(),               new CsrfFormPlugin(),
                new NoValidateFormTypeExtensionFormPlugin(),                new NoValidateFormTypeExtensionFormPlugin(),
                new WebProfilerFormPlugin(),                new WebProfilerFormPlugin(),
                new SanitizeXssTypeExtensionFormPlugin(),
            ];          ];
        }       }
    }   }
    
  • UP58NR6BS
    UP58NR6BS Posts: 19 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    hmm, I added the dependency provider, but the plugin does not exist. which module should I require?

  • UP58NR6BS
    UP58NR6BS Posts: 19 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    sorry, my mistake. I meant missing imports regarding spryker/http and spryker/form, but so could resolve them now. Maybe you want to add these two to the dependencies as well?

  • UP58NR6BS
    UP58NR6BS Posts: 19 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    and you may want to rename Spryker/Zed/Http/Communication/Pluign ...?