This project is archived and is in readonly mode.
[PATCH] "nested *?+ in regexp" in Engine initializer for funny FS paths.
Reported by phs | April 19th, 2010 @ 08:37 PM
/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.
Comments and changes to this ticket
-
phs April 19th, 2010 @ 08:46 PM
- 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.
-
Repository April 19th, 2010 @ 09:54 PM
- State changed from new to resolved
(from [d03196c89e92e9b3aa553bf5f7a9bcb23c955025]) Regexp.escape(load_path) in add_routing_namespaces initializer [#4442 state:resolved]
Signed-off-by: Michael Koziarski michael@koziarski.com
http://github.com/rails/rails/commit/d03196c89e92e9b3aa553bf5f7a9bc... -
Jeremy Kemper April 19th, 2010 @ 10:47 PM
- State changed from resolved to incomplete
- Assigned user set to Michael Koziarski
Missing a test case.
-
phs April 19th, 2010 @ 11:12 PM
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?
-
Santiago Pastorino February 2nd, 2011 @ 04:35 PM
- 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.
-
Santiago Pastorino February 2nd, 2011 @ 04:35 PM
- State changed from open to stale
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 4442 [PATCH] "nested *?+ in regexp" in Engine initializer for funny FS paths. (from [d03196c89e92e9b3aa553bf5f7a9bcb23c955025]) Regexp....