Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] "nested *?+ in regexp" in Engine initializer for funny FS paths.

#4442

/opt/local/lib/ruby/gems/1.8/gems/railties-3.0.0.beta2/lib/rails/engine.rb:169: nested *?+ in regexp: /\/private\/var\/folders\/jk\/jkDWr4rvFmaZpmyyRu83zE+++TI\/-Tmp-\/engineer-cucumber-1690\/gemrepo\/gems\/my_engine-0.0.0\/app\/controllers\/?/ (RegexpError)

Notice my app path has a '+++' in it (it's a tmp dir path on a mac.) This makes railties/lib/rails/engine cranky since it makes a regex from the naked path. See patch (soon) which adds a Regexp.escape.

Reported by phs · April 19th, 2010 @ 08:37 PM

State: stale
Milestone: none
Assigned to: Michael Koziarski Michael Koziarski
Importance: none

Activity

  1. phs
  2. phs
    phs
    • Title changed from "nested *?+ in regexp" in Engine initializer for funny FS paths. to [PATCH] "nested *?+ in regexp" in Engine initializer for funny FS paths.

    April 19th, 2010 @ 08:46 PM

  3. Repository
  4. Jeremy Kemper
    Jeremy Kemper
    • State changed from resolved to incomplete
    • Assigned user set to Michael Koziarski

    Missing a test case.

    April 19th, 2010 @ 10:47 PM

  5. phs
    phs

    I'm happy to supply a test, but I need a tip on what suite I could put it in. Is there one around that can run engine initializers?

    April 19th, 2010 @ 11:12 PM

  6. Santiago Pastorino
    Santiago Pastorino
    • State changed from incomplete to open

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 2nd, 2011 @ 04:35 PM

  7. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 04:35 PM