Project

General

Profile

Actions

Defect #7489

closed

Issue's journal max string length

Added by Hisafumi Kamezono over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2011-01-29
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

In Ruby 1.8, a String is always just a collection of bytes.

in, app/models/journal_detail.rb

value[0..254]

does not trim 255 character.

I changed those like this.

value[/.{0,254}/m]

Is it suitable?

  • My Ruby version : 1.8.6
  • My redmine version : 1.1.0
  • My database version : MySQL 5.0
Actions #1

Updated by Etienne Massip about 13 years ago

  • Target version set to Candidate for next minor release
Actions #2

Updated by Jean-Philippe Lang about 13 years ago

  • Subject changed from issue's journal max string length to Issue's journal max string length
  • Status changed from New to Closed
  • Target version deleted (Candidate for next minor release)
  • Resolution set to Fixed

Obsoleted by r4954. Journal values are no longer truncated.

Actions

Also available in: Atom PDF