Skip to content

Unresolved security metadata conflict for method #193

@smilesrg

Description

@smilesrg

RuntimeException: Unresolved security metadata conflict for method "Trim\Bundle\AnalyticsBundle\Controller\OverviewController::trafficByCountryMapAction" in "/home/sergey/public_html/trim/src/Trim/Bundle/TrimBundle/Controller/OverviewController.php". Please copy the respective annotations, and add @SatisfiesParentSecurityPolicy to the child method.

My parent method is:

    /**
     * @param Request $request
     *
     * @return Response
     *
     * @Config\Route("/all_clicks_by_country_map", name="all_clicks_by_country_map")
     * @Security\Secure(roles="ROLE_USER")
     * @Config\Method({"GET"})
     * @Config\Template ("TrimBundle:_v2/Overview:map_block_part.html.twig")
     */
    public function trafficByCountryMapAction(Request $request)
    {

My child method is:

    /**
     * @param Request $request
     *
     * @return Response
     *
     * @Config\Route("/all_clicks_by_country_map", name="beta_all_clicks_by_country_map")
     * @Security\Secure(roles="ROLE_USER")
     * @Security\SatisfiesParentSecurityPolicy
     * @Config\Method({"GET"})
     * @Config\Template ("TrimBundle:_v2/Overview:map_block_part.html.twig")
     */
    public function trafficByCountryMapAction(Request $request)
    {

Library version: "jms/security-extra-bundle": "1.5.*@dev"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions