Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes to close json resources, prevent malformed URLs, and correct index.xhtml values #313

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

rbrinkster
Copy link

No description provided.

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.
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.
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.
…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.
@rbrinkster
Copy link
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
Copy link
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
Copy link
Author

I will run those tests in the morning and give you an update.

@arjantijms
Copy link
Contributor

I thought the best way to get around this without causing conflict would be to replace '//faces' with '/faces' to avoid double slashes.

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
Copy link
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
Copy link
Contributor

@rbrinkster are you saying that the assertions for WildFly and Liberty Profile are different?

@rbrinkster
Copy link
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
Copy link
Contributor

That seems like a spec inconsistency. Can you file issue for that?

@arun-gupta
Copy link
Contributor

@rbrinkster have you filed the spec issue? I'd like to close this request after that.

@rbrinkster
Copy link
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
Copy link
Contributor

Lets clarify that this is indeed the issue, otherwise this change may not be valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants