Jenkins CasC support for YAML input greater than 3MB
Issue #557
invalid
I noticed that in this PR https://bitbucket.org/snakeyaml/snakeyaml/issues/547/restrict-the-size-of-incoming-data the size limit for yaml input is 3MB.
Could this setting be made into a CasC configurable item for Jenkins, so we can bypass this limitation?
org.yaml.snakeyaml.error.YAMLException: The incoming YAML document exceeds the limit: 3145728 code points.
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:335)
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:256)
thanks,
stegen
Comments (5)
-
-
- changed status to invalid
-
reporter Is that config option exposed to jcasc? Would you be able to share that?
Thank you!
-
what is jcasc and why SnakeYAML should be involved ?
What should I share ?
-
reporter Apologies... I was making an assumption that you folks were also responsible for the jenkins snakeyaml plugin.
- Log in to comment
https://bitbucket.org/snakeyaml/snakeyaml/src/8a20aaf18a96f8cd1c331fef87c25b83b27a6ede/src/main/java/org/yaml/snakeyaml/LoaderOptions.java#lines-190