Bugzilla – Bug 38
Torque can't handle email addresses with apostrophes
Last modified: 2011-03-12 18:09:02 MST
You need to log in before you can comment on or make changes to this bug.
/* * Originally submitted to torquedev and torqueusers list * 11th December 2008. * * Same issue in current 2.3.x of Torque, no way of testing * 2.4.x yet but I suspect the bug is still there. */ A user who has an email address with an apostrophe (') in it was trying to submit jobs and getting the following rather cryptic error: $ qsub test.sh qsub: unmatched This is because Torque constructs a fake command line from all the #PBS lines in your script. It then parses the list to check you don't have any unmatched quotes in it and throws that error.. Problem is that ' is perfectly legal in an email address. I've tried escaping the ' as \' and jobs get submitted, but then the emails to the user that they've requested never get sent or received.
Chris, If we can get this to work with the apostrophe escaped or with the email address enclosed in double quotes would that be OK? I've got someone looking at this. At first I thought it would be nice if it just worked in the job script without having to escape anything, but when entered on the command line it has to be escaped or quoted, so I think the first thing we should do is get it working when the apostrophe is escaped or the email address is enclosed in double quotes. Then it might be nice to see if we can make it work in the job script without having to escape.
Hi Glen, Escaping or double quotes would be fine! cheers, Chris
Just a quick note that I'm adding myself to the cc list for this bug. Regards, Lev
Glen, could you transfer ownership of this bug to Lev please ?
I don't seem to have permission to do that
That's OK - I actually meant reporter not owner.. ;-)
I just tested this and it seems that it is still an issue...
The fix for this has now been checked in to 2.4 and 2.5. The fix is in the 2.5.5 release candidate, and the 2.4 fix can be found here: http://www.clusterresources.com/downloads/torque/snapshots/torque-2.4.12-snap.201102281416.tar.gz Cheers, David