-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to carry non-utf8 market labels over API boundaries #179
Comments
@ribasushi Definitely not intentional, please fix. |
FIP 0027 is relevant. |
Its a bit unclear if this is still impacting Lotus anymore as we have removed the legacy markets, but it might be impacting Boost. So worth checking in with Curio on this. We are not actively going to fix this, unless we find out if this has a larger impact for DX. |
Really easy fix here would be to break in to dag-json in this field when it's bytes, The alternative is to go with the standard Go route of base64 encoding this, but then you lose the signal about whether it's bytes or string. @ribasushi what did you have in mind for a fix for this? |
I do not have interest in this bugreport anymore: DDO made the entire |
Because the JSON marshaller ignores the
Bytes
datamodel type, whenever one uses a non-utf8 ([]byte
) label it is stripped off during RPC (JSON) transporthttps://github.com/filecoin-project/go-state-types/blob/v0.10.0/builtin/v10/market/deal.go#L166-L168
+
https://github.com/filecoin-project/go-state-types/blob/v0.10.0/builtin/v10/market/deal.go#L184-L187
@arajasek @magik6k Is this intentional? If not any objections I fix it?
The text was updated successfully, but these errors were encountered: