Re: [Resteasy-users] Issue with using RegEx and Escaping in the @Param
Bill, Odata4J validates their paths with Jersy and CXF, I tried what you suggested as per the Paths, they did not pass with Jersey. So I confused about which one is right that is written per jax-rs spec, so that I can submit a patch to them that works with Resteasy. Also, I see Resteasy is failing with following Path expression @Path({entitySetName: [^/()]+?}{ignore: (?:\\(\\))?}) to allow both /foo and /foo() while debugging code, I think there may double increment to groupNumber on PathParamSegment.java line #115 Thank you. Ramesh.. On 11/16/2012 05:55 PM, Bill Burke wrote: On 11/16/2012 4:30 PM, Ramesh Reddy wrote: Hi, I trying to integrate OData4J (http://code.google.com/p/odata4j) with Resteasy, so that I can provide OData services with in Teiid. OData4J uses @Paths like @Path({count: [$]count})= {uri}/$count @Path({first: \\$}value)= {uri}/$value Yeah, i can reproduce. Try moving the '$' character outside the expression, i.e. @Path(${count : \\d+}) or @Path({before}${after}) That seemed to work for me. Bill -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
[Resteasy-users] Issue with using RegEx and Escaping in the @Param
Hi, I trying to integrate OData4J (http://code.google.com/p/odata4j) with Resteasy, so that I can provide OData services with in Teiid. OData4J uses @Paths like @Path({count: [$]count})= {uri}/$count @Path({first: \\$}value)= {uri}/$value to define OData spec. Where in the above '$' is part of URI, and at the same time it has special meaning in the regex with jax-rs. Once, I wired these classes in a Resteasy application, during the start up, deployment fails with Illegal Group Name exception, as regex compilation failed. I debugged through that part of the code, looks like somewhere with implicit escaping of string in Resteasy is causing the issue. Is above type of paths supported in Resteasy? I am using Resteasy version in JBoss AS 7.1.1. Thanks. Ramesh.. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
Re: [Resteasy-users] Issue with using RegEx and Escaping in the @Param
On 11/16/2012 4:30 PM, Ramesh Reddy wrote: Hi, I trying to integrate OData4J (http://code.google.com/p/odata4j) with Resteasy, so that I can provide OData services with in Teiid. OData4J uses @Paths like @Path({count: [$]count})= {uri}/$count @Path({first: \\$}value)= {uri}/$value Yeah, i can reproduce. Try moving the '$' character outside the expression, i.e. @Path(${count : \\d+}) or @Path({before}${after}) That seemed to work for me. Bill -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users