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

Files with spaces in filenames not found when testing import #41

Open
Mesuva opened this issue Sep 28, 2017 · 0 comments
Open

Files with spaces in filenames not found when testing import #41

Mesuva opened this issue Sep 28, 2017 · 0 comments
Labels

Comments

@Mesuva
Copy link
Contributor

Mesuva commented Sep 28, 2017

We've found that during a batch status check that it will fail to find (many) files that have been imported because of spaces in their name.

For example, we'll see the message:
screen shot 2017-09-28 at 10 59 50 pm
Note that there is a space between Booklet and 1
Here's the file in source website:
screen shot 2017-09-28 at 11 03 18 pm
That same filename is what the file is exported as.

When it's imported into the batch, in the v8 file manager it looks like this:
screen shot 2017-09-28 at 11 00 14 pm
It appears to have imported the title correctly, but the stored filename no longer has the space in it. In v8 I'm pretty sure the sanitize function used on filenames before importing the files is what is responsible for replacing the spaces with underscores.

So then when it comes to the batch matching, it seems to be trying to match up the files via their filename and not the title, and therefore doesn't find file due to the replaced spaces with underscores.

Our workaround in our last import was to go back to the original export.xml file and do some find and replaces in that for the files that we knew existed but weren't matching. Then we imported that and they were found fine.

I'd suggest the fix would be to apply the same sanitize function to the filename that is imported from the migration xml file. I did look for a fix myself but simply couldn't find where this is done.

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

No branches or pull requests

2 participants