Giter Site home page Giter Site logo

Comments (9)

presidentbeef avatar presidentbeef commented on May 22, 2024

Hi Adam, thanks for reporting this issue!

Would you be willing to share your configuration file (privately, if you would like) or at least an example that reproduces this error?

If so, if you can run the latest Brakeman source that I just updated, it should indicate which file in particular caused the problem.

Thanks again!

from brakeman.

ocxo avatar ocxo commented on May 22, 2024

Sure. Do you want to see the application.rb config file? What email can I reach you at?

from brakeman.

presidentbeef avatar presidentbeef commented on May 22, 2024

It could be application.rb or environments/production.rb. You can send it/them to [email protected].

Thanks!

from brakeman.

ocxo avatar ocxo commented on May 22, 2024

So it looks like I only get that error when running as a gem. When I clone the project and specify the path to bin/brakeman it works fine. Could it possibly be a conflict with rvm? I don't think it's anything in our application causing the problem as it works when I specify the path.

from brakeman.

presidentbeef avatar presidentbeef commented on May 22, 2024

I don't think it's an issue with rvm - I use rvm constantly.

Did you see a message like [Notice] Error while processing config/application.rb ?

If not, seems like there are two possibilities:

  1. Brakeman is behaving differently when installed as a gem.
  2. There is an issue in Rails3ConfigProcessor that is tripping on something in your configuration, but a code change since 1.0 somehow fixes/hides it.

To check (1), build the gem from source, install it, and try again:

gem build brakeman.gemspec
gem install brakeman-1.0.0.gem

To check (2), revert Brakeman source to 1.0.0 and run directly from bin/brakeman:

git reset --hard 55a72956273c33b98a8ad2448e041f0373678afe
./bin/brakeman your/app

from brakeman.

ocxo avatar ocxo commented on May 22, 2024

I think I found the problem. RVM was using 1.8 as the default, app was on 1.9. Setting 'rvm system 1.9.3-p0' fixed it. Thanks and sorry for the red herring.

from brakeman.

presidentbeef avatar presidentbeef commented on May 22, 2024

Are you sure that was the issue? I'm having trouble figuring out how that would cause that problem. If you were using 1.9 syntax, then you should get a parsing error...

from brakeman.

ocxo avatar ocxo commented on May 22, 2024

Yeah as far as I can tell. The only thing I've changed was making sure the version of ruby that RVM was using was the same as what the app was using.

from brakeman.

presidentbeef avatar presidentbeef commented on May 22, 2024

Okay, cool. I will close this for now. Feel free to reopen if the problem returns.

from brakeman.

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.