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

CmsDefaultFileNameGenerator doesn't recognize folders correctly, possible resulting in a collision #357

Closed
mtvweb opened this issue Oct 10, 2015 · 1 comment

Comments

@mtvweb
Copy link

mtvweb commented Oct 10, 2015

Folders are added with a trailing slash to the list, so they aren't recognized as an existing resource.

getNewFileName should do to build the list something like the following:

for (CmsResource res : resources) {
fileNames.add(cms.getSitePath(res).replaceFirst("/$", ""));
}

which removes the trailing slash.

@gWestenberger
Copy link
Contributor

Fixed in release 9.5.3.

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