Minor fixes to close json resources, prevent malformed URLs, and correct index.xhtml values by rbrinkster · Pull Request #313 · javaee-samples/javaee7-samples
Repository navigation
Minor fixes to close json resources, prevent malformed URLs, and correct index.xhtml values - #313
Open
rbrinkster wants to merge 9 commits into javaee-samples:master from rbrinkster:master
Open
Minor fixes to close json resources, prevent malformed URLs, and correct index.xhtml values #313 rbrinkster wants to merge 9 commits into javaee-samples:master from rbrinkster:master
Conversation
rbrinkster commented Jun 22, 2015
Copy link Copy Markdown
No description provided.
rbrinkster added 9 commits June 22, 2015 15:59
Remove double slashes before faces
344be71
In some situations, the base will end without an ending slash, but in other cases it will end with a slash, so the replace should take care of issues with double slashes.
Remove double slashes before faces
71ccc33
In some situations, the base will end without an ending slash, but in other cases it will end with a slash, so the replace should take care of issues with double slashes.
Remove double slashes before faces
8705ff6
In some situations, the base will end without an ending slash, but in other cases it will end with a slash, so the replace should take care of issues with double slashes.
Switched selectBooleanCheckbox to selectManyCheckbox in appropriate a...
d20d81b
...reas In the selectManyListbox and selectManyMenu components, I updated selectBooleanCheckbox to selectManyCheckbox to account for the requirement that a list or array must be provided as the value.
Added close statements for jsonReader
f65b7e7
Added close statements for jsonReader
0b1d511
Added close statements for parser
6885adf
Added close statements for parser
66c17bf
Updated tests with corrections to assertions
c1e334f
rbrinkster commented Jun 24, 2015
Copy link Copy Markdown
Author
|
Yes, so to answer the question on usecases, I am running the samples with both the june beta of liberty as well as glassfish. I can't get the samples that use the faces api to work on glassfish, but in liberty the base URL has an ending slash, so it conflicts with the addition of '/faces'. I thought the best way to get around this without causing conflict would be to replace '//faces' with '/faces' to avoid double slashes. Now, on the updated assertions, I also could not get these samples to run on glassfish, so I wasn't able to crosscheck against liberty. Liberty failed the tests on those assertions, but returned the new strings that I added. They seem slightly more descriptive than the old assertions, so I thought there might've been an update somewhere. |
arun-gupta commented Jun 24, 2015
Copy link Copy Markdown
Contributor
|
Can you test these against WildFly and see how they behave? If they are failing against GlassFish then @m-reza-rahman can help you. |
rbrinkster commented Jun 24, 2015
Copy link Copy Markdown
Author
|
I will run those tests in the morning and give you an update. |
49f8fde to
c1e334f
Compare
June 24, 2015 04:15
arjantijms commented Jun 24, 2015
Copy link Copy Markdown
Contributor
I didn't look at the exact usage of /faces, but if it's for mapping purposes a general advice is to use .xhtml to .xhtml mapping. This will be the default in JSF 2.3 anyway, and for 2.2 and earlier can be realized with a simple servlet mapping. |
rbrinkster commented Jun 24, 2015
Copy link Copy Markdown
Author
|
Okay, so I ran the tests against Wildfly this morning. The replacement to avoid double slashes worked fine, but the assertions that I updated are different than they were on liberty. I'm not sure why the returned values for the assertions are different or which one of them is technically correct, so if you have any input there it would be greatly appreciated. |
arun-gupta commented Jul 2, 2015
Copy link Copy Markdown
Contributor
|
@rbrinkster are you saying that the assertions for WildFly and Liberty Profile are different? |
rbrinkster commented Jul 3, 2015
Copy link Copy Markdown
Author
|
Yes, they are different. Apparently the spec does not require the returned messages to be identical. The only thing that must be identical is the returned code from my understanding. |
arun-gupta commented Jul 3, 2015
Copy link Copy Markdown
Contributor
|
That seems like a spec inconsistency. Can you file issue for that? |
arun-gupta commented Jul 16, 2015
Copy link Copy Markdown
Contributor
|
@rbrinkster have you filed the spec issue? I'd like to close this request after that. |
rbrinkster commented Jul 18, 2015
Copy link Copy Markdown
Author
|
Hi Arun, my apologies for the delay in getting back to you. I have communicated this issue to the IBM expert group reps responsible for Bean Validation and JSF. They will be taking care of opening up a spec issue if needed. |
arun-gupta commented Jul 19, 2015
Copy link Copy Markdown
Contributor
|
Lets clarify that this is indeed the issue, otherwise this change may not be valid. |