Re: MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
Got it, thank you, Roberto, for the detail explanation. Yes, +1 for number 2. El vie., 14 dic. 2018 a las 10:57, Roberto Cortez () escribió: > Hi César, > > We can. Let me try to give more detail: > > The modules inside tck/microprofile-tck (config, fault-tolerance, health, > jwt, metrics, openapi, opentracing and rest-client), they set up an > arquillian configuration to run TomEE Remote and include the TCK jar > provided by each of the microprofile specs to run the tests. > > The only microprofile implementation written inside TomEE is jwt in the > mp-jwt module. Everything else is provided by an external library (either > Geronimo or CXF). > > We could add tests next to the implementation code in jwt. My only point > is that if you want to add tests to any other implementation, the only > obvious places to add them is in their TCK runner project modules. You > could of course add these tests directly on the external implementation > projects, but I think there are always aspects of the tests involving TomEE > that you would want to test, so in that case the test needs to be written > in the TomEE code. > > So, in the end we can: > > 1 - Add tests next to the implementation for JWT (we can’t do this for > the others specs) > 2 - Add tests on their TCK runner projects. We have one for each, so it > should be more straightforward. It will also allow you to contribute those > tests back to the TCK more easily I believe. > > My preference would be to use approach number 2. > > Cheers, > Roberto > > > On 14 Dec 2018, at 16:06, César Hernández Mendoza > wrote: > > > > Let me see if I understood correctly, > > * We shouldn't add this test in the current `/tck/microprofile-tck/jwt` > > because this are the test provided by Eclipse MP JWT to validate that an > > implementor ( in this case TomEE) follow the spec and adding here a test > > that spinn up a TomEE remote doesn't make sense since the > > `/tck/microprofile-tck/jwt` test are vendor agnostic. > > > > Why we can't add this type of test in the `/mp-jwt` module? > > ` > > > > El vie., 14 dic. 2018 a las 5:36, Roberto Cortez > > () escribió: > > > >> Well, not sure if I explained myself correctly. The other tests are just > >> with the TCK’s because there are no implementations in TomEE. Well we > could > >> have go to the Geronimo projects and add the tests there, but we are > also > >> testing parts of the TomEE integration, so they need to live somewhere. > >> > >>> On 14 Dec 2018, at 10:43, Jean-Louis Monteiro < > jlmonte...@tomitribe.com> > >> wrote: > >>> > >>> As I said, along side with the implementation. But that was a gut > >> feeling. > >>> If others are in TCK, I'd rather vote for consistency so it's easier > for > >>> us, new contributors to know where to look at > >>> -- > >>> Jean-Louis Monteiro > >>> http://twitter.com/jlouismonteiro > >>> http://www.tomitribe.com > >>> > >>> > >>> On Fri, Dec 14, 2018 at 11:41 AM Roberto Cortez > >> > >>> wrote: > >>> > Well, because we don’t have any other implementations in TomEE other > >> than > JWT, in a couple of cases we did implement some additional tests, and > >> they > were done on the TCK modules (for instance Configuration). Where do > you > suggest to add these? > > > On 14 Dec 2018, at 10:35, Jean-Louis Monteiro < > >> jlmonte...@tomitribe.com> > wrote: > > > > Hummm > > That is not what I would be expecting actually. > > I was expecting the TCK modules to be just wiring to run external TCK > tests. > > > > And actual implementation tests to be along side the implementation. > > > > -- > > Jean-Louis Monteiro > > http://twitter.com/jlouismonteiro > > http://www.tomitribe.com > > > > > > On Fri, Dec 14, 2018 at 11:26 AM Roberto Cortez > > > wrote: > > > >> Tests can also be added in the TCK module. I think they should be > >> added > >> there actually, since all the other additional tests for the other > MP > >> implementations are added in their own TCK modules. > >> > >>> On 14 Dec 2018, at 06:34, Jean-Louis Monteiro < > jlmonte...@tomitribe.com> > >> wrote: > >>> > >>> Hey Cesar, > >>> > >>> Thanks, I'll review and merge for you if ok. > >>> You are correct, we currently rely on the TCKs only for MP-JWT. > >>> > >>> This is the bare minimum and ideally we should add our own tests in > >> the > >>> mp-jwt module because the TCKs can't test everything. > >>> > >>> > >>> -- > >>> Jean-Louis Monteiro > >>> http://twitter.com/jlouismonteiro > >>> http://www.tomitribe.com > >>> > >>> > >>> On Fri, Dec 14, 2018 at 4:42 AM César Hernández Mendoza < > >>> cesargu...@gmail.com> wrote: > >>> > The PR for this ticket is ready for review. > > PR: https://github.com/apache/tomee/pull/275 > Ticket: https://issues.apache.org/jira/browse/TOMEE-2357 >
Re: MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
Hi César, We can. Let me try to give more detail: The modules inside tck/microprofile-tck (config, fault-tolerance, health, jwt, metrics, openapi, opentracing and rest-client), they set up an arquillian configuration to run TomEE Remote and include the TCK jar provided by each of the microprofile specs to run the tests. The only microprofile implementation written inside TomEE is jwt in the mp-jwt module. Everything else is provided by an external library (either Geronimo or CXF). We could add tests next to the implementation code in jwt. My only point is that if you want to add tests to any other implementation, the only obvious places to add them is in their TCK runner project modules. You could of course add these tests directly on the external implementation projects, but I think there are always aspects of the tests involving TomEE that you would want to test, so in that case the test needs to be written in the TomEE code. So, in the end we can: 1 - Add tests next to the implementation for JWT (we can’t do this for the others specs) 2 - Add tests on their TCK runner projects. We have one for each, so it should be more straightforward. It will also allow you to contribute those tests back to the TCK more easily I believe. My preference would be to use approach number 2. Cheers, Roberto > On 14 Dec 2018, at 16:06, César Hernández Mendoza > wrote: > > Let me see if I understood correctly, > * We shouldn't add this test in the current `/tck/microprofile-tck/jwt` > because this are the test provided by Eclipse MP JWT to validate that an > implementor ( in this case TomEE) follow the spec and adding here a test > that spinn up a TomEE remote doesn't make sense since the > `/tck/microprofile-tck/jwt` test are vendor agnostic. > > Why we can't add this type of test in the `/mp-jwt` module? > ` > > El vie., 14 dic. 2018 a las 5:36, Roberto Cortez > () escribió: > >> Well, not sure if I explained myself correctly. The other tests are just >> with the TCK’s because there are no implementations in TomEE. Well we could >> have go to the Geronimo projects and add the tests there, but we are also >> testing parts of the TomEE integration, so they need to live somewhere. >> >>> On 14 Dec 2018, at 10:43, Jean-Louis Monteiro >> wrote: >>> >>> As I said, along side with the implementation. But that was a gut >> feeling. >>> If others are in TCK, I'd rather vote for consistency so it's easier for >>> us, new contributors to know where to look at >>> -- >>> Jean-Louis Monteiro >>> http://twitter.com/jlouismonteiro >>> http://www.tomitribe.com >>> >>> >>> On Fri, Dec 14, 2018 at 11:41 AM Roberto Cortez >> >>> wrote: >>> Well, because we don’t have any other implementations in TomEE other >> than JWT, in a couple of cases we did implement some additional tests, and >> they were done on the TCK modules (for instance Configuration). Where do you suggest to add these? > On 14 Dec 2018, at 10:35, Jean-Louis Monteiro < >> jlmonte...@tomitribe.com> wrote: > > Hummm > That is not what I would be expecting actually. > I was expecting the TCK modules to be just wiring to run external TCK tests. > > And actual implementation tests to be along side the implementation. > > -- > Jean-Louis Monteiro > http://twitter.com/jlouismonteiro > http://www.tomitribe.com > > > On Fri, Dec 14, 2018 at 11:26 AM Roberto Cortez > wrote: > >> Tests can also be added in the TCK module. I think they should be >> added >> there actually, since all the other additional tests for the other MP >> implementations are added in their own TCK modules. >> >>> On 14 Dec 2018, at 06:34, Jean-Louis Monteiro < jlmonte...@tomitribe.com> >> wrote: >>> >>> Hey Cesar, >>> >>> Thanks, I'll review and merge for you if ok. >>> You are correct, we currently rely on the TCKs only for MP-JWT. >>> >>> This is the bare minimum and ideally we should add our own tests in >> the >>> mp-jwt module because the TCKs can't test everything. >>> >>> >>> -- >>> Jean-Louis Monteiro >>> http://twitter.com/jlouismonteiro >>> http://www.tomitribe.com >>> >>> >>> On Fri, Dec 14, 2018 at 4:42 AM César Hernández Mendoza < >>> cesargu...@gmail.com> wrote: >>> The PR for this ticket is ready for review. PR: https://github.com/apache/tomee/pull/275 Ticket: https://issues.apache.org/jira/browse/TOMEE-2357 The fix for this issue is in the module `/mp-jwt`, I didn't find any >> test package on this module. Is this on purpose because we have the module >> `/tck/microprofile-tck/jwt` ? Anyway, I included in the PR the test scenario as part of the `examples/mp-rest-jwt` project. El mié., 12
Re: MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
Let me see if I understood correctly, * We shouldn't add this test in the current `/tck/microprofile-tck/jwt` because this are the test provided by Eclipse MP JWT to validate that an implementor ( in this case TomEE) follow the spec and adding here a test that spinn up a TomEE remote doesn't make sense since the `/tck/microprofile-tck/jwt` test are vendor agnostic. Why we can't add this type of test in the `/mp-jwt` module? ` El vie., 14 dic. 2018 a las 5:36, Roberto Cortez () escribió: > Well, not sure if I explained myself correctly. The other tests are just > with the TCK’s because there are no implementations in TomEE. Well we could > have go to the Geronimo projects and add the tests there, but we are also > testing parts of the TomEE integration, so they need to live somewhere. > > > On 14 Dec 2018, at 10:43, Jean-Louis Monteiro > wrote: > > > > As I said, along side with the implementation. But that was a gut > feeling. > > If others are in TCK, I'd rather vote for consistency so it's easier for > > us, new contributors to know where to look at > > -- > > Jean-Louis Monteiro > > http://twitter.com/jlouismonteiro > > http://www.tomitribe.com > > > > > > On Fri, Dec 14, 2018 at 11:41 AM Roberto Cortez > > > wrote: > > > >> Well, because we don’t have any other implementations in TomEE other > than > >> JWT, in a couple of cases we did implement some additional tests, and > they > >> were done on the TCK modules (for instance Configuration). Where do you > >> suggest to add these? > >> > >>> On 14 Dec 2018, at 10:35, Jean-Louis Monteiro < > jlmonte...@tomitribe.com> > >> wrote: > >>> > >>> Hummm > >>> That is not what I would be expecting actually. > >>> I was expecting the TCK modules to be just wiring to run external TCK > >> tests. > >>> > >>> And actual implementation tests to be along side the implementation. > >>> > >>> -- > >>> Jean-Louis Monteiro > >>> http://twitter.com/jlouismonteiro > >>> http://www.tomitribe.com > >>> > >>> > >>> On Fri, Dec 14, 2018 at 11:26 AM Roberto Cortez > >> > >>> wrote: > >>> > Tests can also be added in the TCK module. I think they should be > added > there actually, since all the other additional tests for the other MP > implementations are added in their own TCK modules. > > > On 14 Dec 2018, at 06:34, Jean-Louis Monteiro < > >> jlmonte...@tomitribe.com> > wrote: > > > > Hey Cesar, > > > > Thanks, I'll review and merge for you if ok. > > You are correct, we currently rely on the TCKs only for MP-JWT. > > > > This is the bare minimum and ideally we should add our own tests in > the > > mp-jwt module because the TCKs can't test everything. > > > > > > -- > > Jean-Louis Monteiro > > http://twitter.com/jlouismonteiro > > http://www.tomitribe.com > > > > > > On Fri, Dec 14, 2018 at 4:42 AM César Hernández Mendoza < > > cesargu...@gmail.com> wrote: > > > >> The PR for this ticket is ready for review. > >> > >> PR: https://github.com/apache/tomee/pull/275 > >> Ticket: https://issues.apache.org/jira/browse/TOMEE-2357 > >> > >> The fix for this issue is in the module `/mp-jwt`, I didn't find any > test > >> package on this module. > >> Is this on purpose because we have the module > `/tck/microprofile-tck/jwt` ? > >> > >> Anyway, I included in the PR the test scenario as part of the > >> `examples/mp-rest-jwt` project. > >> > >> > >> > >> El mié., 12 dic. 2018 a las 5:44, Roberto Cortez > >> () escribió: > >> > >>> Assigned! > >>> > On 12 Dec 2018, at 05:33, César Hernández Mendoza < > >> cesargu...@gmail.com> > >>> wrote: > > During the creation of a second version of the MP JWT example [1] > I > >>> found a > bug related with the enforcement of the @RolesAllowed validation. > > I created https://issues.apache.org/jira/browse/TOMEE-2357 with > the > details. If nobody is currently working on this issue, I would > like > >> to > request to JIRA admins to assign the ticket to me so I can work on > >> the > >>> fix > this week. > > [1] email thread: "MP JWT example revisited" > -- > Atentamente: > César Hernández Mendoza. > >>> > >>> > >> > >> -- > >> Atentamente: > >> César Hernández Mendoza. > >> > > > >> > >> > > -- Atentamente: César Hernández Mendoza.
Re: MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
Well, not sure if I explained myself correctly. The other tests are just with the TCK’s because there are no implementations in TomEE. Well we could have go to the Geronimo projects and add the tests there, but we are also testing parts of the TomEE integration, so they need to live somewhere. > On 14 Dec 2018, at 10:43, Jean-Louis Monteiro > wrote: > > As I said, along side with the implementation. But that was a gut feeling. > If others are in TCK, I'd rather vote for consistency so it's easier for > us, new contributors to know where to look at > -- > Jean-Louis Monteiro > http://twitter.com/jlouismonteiro > http://www.tomitribe.com > > > On Fri, Dec 14, 2018 at 11:41 AM Roberto Cortez > wrote: > >> Well, because we don’t have any other implementations in TomEE other than >> JWT, in a couple of cases we did implement some additional tests, and they >> were done on the TCK modules (for instance Configuration). Where do you >> suggest to add these? >> >>> On 14 Dec 2018, at 10:35, Jean-Louis Monteiro >> wrote: >>> >>> Hummm >>> That is not what I would be expecting actually. >>> I was expecting the TCK modules to be just wiring to run external TCK >> tests. >>> >>> And actual implementation tests to be along side the implementation. >>> >>> -- >>> Jean-Louis Monteiro >>> http://twitter.com/jlouismonteiro >>> http://www.tomitribe.com >>> >>> >>> On Fri, Dec 14, 2018 at 11:26 AM Roberto Cortez >> >>> wrote: >>> Tests can also be added in the TCK module. I think they should be added there actually, since all the other additional tests for the other MP implementations are added in their own TCK modules. > On 14 Dec 2018, at 06:34, Jean-Louis Monteiro < >> jlmonte...@tomitribe.com> wrote: > > Hey Cesar, > > Thanks, I'll review and merge for you if ok. > You are correct, we currently rely on the TCKs only for MP-JWT. > > This is the bare minimum and ideally we should add our own tests in the > mp-jwt module because the TCKs can't test everything. > > > -- > Jean-Louis Monteiro > http://twitter.com/jlouismonteiro > http://www.tomitribe.com > > > On Fri, Dec 14, 2018 at 4:42 AM César Hernández Mendoza < > cesargu...@gmail.com> wrote: > >> The PR for this ticket is ready for review. >> >> PR: https://github.com/apache/tomee/pull/275 >> Ticket: https://issues.apache.org/jira/browse/TOMEE-2357 >> >> The fix for this issue is in the module `/mp-jwt`, I didn't find any test >> package on this module. >> Is this on purpose because we have the module `/tck/microprofile-tck/jwt` ? >> >> Anyway, I included in the PR the test scenario as part of the >> `examples/mp-rest-jwt` project. >> >> >> >> El mié., 12 dic. 2018 a las 5:44, Roberto Cortez >> () escribió: >> >>> Assigned! >>> On 12 Dec 2018, at 05:33, César Hernández Mendoza < >> cesargu...@gmail.com> >>> wrote: During the creation of a second version of the MP JWT example [1] I >>> found a bug related with the enforcement of the @RolesAllowed validation. I created https://issues.apache.org/jira/browse/TOMEE-2357 with the details. If nobody is currently working on this issue, I would like >> to request to JIRA admins to assign the ticket to me so I can work on >> the >>> fix this week. [1] email thread: "MP JWT example revisited" -- Atentamente: César Hernández Mendoza. >>> >>> >> >> -- >> Atentamente: >> César Hernández Mendoza. >> >> >>
Re: MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
As I said, along side with the implementation. But that was a gut feeling. If others are in TCK, I'd rather vote for consistency so it's easier for us, new contributors to know where to look at -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Fri, Dec 14, 2018 at 11:41 AM Roberto Cortez wrote: > Well, because we don’t have any other implementations in TomEE other than > JWT, in a couple of cases we did implement some additional tests, and they > were done on the TCK modules (for instance Configuration). Where do you > suggest to add these? > > > On 14 Dec 2018, at 10:35, Jean-Louis Monteiro > wrote: > > > > Hummm > > That is not what I would be expecting actually. > > I was expecting the TCK modules to be just wiring to run external TCK > tests. > > > > And actual implementation tests to be along side the implementation. > > > > -- > > Jean-Louis Monteiro > > http://twitter.com/jlouismonteiro > > http://www.tomitribe.com > > > > > > On Fri, Dec 14, 2018 at 11:26 AM Roberto Cortez > > > wrote: > > > >> Tests can also be added in the TCK module. I think they should be added > >> there actually, since all the other additional tests for the other MP > >> implementations are added in their own TCK modules. > >> > >>> On 14 Dec 2018, at 06:34, Jean-Louis Monteiro < > jlmonte...@tomitribe.com> > >> wrote: > >>> > >>> Hey Cesar, > >>> > >>> Thanks, I'll review and merge for you if ok. > >>> You are correct, we currently rely on the TCKs only for MP-JWT. > >>> > >>> This is the bare minimum and ideally we should add our own tests in the > >>> mp-jwt module because the TCKs can't test everything. > >>> > >>> > >>> -- > >>> Jean-Louis Monteiro > >>> http://twitter.com/jlouismonteiro > >>> http://www.tomitribe.com > >>> > >>> > >>> On Fri, Dec 14, 2018 at 4:42 AM César Hernández Mendoza < > >>> cesargu...@gmail.com> wrote: > >>> > The PR for this ticket is ready for review. > > PR: https://github.com/apache/tomee/pull/275 > Ticket: https://issues.apache.org/jira/browse/TOMEE-2357 > > The fix for this issue is in the module `/mp-jwt`, I didn't find any > >> test > package on this module. > Is this on purpose because we have the module > >> `/tck/microprofile-tck/jwt` ? > > Anyway, I included in the PR the test scenario as part of the > `examples/mp-rest-jwt` project. > > > > El mié., 12 dic. 2018 a las 5:44, Roberto Cortez > () escribió: > > > Assigned! > > > >> On 12 Dec 2018, at 05:33, César Hernández Mendoza < > cesargu...@gmail.com> > > wrote: > >> > >> During the creation of a second version of the MP JWT example [1] I > > found a > >> bug related with the enforcement of the @RolesAllowed validation. > >> > >> I created https://issues.apache.org/jira/browse/TOMEE-2357 with the > >> details. If nobody is currently working on this issue, I would like > to > >> request to JIRA admins to assign the ticket to me so I can work on > the > > fix > >> this week. > >> > >> [1] email thread: "MP JWT example revisited" > >> -- > >> Atentamente: > >> César Hernández Mendoza. > > > > > > -- > Atentamente: > César Hernández Mendoza. > > >> > >> > >
Re: MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
Well, because we don’t have any other implementations in TomEE other than JWT, in a couple of cases we did implement some additional tests, and they were done on the TCK modules (for instance Configuration). Where do you suggest to add these? > On 14 Dec 2018, at 10:35, Jean-Louis Monteiro > wrote: > > Hummm > That is not what I would be expecting actually. > I was expecting the TCK modules to be just wiring to run external TCK tests. > > And actual implementation tests to be along side the implementation. > > -- > Jean-Louis Monteiro > http://twitter.com/jlouismonteiro > http://www.tomitribe.com > > > On Fri, Dec 14, 2018 at 11:26 AM Roberto Cortez > wrote: > >> Tests can also be added in the TCK module. I think they should be added >> there actually, since all the other additional tests for the other MP >> implementations are added in their own TCK modules. >> >>> On 14 Dec 2018, at 06:34, Jean-Louis Monteiro >> wrote: >>> >>> Hey Cesar, >>> >>> Thanks, I'll review and merge for you if ok. >>> You are correct, we currently rely on the TCKs only for MP-JWT. >>> >>> This is the bare minimum and ideally we should add our own tests in the >>> mp-jwt module because the TCKs can't test everything. >>> >>> >>> -- >>> Jean-Louis Monteiro >>> http://twitter.com/jlouismonteiro >>> http://www.tomitribe.com >>> >>> >>> On Fri, Dec 14, 2018 at 4:42 AM César Hernández Mendoza < >>> cesargu...@gmail.com> wrote: >>> The PR for this ticket is ready for review. PR: https://github.com/apache/tomee/pull/275 Ticket: https://issues.apache.org/jira/browse/TOMEE-2357 The fix for this issue is in the module `/mp-jwt`, I didn't find any >> test package on this module. Is this on purpose because we have the module >> `/tck/microprofile-tck/jwt` ? Anyway, I included in the PR the test scenario as part of the `examples/mp-rest-jwt` project. El mié., 12 dic. 2018 a las 5:44, Roberto Cortez () escribió: > Assigned! > >> On 12 Dec 2018, at 05:33, César Hernández Mendoza < cesargu...@gmail.com> > wrote: >> >> During the creation of a second version of the MP JWT example [1] I > found a >> bug related with the enforcement of the @RolesAllowed validation. >> >> I created https://issues.apache.org/jira/browse/TOMEE-2357 with the >> details. If nobody is currently working on this issue, I would like to >> request to JIRA admins to assign the ticket to me so I can work on the > fix >> this week. >> >> [1] email thread: "MP JWT example revisited" >> -- >> Atentamente: >> César Hernández Mendoza. > > -- Atentamente: César Hernández Mendoza. >> >>
Re: MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
Hummm That is not what I would be expecting actually. I was expecting the TCK modules to be just wiring to run external TCK tests. And actual implementation tests to be along side the implementation. -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Fri, Dec 14, 2018 at 11:26 AM Roberto Cortez wrote: > Tests can also be added in the TCK module. I think they should be added > there actually, since all the other additional tests for the other MP > implementations are added in their own TCK modules. > > > On 14 Dec 2018, at 06:34, Jean-Louis Monteiro > wrote: > > > > Hey Cesar, > > > > Thanks, I'll review and merge for you if ok. > > You are correct, we currently rely on the TCKs only for MP-JWT. > > > > This is the bare minimum and ideally we should add our own tests in the > > mp-jwt module because the TCKs can't test everything. > > > > > > -- > > Jean-Louis Monteiro > > http://twitter.com/jlouismonteiro > > http://www.tomitribe.com > > > > > > On Fri, Dec 14, 2018 at 4:42 AM César Hernández Mendoza < > > cesargu...@gmail.com> wrote: > > > >> The PR for this ticket is ready for review. > >> > >> PR: https://github.com/apache/tomee/pull/275 > >> Ticket: https://issues.apache.org/jira/browse/TOMEE-2357 > >> > >> The fix for this issue is in the module `/mp-jwt`, I didn't find any > test > >> package on this module. > >> Is this on purpose because we have the module > `/tck/microprofile-tck/jwt` ? > >> > >> Anyway, I included in the PR the test scenario as part of the > >> `examples/mp-rest-jwt` project. > >> > >> > >> > >> El mié., 12 dic. 2018 a las 5:44, Roberto Cortez > >> () escribió: > >> > >>> Assigned! > >>> > On 12 Dec 2018, at 05:33, César Hernández Mendoza < > >> cesargu...@gmail.com> > >>> wrote: > > During the creation of a second version of the MP JWT example [1] I > >>> found a > bug related with the enforcement of the @RolesAllowed validation. > > I created https://issues.apache.org/jira/browse/TOMEE-2357 with the > details. If nobody is currently working on this issue, I would like to > request to JIRA admins to assign the ticket to me so I can work on the > >>> fix > this week. > > [1] email thread: "MP JWT example revisited" > -- > Atentamente: > César Hernández Mendoza. > >>> > >>> > >> > >> -- > >> Atentamente: > >> César Hernández Mendoza. > >> > >
Re: MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
Tests can also be added in the TCK module. I think they should be added there actually, since all the other additional tests for the other MP implementations are added in their own TCK modules. > On 14 Dec 2018, at 06:34, Jean-Louis Monteiro > wrote: > > Hey Cesar, > > Thanks, I'll review and merge for you if ok. > You are correct, we currently rely on the TCKs only for MP-JWT. > > This is the bare minimum and ideally we should add our own tests in the > mp-jwt module because the TCKs can't test everything. > > > -- > Jean-Louis Monteiro > http://twitter.com/jlouismonteiro > http://www.tomitribe.com > > > On Fri, Dec 14, 2018 at 4:42 AM César Hernández Mendoza < > cesargu...@gmail.com> wrote: > >> The PR for this ticket is ready for review. >> >> PR: https://github.com/apache/tomee/pull/275 >> Ticket: https://issues.apache.org/jira/browse/TOMEE-2357 >> >> The fix for this issue is in the module `/mp-jwt`, I didn't find any test >> package on this module. >> Is this on purpose because we have the module `/tck/microprofile-tck/jwt` ? >> >> Anyway, I included in the PR the test scenario as part of the >> `examples/mp-rest-jwt` project. >> >> >> >> El mié., 12 dic. 2018 a las 5:44, Roberto Cortez >> () escribió: >> >>> Assigned! >>> On 12 Dec 2018, at 05:33, César Hernández Mendoza < >> cesargu...@gmail.com> >>> wrote: During the creation of a second version of the MP JWT example [1] I >>> found a bug related with the enforcement of the @RolesAllowed validation. I created https://issues.apache.org/jira/browse/TOMEE-2357 with the details. If nobody is currently working on this issue, I would like to request to JIRA admins to assign the ticket to me so I can work on the >>> fix this week. [1] email thread: "MP JWT example revisited" -- Atentamente: César Hernández Mendoza. >>> >>> >> >> -- >> Atentamente: >> César Hernández Mendoza. >>
Re: MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
Hey Cesar, Thanks, I'll review and merge for you if ok. You are correct, we currently rely on the TCKs only for MP-JWT. This is the bare minimum and ideally we should add our own tests in the mp-jwt module because the TCKs can't test everything. -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Fri, Dec 14, 2018 at 4:42 AM César Hernández Mendoza < cesargu...@gmail.com> wrote: > The PR for this ticket is ready for review. > > PR: https://github.com/apache/tomee/pull/275 > Ticket: https://issues.apache.org/jira/browse/TOMEE-2357 > > The fix for this issue is in the module `/mp-jwt`, I didn't find any test > package on this module. > Is this on purpose because we have the module `/tck/microprofile-tck/jwt` ? > > Anyway, I included in the PR the test scenario as part of the > `examples/mp-rest-jwt` project. > > > > El mié., 12 dic. 2018 a las 5:44, Roberto Cortez > () escribió: > > > Assigned! > > > > > On 12 Dec 2018, at 05:33, César Hernández Mendoza < > cesargu...@gmail.com> > > wrote: > > > > > > During the creation of a second version of the MP JWT example [1] I > > found a > > > bug related with the enforcement of the @RolesAllowed validation. > > > > > > I created https://issues.apache.org/jira/browse/TOMEE-2357 with the > > > details. If nobody is currently working on this issue, I would like to > > > request to JIRA admins to assign the ticket to me so I can work on the > > fix > > > this week. > > > > > > [1] email thread: "MP JWT example revisited" > > > -- > > > Atentamente: > > > César Hernández Mendoza. > > > > > > -- > Atentamente: > César Hernández Mendoza. >
Re: MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
The PR for this ticket is ready for review. PR: https://github.com/apache/tomee/pull/275 Ticket: https://issues.apache.org/jira/browse/TOMEE-2357 The fix for this issue is in the module `/mp-jwt`, I didn't find any test package on this module. Is this on purpose because we have the module `/tck/microprofile-tck/jwt` ? Anyway, I included in the PR the test scenario as part of the `examples/mp-rest-jwt` project. El mié., 12 dic. 2018 a las 5:44, Roberto Cortez () escribió: > Assigned! > > > On 12 Dec 2018, at 05:33, César Hernández Mendoza > wrote: > > > > During the creation of a second version of the MP JWT example [1] I > found a > > bug related with the enforcement of the @RolesAllowed validation. > > > > I created https://issues.apache.org/jira/browse/TOMEE-2357 with the > > details. If nobody is currently working on this issue, I would like to > > request to JIRA admins to assign the ticket to me so I can work on the > fix > > this week. > > > > [1] email thread: "MP JWT example revisited" > > -- > > Atentamente: > > César Hernández Mendoza. > > -- Atentamente: César Hernández Mendoza.
Re: MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
Assigned! > On 12 Dec 2018, at 05:33, César Hernández Mendoza > wrote: > > During the creation of a second version of the MP JWT example [1] I found a > bug related with the enforcement of the @RolesAllowed validation. > > I created https://issues.apache.org/jira/browse/TOMEE-2357 with the > details. If nobody is currently working on this issue, I would like to > request to JIRA admins to assign the ticket to me so I can work on the fix > this week. > > [1] email thread: "MP JWT example revisited" > -- > Atentamente: > César Hernández Mendoza.
MPJWT @RolesAllowed is been applied with a all or nothing policy - TOMEE-2357
During the creation of a second version of the MP JWT example [1] I found a bug related with the enforcement of the @RolesAllowed validation. I created https://issues.apache.org/jira/browse/TOMEE-2357 with the details. If nobody is currently working on this issue, I would like to request to JIRA admins to assign the ticket to me so I can work on the fix this week. [1] email thread: "MP JWT example revisited" -- Atentamente: César Hernández Mendoza.