Git Product home page Git Product logo

Comments (10)

Seldaek avatar Seldaek commented on July 22, 2024

Which symfony version are you using?

from nelmiosecuritybundle.

spbentz avatar spbentz commented on July 22, 2024

Hello Jordi,
I’m running the latest version (SF 2.7.3) and I had the previous when writing for this issue.
Stéphane

from nelmiosecuritybundle.

Seldaek avatar Seldaek commented on July 22, 2024

Ok but then request_stack should be available.

from nelmiosecuritybundle.

spbentz avatar spbentz commented on July 22, 2024

I still have this :

[event_dispatcher] Registered listeners by event

[Symfony\Component\DependencyInjection\Exception\InactiveScopeException]
You cannot create a service ("nelmio_security.clickjacking_listener") of an inactive scope ("request").

Same problem with "nelmio_security.content_type_listener" and "nelmio_security.content_type_listener".

If I remove "scope: request" in the services, it's OK :

services:
nelmio_security.clickjacking_listener:
// scope: request
class: Nelmio\SecurityBundle\EventListener\ClickjackingListener
arguments:
- %nelmio_security.clickjacking.paths%
tags:
- { name: kernel.event_listener, event: kernel.response, method: onKernelResponse }

from nelmiosecuritybundle.

spbentz avatar spbentz commented on July 22, 2024

I tried to solve the problem by removing services without success. To be more precise, the error is displayed only when running "app/console debug:event-dispatcher kernel.response"

from nelmiosecuritybundle.

pculka avatar pculka commented on July 22, 2024

This seems to still be an issue with Symfony 2.7. Any fix ?

from nelmiosecuritybundle.

Seldaek avatar Seldaek commented on July 22, 2024

from nelmiosecuritybundle.

pculka avatar pculka commented on July 22, 2024

http://pastebin.com/kGVgTEGB here it is

produced error:

[vagrant@www01 current]$ php app/console debug:event-dispatcher

Registered Listeners Grouped by Event
=====================================



  [Symfony\Component\DependencyInjection\Exception\InactiveScopeException]
  You cannot create a service ("nelmio_security.content_type_listener") of an inactive scope ("request").

which is kinda awkward

from nelmiosecuritybundle.

pculka avatar pculka commented on July 22, 2024

as soon as I remove the content_type.nosniff: true, it works

from nelmiosecuritybundle.

Seldaek avatar Seldaek commented on July 22, 2024

@pculka do you still get this with the latest version of the bundle? Because we removed the whole scope stuff as it was incompatible with sf3.

from nelmiosecuritybundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.