jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-3038

Unable to insert YAML into t.text field (behavior different from Ruby 1.8.6)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.4
  • Fix Version/s: JRuby 1.2
  • Component/s: Extensions
  • Labels:
    None
  • Environment:
    Hide
    Ubuntu 8.04 -- Linux version 2.6.24-21-generic running on i386
    Java; VM -- 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15; Sun Microsystems Inc.
    Runtime -- Java(TM) SE Runtime Environment 1.6.0_10-rc-b28
    JRuby -- JRuby version 1.1.4 installed by NetBeans 6.5 (pre-rel)
    Show
    Ubuntu 8.04 -- Linux version 2.6.24-21-generic running on i386 Java; VM -- 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15; Sun Microsystems Inc. Runtime -- Java(TM) SE Runtime Environment 1.6.0_10-rc-b28 JRuby -- JRuby version 1.1.4 installed by NetBeans 6.5 (pre-rel)

Description

When attempting to insert information into a text field within the mysql database, ActiveRecord raises an exception stating:

TypeError (wrong argument type String (expected YAML::JvYAML::Node))

When running under Ruby 1.8.6, the operation that generates this error succeeds without problem.

I have attached a program that generates this error. To generate the exception follow these instructions.

1) Unpack the project to a folder on your test machine. Edit the username/password in the database.yml file appropriately.

2) Create the development database using "rake db:create"

3) Install the database using "rake goldberg:install"

4) Launch the application using "script/server" or similar

5) Login to the application as administrator (admin/admin)

6) Use the menu in the left column to navigate to "Administration -> Setup -> Roles"

7) Select the Administrator role

8) Scroll down and hit the "Edit" link

9) Change the name to "Superuser"

10) Click on the "Edit" button.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    RailsApplication1.tbz2
    05/Oct/08 12:56 AM
    6.99 MB
    Eric M. Smith

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Charles Oliver Nutter added a comment - 14/Feb/09 3:54 PM

This particular YAML issue has been resolved in recent commits.

Show
Charles Oliver Nutter added a comment - 14/Feb/09 3:54 PM This particular YAML issue has been resolved in recent commits.

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Eric M. Smith
Vote (1)
Watch (3)

Dates

  • Created:
    05/Oct/08 12:56 AM
    Updated:
    21/Mar/09 1:14 PM
    Resolved:
    14/Feb/09 3:54 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.