File name with XML reserved characters not submitting with Display Name plugin
My group seems to have found a bug. If it is already known, please disregard.
We have an Asset Factory that allows a user to upload a file. It uses the "Display to System Name Plugin." We have found that when the uploaded file has one of a few special characters, the Asset Factory will reload the page with no error. Essentially it puts the user into a loop with no indication why the file won't write.
Characters we've used include: ',&,(,). We thought it might be the XML reserved characters but I don't think that all of those are of that set. We'll work around it for now but if we should be doing something differently, please let us know.
Thanks!
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Bradley Wagner on 07 Jun, 2012 02:11 PM
Does the issue continue when you remove the Display Name Plugin from the Asset Factory and try to upload the same files? Can you include one of the affected files?
We'd like to isolate whether it's specific to the plugin or happens with any file Asset Factory.
2 Posted by Webslung on 08 Jun, 2012 02:02 PM
When I remove the Display name plugin I do get an error, in red, stating:
"The name contains the following invalid characters: ), ("
It seems to me that the Display Name plugin is choking on the file name
clean-up (maybe in concert with the default error checking, maybe not).
What do you think?
JLR
3 Posted by Bradley Wagner on 08 Jun, 2012 07:00 PM
Can you include a few of the files as attachments? Yea, we do not allow
(
or)
characters in our file names but it sounds like we need to be handling them more gracefully in the plugin.4 Posted by Webslung on 08 Jun, 2012 07:05 PM
I don't think you need any specific files from me. Just add a '(' to the
file name and try to upload it, using an Asset Factory with the Display
Name to File Name plugin. I could attach if you really need me to but you
ought to be able to get the same results just by changing the file's name.
JLR
5 Posted by Bradley Wagner on 08 Jun, 2012 07:15 PM
Sorry, I'm just looking for other types of file names that could be causing problems. I'm aware of issues with parens but I wanted to see if there were other filenames/characters you were having issues with. You can definitely just list out the filenames here.
6 Posted by Webslung on 08 Jun, 2012 07:57 PM
We tried it with a '<' as well as a plain old apostrophe as well.
JLR
7 Posted by Ryan Griffith on 02 Jul, 2012 08:08 PM
Hi,
I was going through some older discussions and saw this one was still open, apologies for the late response. I was able to reproduce the behavior you described in Cascade 7.0.1 and it looks like the following characters are "invalid"
<
,'
,(
,)
,&
,,
I've identified this as a potential improvement in a future release. Feel free to track the progress using the link I provided.
In the meantime, a workaround would be to remove the identified special characters to avoid the behavior that was identified.
Feel free to reply or comment to re-open this discussion if you have additional questions.
Thanks.
Ryan Griffith closed this discussion on 02 Jul, 2012 08:08 PM.