{"action":"opened","issue":{"url":"https://api.github.com/repos/intuit/karate/issues/605","repository_url":"https://api.github.com/repos/intuit/karate","labels_url":"https://api.github.com/repos/intuit/karate/issues/605/labels{/name}","comments_url":"https://api.github.com/repos/intuit/karate/issues/605/comments","events_url":"https://api.github.com/repos/intuit/karate/issues/605/events","html_url":"https://github.com/intuit/karate/issues/605","id":386530079,"node_id":"MDU6SXNzdWUzODY1MzAwNzk=","number":605,"title":"Karate framework cannot process comma separated path params rest request ","user":{"login":"Stiff12345","id":45525809,"node_id":"MDQ6VXNlcjQ1NTI1ODA5","avatar_url":"https://avatars1.githubusercontent.com/u/45525809?v=4","gravatar_id":"","url":"https://api.github.com/users/Stiff12345","html_url":"https://github.com/Stiff12345","followers_url":"https://api.github.com/users/Stiff12345/followers","following_url":"https://api.github.com/users/Stiff12345/following{/other_user}","gists_url":"https://api.github.com/users/Stiff12345/gists{/gist_id}","starred_url":"https://api.github.com/users/Stiff12345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stiff12345/subscriptions","organizations_url":"https://api.github.com/users/Stiff12345/orgs","repos_url":"https://api.github.com/users/Stiff12345/repos","events_url":"https://api.github.com/users/Stiff12345/events{/privacy}","received_events_url":"https://api.github.com/users/Stiff12345/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-02T05:53:34Z","updated_at":"2018-12-02T05:53:34Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\n\r\nPlease find below the sample Karate scenario that was tried:\r\n\r\nScenario: Getting language description for a language which doesn't exist.\r\n    Given url 'https://localhost/rest/api/v1/demo/demoId:4,demoName:name'\r\n    When method GET\r\n    Then status 200\r\n\r\nIn this scenario, we are trying to invoke a GET rest service with **comma separated path parameters**.\r\n\r\nHere, **_demoId_** and **_demoName_** parameters are the path parameters separated by comma. \r\n\r\nIt seems like request which contain comma separated parameters is not supported.\r\n\r\nCan you please advise.\r\n\r\nThanks\r\n\r\nPlease find below the error trace:\r\njava.lang.RuntimeException: javascript evaluation failed: '/rest/api/v1/demo/' + 'demoId:4\r\nat com.intuit.karate.ScriptBindings.eval(ScriptBindings.java:101)\r\nat com.intuit.karate.ScriptBindings.updateBindingsAndEval(ScriptBindings.java:89)\r\nat com.intuit.karate.ScriptBindings.evalInNashorn(ScriptBindings.java:74)\r\nat com.intuit.karate.Script.evalInNashorn(Script.java:391)\r\nat com.intuit.karate.Script.eval(Script.java:303)\r\nat com.intuit.karate.Script.eval(Script.java:191)\r\nat com.intuit.karate.StepDefs.path(StepDefs.java:112)\r\nat ✽.Given path '/rest/api/v1/demo/' + 'demoId:4,demoName:name'(org/om/karate/sample/resource/User.feature:55)\r\nCaused by: javax.script.ScriptException: :1:66 Missing close quote\r\n'/rest/api/v1/demo/' + 'demoId:4\r\n^ in at line number 1 at column number 66\r\nat jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:479)\r\nat jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:546)\r\nat jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:533)\r\nat jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:411)\r\nat jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:167)\r\nat javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:244)\r\nat com.intuit.karate.ScriptBindings.eval(ScriptBindings.java:94)\r\nat com.intuit.karate.ScriptBindings.updateBindingsAndEval(ScriptBindings.java:89)\r\nat com.intuit.karate.ScriptBindings.evalInNashorn(ScriptBindings.java:74)\r\nat com.intuit.karate.Script.evalInNashorn(Script.java:391)\r\nat com.intuit.karate.Script.eval(Script.java:303)\r\nat com.intuit.karate.Script.eval(Script.java:191)\r\nat com.intuit.karate.StepDefs.path(StepDefs.java:112)\r\nat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\nat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)\r\nat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)\r\nat java.lang.reflect.Method.invoke(Method.java:508)\r\nat cucumber.runtime.Utils$1.call(Utils.java:40)\r\nat cucumber.runtime.Timeout.timeout(Timeout.java:16)\r\nat cucumber.runtime.Utils.invoke(Utils.java:34)\r\nat cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38)\r\nat cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37)\r\nat com.intuit.karate.cucumber.CucumberUtils.runStep(CucumberUtils.java:200)\r\nat com.intuit.karate.cucumber.KarateRuntime.runStep(KarateRuntime.java:79)\r\nat cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)\r\nat cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)\r\nat cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)\r\nat cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:102)\r\nat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)\r\nat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)\r\nat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\nat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\nat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\nat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\nat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\nat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\nat cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)\r\nat com.intuit.karate.junit4.Karate.runChild(Karate.java:118)\r\nat com.intuit.karate.junit4.Karate.runChild(Karate.java:33)\r\nat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\nat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\nat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\nat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\nat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\nat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\nat com.intuit.karate.junit4.Karate.run(Karate.java:128)\r\nat org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)\r\nat org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)\r\nat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)\r\nat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)\r\nat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)\r\nat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)\r\nCaused by: jdk.nashorn.internal.runtime.ParserException: :1:66 Missing close quote\r\n'/rest/api/v1/demo/' + 'demoId:4\r\n^\r\nat jdk.nashorn.internal.parser.Lexer.error(Lexer.java:1712)\r\nat jdk.nashorn.internal.parser.Lexer.scanString(Lexer.java:1000)\r\nat jdk.nashorn.internal.parser.Lexer.lexify(Lexer.java:1623)\r\nat jdk.nashorn.internal.parser.AbstractParser.getToken(AbstractParser.java:144)\r\nat jdk.nashorn.internal.parser.AbstractParser.nextToken(AbstractParser.java:223)\r\nat jdk.nashorn.internal.parser.AbstractParser.nextOrEOL(AbstractParser.java:182)\r\nat jdk.nashorn.internal.parser.AbstractParser.next(AbstractParser.java:169)\r\nat jdk.nashorn.internal.parser.Parser.parse(Parser.java:293)\r\nat jdk.nashorn.internal.parser.Parser.parse(Parser.java:261)\r\nat jdk.nashorn.internal.runtime.Context.compile(Context.java:1298)\r\nat jdk.nashorn.internal.runtime.Context.compileScript(Context.java:1265)\r\nat jdk.nashorn.internal.runtime.Context.compileScript(Context.java:637)\r\nat jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:544)\r\n... 50 more"}}
{"actor":{"display_login":"Stiff12345"}}