cache error: bad URI(is not URI?) when blanks in Rails.root path #926

Closed
widescape opened this Issue Sep 1, 2011 · 3 comments

Comments

Projects
None yet
4 participants
@widescape
Contributor

widescape commented Sep 1, 2011

After running Refiniery 1.0.8 for the first time I got this error message at every request:
cache error: bad URI(is not URI?): file:/Users/robert/Ruby on Rails/CMS/RefineryAQX/tmp/dragonfly/cache/meta

When I renamed my folder "Ruby on Rails" to "Ruby-on-Rails" (blanks replaced by dashes) the errors disappeared.

Solution found here:
http://snippets.aktagon.com/snippets/367-How-to-fix-bad-URI-is-not-URI-

Simply replace URI.parse(...) by URI.parse(URI.encode(...)) - whereever Refinery/dragonfly calls this.

@parndt

This comment has been minimized.

Show comment Hide comment
@parndt

parndt Sep 1, 2011

Owner

How would we fix this as it seems to be a generic rails thing?

Owner

parndt commented Sep 1, 2011

How would we fix this as it seems to be a generic rails thing?

parndt added a commit that referenced this issue Sep 3, 2011

@ugisozols ugisozols closed this Sep 3, 2011

@pedropaG

This comment has been minimized.

Show comment Hide comment
@pedropaG

pedropaG Aug 28, 2012

I have the same problem with images, in 2.0.8.
Copying that change to images/lib/refinery/images/dragonfly.rb fixes it

I have the same problem with images, in 2.0.8.
Copying that change to images/lib/refinery/images/dragonfly.rb fixes it

@ugisozols

This comment has been minimized.

Show comment Hide comment
@ugisozols

ugisozols Aug 28, 2012

Owner

@pedropaG would you like to send a PR? Thanks!

Owner

ugisozols commented Aug 28, 2012

@pedropaG would you like to send a PR? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment