Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Broken serialization of escaped quotes  #191

Closed

Description

@mfojtik

In OpenShift, when I run the serialization test on the Kubernetes 1.8.x branch, we hit this error:

roundtrip.go:325: Image: v1.Image: DockerImageMetadata: readObjectFieldAsBytes: expect : after object field, parsing 1299 ...s":{" k7\"... at {"kind":"Image","apiVersion":"v1","metadata":{"name":"V鯙偎間\"c谴ʇ抜mn","generateName":"r","selfLink":"漋y翑c殀","uid":"4¯ȭɀ头蓿ɲė","resourceVersion":"15870568406115791856","creationTimestamp":null},"dockerImageReference":"* 鸅@gTçđ苕侒ô","dockerImageMetadata":{"kind":"DockerImage","apiVersion":"pre012","id":"P","parent":"\\.ë\u003eɬK衣櫕柃%箉扥ļ'ȃ#","comment":"=Ĭ具Rǎʂȣ蕅娪9`宓À)懘抏Ȣ","created":"1982-10-03T23:23:30Z","container":"丂ƫ´ʌɔȾK1^秗r戧șDNl,","container_config":{"Hostname":"癡鑡ĕʜǦ\u0026*s鴏鵆閶ȑ鈖H鮬H劔","Domainname":"$N(ȅ擷僂×暪","User":"鮪ƻĽƦ霳FLÁ鱝LtF恽b\u003c{鉥h","Memory":-5231482430376515094,"MemorySwap":5882410654260929314,"CpuShares":1736859303208040165,"Cpuset":"Ơ«ôŘ僰ƶ","AttachStdin":true,"AttachStderr":true,"Tty":true,"StdinOnce":true,"Cmd":["d0"],"Dns":["Ø钂Ŝ牙菫ʩŭ殻l"],"Image":"錭4-0ÂQ侬娵ŵ","VolumesFrom":"跬ɽ!HʡǗ醋ȥ幊[騕瞂PƟŪ鍉瓹泞ɞ","WorkingDir":"!)5r"},"docker_version":"aHč2ķ錭","author":"喚ʤ疞ĭ-瓞闤ɦƐPŕ碶{|鴆","config":{"Hostname":"W/t鶒`","Domainname":"拔瞇骦貌Ɲ","User":"-2*%Ģ俠","Memory":-6875146354939209016,"MemorySwap":-3830464167971486329,"CpuShares":-3295990050702446453,"Cpuset":"¹祅噁u","ExposedPorts":{" k7\"g桛/WqȲ庖":

It suggests that handling of \" was not done properly. I tried to use the jsoniter.ConfigCompatibleWithStandardLibrary but got same result.

Activity

  1. added a commit that references this issue on Feb 2, 2022
    86b859c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions