When attempting to attach a text file containing SQL, JIRA throws a 500 exception. In the JIRA/logs directory, the latest excption contains:
Caused by: java.text.ParseException: Expected separator '/' instead of '\'
The complete error is attached.
This has not happened before. In fact this file was also attached to an issue previously.
Do I just need to restart the server?
(Platform:JIRA v5.0.6 - Windows Server 2008 - Tomcat) (localhost.2012-08-09.log)
Hi David,
First thing first, double check if there are any firewall in front of JIRA that might restrict any sql file to go trough as it might think that this is an SQL attack and the firewall trying to prevent it.
Second cause is due to incorrect MIME type reported to the browser. This might cause by pgSQL Admin on the victim machine had written a MIME type text\plain instead of text/plain into the Windows registry. Please try the following steps to fix it:
Hope it helps.
Cheers,
Septa Cahyadiputra
Perfect! Hit the nail right on the head. It was the text\plain that caused the problem after installling pgAdmin III. I simply updated the Registry value as advised and I can now attach SQL files to JIRA issues again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Even more puzzling now after a little experimentation. Previously, the file I was attempting to attach had the file name V_SPECIMEN_ACTION_RECORDS.SQL. When I changed the name of the file to V_SPECIMEN_ACTION_RECORDS.SQL.TXT JIRA no longer throws the exception.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.