
Incorrect typecasting for nil values in URI type.
Reported by Bira | September 14th, 2008 @ 06:50 AM
I ran accross this today when working on a personal project. Assigning a nil value to a URI property causes DM to create an Addressable::URI object from an empty string, so that this happens:
@object.uri_property = nil @object.uri_property == nil # => false
I've included a patch to the URI type that makes it behave in what I believe is the correct way. It also includes a spec for this particular edge case.
Comments and changes to this ticket
-
-
Dirkjan Bussink October 7th, 2008 @ 02:52 PM
- State changed from new to resolved
- Tag changed from bug, dm-more, patch, types to dm-more, bug, patch, types
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »