Project

General

Profile

Actions

Defect #8416

closed

Problem when using single quotes in the description field

Added by Bruno Bigras almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
2011-05-20
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

I'm having weird results while using single quotes in the description field.

It may not be a bug at all if the single quote is used for something. I didn't see anything in Wiki formatting.

Maybe one or more quotes is not escaped properly.

mysql 5.1.54
ruby 1.8.7.302
rails 2.3.5
redmine 1.0.5 (from Ubuntu packages)
redmine 1.1.3 (from a ppa (I think it's from Debian unstable + patches))

Test case
Create a new issue, type the following into the description field and generate the preview.

'A'
'B'

Preview should be :

'A'
'B'

Preview is :

A

log

Processing PreviewsController#issue (for 10.66.34.10 at 2011-05-20 10:12:57) [POST]
  Parameters: {"commit"=>"Create", "project_id"=>"test", "action"=>"issue", "authenticity_token"=>"PhR0m/gicgbBJeeQAjm6BRQCAFLcRm61qRSd9wNH9Mk=", "issue"=>{"start_date"=>"2011-05-20",
  "estimated_hours"=>"", "priority_id"=>"4", "parent_issue_id"=>"", "done_ratio"=>"0", "assigned_to_id"=>"", "subject"=>"", "tracker_id"=>"1", "due_date"=>"", "status_id"=>"1", "description"=>"A"},
  "controller"=>"previews", "attachments"=>{"1"=>{"description"=>""}}}
Rendering previews/issue
Completed in 32ms (View: 6, DB: 2) | 200 OK [http://10.66.33.1/redmine/issues/preview?project_id=test]

Note that this bug doesn't happen on this instance of redmine.

Actions #1

Updated by Etienne Massip almost 13 years ago

  • Category set to Text formatting
  • Target version set to Candidate for next minor release

Confirmed.

Actions #2

Updated by Etienne Massip almost 13 years ago

  • Target version changed from Candidate for next minor release to 1.2.0
  • Resolution set to Wont fix

Ok, took me some time to find out that this is a request body parsing issue in rack introduced with 1.1.0 and fixed with 1.2.0 ("Removed parsing of quoted values" in rack README, see commit).

See also this post.

As Rails 2.3.11 requires rack 1.1.0, we should find a fix for 1.2.0 or this will be a regression.

Actions #3

Updated by Etienne Massip almost 13 years ago

  • Resolution deleted (Wont fix)
Actions #4

Updated by Etienne Massip almost 13 years ago

  • Status changed from New to Closed
  • Target version deleted (1.2.0)
  • Resolution set to Wont fix

Ok, closed as rack 1.1.1 includes the fix too and is supported by Rails 2.3 ; simply updated the RedmineInstall for trunk from 1.1.0 to 1.1.1.

Actions

Also available in: Atom PDF