GitHub user rhymoid opened a pull request: https://github.com/apache/zeppelin/pull/1710
CI test for #1729 Just a CI test for #1729. You can merge this pull request into a Git repository by running: $ git pull https://github.com/rhymoid/zeppelin backport-hotfixes-ZEPPELIN-1729 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/1710.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1710 ---- commit b702cc87917c7ff855e7a57eefdd6295bf09215e Author: Stijn van Drongelen <rhym...@gmail.com> Date: 2016-11-29T23:21:50Z [ZEPPELIN-1729] With CRLF line endings, Livy gets HTTP 500 errors ### What is this PR for? When you paste text on Windows, you may inadvertedly add some Carriage Return control characters along with it. When this happens in a Livy paragraph in Zeppelin 0.6.0, execution of that paragraph will fail with a "500 Internal Server Error" message. This is because `LivyHelper` does not properly sanitise its input when generating a JSON payload for the Livy server. This PR takes the subset for the resolution of [ZEPPELIN-1430](https://issues.apache.org/jira/browse/ZEPPELIN-1430/) that should resolve this issue. ### What type of PR is it? Bug Fix ### What is the Jira issue? <https://issues.apache.org/jira/browse/ZEPPELIN-1729/> ### How should this be tested? Paste the following code in a new paragraph, ensuring that lines are ended by CRLF rather than LF: %livy.pyspark import datetime import json This can be easily realised on Windows, by copy-pasting this code from Notepad. Then, try to execute the paragraph. Without the fix, a "500 Internal Server Error" message should appear. With the fix, the paragraph will successfully execute (and do nothing interesting). ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No. commit 3adb646bcdb6959000978f25d6ca5848448433cd Author: Stijn van Drongelen <rhym...@gmail.com> Date: 2016-11-30T00:28:15Z [ZEPPELIN-1729] Add tests for multiline paragraphs for Livy commit cde991b27d8405b2dd39dc021975602cada6c542 Author: Mina Lee <mina...@apache.org> Date: 2016-11-04T15:12:27Z Backported PR #1599 commit 2c4773ceeca4a7e9d08c7a984d7a528e013d52d0 Author: Alexander Bezzubov <b...@apache.org> Date: 2016-11-30T14:04:50Z Backported PR #1709 from master to branch-0.6 ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---