-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing page seeds fails if any attached file path contains a white space character #836
Comments
I believe that |
morgant
added a commit
to morgant/comfortable-mexican-sofa
that referenced
this issue
Jul 25, 2018
…g whitespace characters. Issue comfy#836
morgant
added a commit
to morgant/comfortable-mexican-sofa
that referenced
this issue
Jul 27, 2018
Fixed in #837 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Running the
comfy:cms_seeds:import
rake task (e.g.rails 'comfy:cms_seeds:import[site-identifier]'
should import all the seed layout, pages, files, etc., including any file that has correctly escaped special characters (incl. white space).Actual behavior
If a page seed has an attached file path containing white space characters (esp. space), whether the special characters are escaped or not, it will fail with a
Errno::ENOENT: No such file or directory @ rb_sysopen
.Steps to reproduce
If you have a
db/cms_seeds/site-name/pages/some-page/content.html
seed file that includes an attached file, for example:If the attached file exists, attempt to import it by running
rails 'comfy:cms_seeds:import[site-name]'
, you'll get the following error:Note the file path is truncated at the white space character.
System configuration
Rails version: 5.2.0
CMS version: 2.0.16
Ruby version: 2.5.1p57
The text was updated successfully, but these errors were encountered: