sulu / SuluCommunityBundle

Community features like Login, Registration, Password forget/reset for your sulu application.
MIT License
30 stars 39 forks source link

Can't create security_website.yaml (Configuration overwrite error) #154

Closed PanickingLynx closed 2 years ago

PanickingLynx commented 2 years ago
Q A
Bug? yes
New Feature? no
Community Bundle Version 2.0.X-dev
Sulu Version 2.4.4
Browser Version Microsoft Edge 103.0.1264.77 64-Bit

Actual Behavior

When adding any content to security_website.yaml that isn't a comment, Symfony will return the following error: Configuration path "<RULE NAME>" cannot be overwritten. You have to define all options for this path, and any of its sub-paths in one configuration section.

The """solution""" I found was to merge every security config file into one, which could be causing another Issue I've logged here: https://stackoverflow.com/questions/31464972/configuration-path-security-access-control-cannot-be-overwritten

Expected Behavior

Both configuration files get applied to their respective parts of the webpage (Admin / Webspace)

Steps to Reproduce

  1. Create security_website.yaml like the documentation
  2. Populate the file with said preset content and firewall rules
  3. Get the error when trying to load any page affected by the firewall zone
PanickingLynx commented 2 years ago

Right I figured it out. This is an error in the documentation on the installation page . All firewall rules and configs MUST be in security.yaml, not in two different files.