realm / realm-browser-osx

DEPRECATED - Realm Browser for Mac OS X has been replaced by realm-studio which is cross platform.
https://realm.io
501 stars 54 forks source link

Incorrect column data shown when field name is "description" #198

Open ZakTaccardi opened 8 years ago

ZakTaccardi commented 8 years ago

In my RealmModel RealmCartProduct, I have a field String description. Because of a bug with the name "description", the whole JSON of the RealmCartProduct is displayed in the field, instead of the correct value.

actual

When I renamed the description field to descri215ption, the bug disappeared.

expected

The Realm browser doesn't seem to like fields named "description".

stel commented 8 years ago

Thanks for reporting this issue, @ZakTaccardi!

It seems to me that description of NSObjectProtocol is used instead of RLMObject's one, probably here: https://github.com/realm/realm-browser-osx/blob/master/RealmBrowser/Controllers/RLMInstanceTableViewController.m#L310

tcombs commented 8 years ago

I just ran into this in my android app. Is this a problem with only realm browser or is the data being persisted in this weird state in my android app?

ZakTaccardi commented 8 years ago

Just a problem with the Realm browser. Your app is fine

On Fri, Sep 16, 2016, 5:57 PM Tyler Combs notifications@github.com wrote:

I just ran into this in my android app. Is this a problem with only realm browser or is the data being persisted in this weird state in my android app?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/realm/realm-browser-osx/issues/198#issuecomment-247718650, or mute the thread https://github.com/notifications/unsubscribe-auth/AAcJOj15zAEq7qJFsg3F2hZ5z-2Yu_qmks5qqxDigaJpZM4J0ZMj .

alejandrocoding commented 8 years ago

I got this problem as well working from my Android App, but it seems to be a problem with the realm browser itself and not with the way the data is structured. As we have P1 label for this issue, that's gonna disappear soon I'd say. This is my error if it helps to give more info: https://github.com/realm/realm-java/issues/3544