{"action":"created","issue":{"url":"https://api.github.com/repos/smartrics/RestFixture/issues/118","labels_url":"https://api.github.com/repos/smartrics/RestFixture/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/smartrics/RestFixture/issues/118/comments","events_url":"https://api.github.com/repos/smartrics/RestFixture/issues/118/events","html_url":"https://github.com/smartrics/RestFixture/issues/118","id":65747685,"number":118,"title":"Unable to set header using let variable containing text ${aaa.yyyy}","user":{"login":"subhashreddy98","id":11757950,"avatar_url":"https://avatars.githubusercontent.com/u/11757950?v=3","gravatar_id":"","url":"https://api.github.com/users/subhashreddy98","html_url":"https://github.com/subhashreddy98","followers_url":"https://api.github.com/users/subhashreddy98/followers","following_url":"https://api.github.com/users/subhashreddy98/following{/other_user}","gists_url":"https://api.github.com/users/subhashreddy98/gists{/gist_id}","starred_url":"https://api.github.com/users/subhashreddy98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subhashreddy98/subscriptions","organizations_url":"https://api.github.com/users/subhashreddy98/orgs","repos_url":"https://api.github.com/users/subhashreddy98/repos","events_url":"https://api.github.com/users/subhashreddy98/events{/privacy}","received_events_url":"https://api.github.com/users/subhashreddy98/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-01T18:19:57Z","updated_at":"2015-04-03T18:40:48Z","closed_at":null,"body":"I have a header value which is captured using let like below \r\n| let | loginSessionId | header | Set-Cookie:(.+) | |\r\nwhich results in output as below.\r\n|let|loginSessionId|header\t|Set-Cookie:(.+)\r\n|JSESSIONID=\"5D9A85ABEBFA96ACF903C24EC42C3F5C.${aaa.yyy}\"; Version=1; Path=/yyy\r\n\r\nWhen I use this variable to setHeader \r\n|setHeader|Set-Cookie:%loginSessionId%|\r\nBelow exception is coming. \r\nI expect the header value to be set as, in this case like below \r\nSet-Cookie:5D9A85ABEBFA96ACF903C24EC42C3F5C.${aaa.yyy}\"; Version=1; Path=/yyy\r\n\r\njava.lang.RuntimeException: Method named setHeader threw an exception when executing.\r\n    at smartrics.rest.fitnesse.fixture.RestFixture.processRow(RestFixture.java:834)\r\n    at smartrics.rest.fitnesse.fixture.RestFixture.processSlimRow(RestFixture.java:1151)\r\n    at smartrics.rest.fitnesse.fixture.RestFixture.doTable(RestFixture.java:362)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke(Method.java:606)\r\n    at fitnesse.slim.fixtureInteraction.DefaultInteraction.methodInvoke(DefaultInteraction.java:16)\r\n    at fitnesse.slim.MethodExecutor.callMethod(MethodExecutor.java:44)\r\n    at fitnesse.slim.MethodExecutor.invokeMethod(MethodExecutor.java:31)\r\n    at fitnesse.slim.MethodExecutor.findAndInvoke(MethodExecutor.java:53)\r\n    at fitnesse.slim.FixtureMethodExecutor.execute(FixtureMethodExecutor.java:20)\r\n    at fitnesse.slim.StatementExecutor.getMethodExecutionResult(StatementExecutor.java:123)\r\n    at fitnesse.slim.StatementExecutor.call(StatementExecutor.java:101)\r\n    at fitnesse.slim.instructions.CallInstruction.executeInternal(CallInstruction.java:35)\r\n    at fitnesse.slim.instructions.Instruction.execute(Instruction.java:30)\r\n    at fitnesse.slim.ListExecutor$Executive.executeStatement(ListExecutor.java:49)\r\n    at fitnesse.slim.ListExecutor$Executive.executeStatements(ListExecutor.java:43)\r\n    at fitnesse.slim.ListExecutor.execute(ListExecutor.java:83)\r\n    at fitnesse.slim.SlimServer.executeInstructions(SlimServer.java:87)\r\n    at fitnesse.slim.SlimServer.processOneSetOfInstructions(SlimServer.java:80)\r\n    at fitnesse.slim.SlimServer.tryProcessInstructions(SlimServer.java:59)\r\n    at fitnesse.slim.SlimServer.serve(SlimServer.java:45)\r\n    at fitnesse.slim.SlimService.handle(SlimService.java:184)\r\n    at fitnesse.slim.SlimService.acceptOne(SlimService.java:192)\r\n    at fitnesse.slim.SlimService.accept(SlimService.java:154)\r\n    at fitnesse.slim.SlimService.startWithFactory(SlimService.java:75)\r\n    at fitnesse.slim.SlimService.main(SlimService.java:56)\r\nCaused by: java.lang.reflect.InvocationTargetException\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n    at java.lang.reflect.Method.invoke(Method.java:606)\r\n    at smartrics.rest.fitnesse.fixture.RestFixture.processRow(RestFixture.java:818)\r\n    ... 27 more\r\nCaused by: java.lang.IllegalArgumentException: named capturing group is missing trailing '}'\r\n    at java.util.regex.Matcher.appendReplacement(Matcher.java:792)\r\n    at java.util.regex.Matcher.replaceAll(Matcher.java:906)\r\n    at java.lang.String.replaceAll(String.java:2162)\r\n    at smartrics.rest.fitnesse.fixture.support.Variables.substitute(Variables.java:125)\r\n    at smartrics.rest.fitnesse.fixture.RestFixture.setHeader(RestFixture.java:506)\r\n    ... 32 more"},"comment":{"url":"https://api.github.com/repos/smartrics/RestFixture/issues/comments/89385740","html_url":"https://github.com/smartrics/RestFixture/issues/118#issuecomment-89385740","issue_url":"https://api.github.com/repos/smartrics/RestFixture/issues/118","id":89385740,"user":{"login":"subhashreddy98","id":11757950,"avatar_url":"https://avatars.githubusercontent.com/u/11757950?v=3","gravatar_id":"","url":"https://api.github.com/users/subhashreddy98","html_url":"https://github.com/subhashreddy98","followers_url":"https://api.github.com/users/subhashreddy98/followers","following_url":"https://api.github.com/users/subhashreddy98/following{/other_user}","gists_url":"https://api.github.com/users/subhashreddy98/gists{/gist_id}","starred_url":"https://api.github.com/users/subhashreddy98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subhashreddy98/subscriptions","organizations_url":"https://api.github.com/users/subhashreddy98/orgs","repos_url":"https://api.github.com/users/subhashreddy98/repos","events_url":"https://api.github.com/users/subhashreddy98/events{/privacy}","received_events_url":"https://api.github.com/users/subhashreddy98/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T18:40:48Z","updated_at":"2015-04-03T18:40:48Z","body":"Thank you that works."}}