Skip to content
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

paths.xpl breaks on filename containing %20 #3

Open
sbulka opened this issue Aug 18, 2017 · 1 comment
Open

paths.xpl breaks on filename containing %20 #3

sbulka opened this issue Aug 18, 2017 · 1 comment

Comments

@sbulka
Copy link

sbulka commented Aug 18, 2017

We had some images containing spaces, which were automatically translated to %20 in their filenames.
Our pipeline then failed with unknown error.
After renaming %20 to _, the pipeline worked.
Should handle it in the default stylesheet, or at least die with a more useful error message.

Sample filename: 20_Abb.5%20Keramiklibrierung_600_grau.tif

@gimsieke
Copy link
Contributor

But paths.xpl relies on tr:file-uri, and if I invoke

calabash/calabash.sh xproc-util/file-uri/xpl/file-uri.xpl 'filename=20_Abb.5%20Keramiklibrierung_600_grau.tif'

the result is

<c:result
  local-href="file:/C:/cygwin/home/gerrit/Dev/docx-splitter-frontend/20_Abb.5%20Keramiklibrierung_600_grau.tif"
  lastpath="20_Abb.5%20Keramiklibrierung_600_grau.tif"
  os-path="C:/cygwin/home/gerrit/Dev/docx-splitter-frontend/20_Abb.5 Keramiklibrierung_600_grau.tif"
  cwd="C:/cygwin/home/gerrit/Dev/docx-splitter-frontend/"
  href="file:/C:/cygwin/home/gerrit/Dev/docx-splitter-frontend/20_Abb.5%20Keramiklibrierung_600_grau.tif"/>

which at least in its @os-path attribute contains proper spaces. Maybe you can point me to the pipeline in question in a private message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants