Details
-
Bug
-
Resolution: Fixed
-
Low
-
5.0.4, 5.0.5, 6.0.8
-
5
-
Description
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
Steps to reproduce
- Go to Administration >> System >> Mail >> Incoming Mail
- Add incoming mail handler with Handler Type "Add a comment from the non quoted email body"
- You can see that the Strip Quotes is FALSE at Properties column
- Test it with an email that have quote and it will add the whole email content including the quote content into the comment
Workaround
- Backup JIRA for rollback purposes
- Shutdown JIRA
- Run the following SQL query to look for the handler parameters:
SELECT * FROM propertystring WHERE ID = (SELECT a.ID FROM propertyentry a, serviceconfig b WHERE a.ENTITY_ID = b.ID AND a.PROPERTY_KEY = 'handler.params' AND b.servicename='<Handler Name>');
- Modify the content of the result so that the Strip Quotes is set to be TRUE, for example:
UPDATE propertystring SET propertyvalue='createusers=false,notifyusers=true,ccwatcher=false,ccassignee=true,stripquotes=true' WHERE ID = (SELECT a.ID FROM propertyentry a, serviceconfig b WHERE a.ENTITY_ID = b.ID AND a.PROPERTY_KEY = 'handler.params' AND b.servicename='<Handler Name>');
- Restart JIRA