-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix Dialog URL on ServiceProviderFactory #236
Conversation
Adding the section to look for the catalogUrl endpoint of the Configuration Management service from the Rootservices. Signed-off-by: Mario Jiménez Carrasco <[email protected]>
Use the URI used on the creation of the dialog to use the correct URL that contains the genericBaseURI which represents the context. Close eclipse-lyo#235 Signed-off-by: isccarrasco <[email protected]>
@isccarrasco thank you for the PR! Looks good to me but we need to test it because I forgot the difference between the two arguments and we should be able to merge it soon. |
Mario, I just took a look at how this code is used now. Sadly, we don't have any test coverage for this. Right now the adaptors during initialization provide the base URI via Instead, the How do you hit this problem? Our code calls
I am guessing you are passing the full URI to Also, how are you using those "generic" base URIs? I am thinking to deprecate URI guessing for dialogs that are not fully annotated altogether to avoid confusion. CC @jadelkhoury |
Hi I just tried to walk through the code. I am not sure what this change can solve. Can you please Mario? I can see though how this can be problematic since the genericBaseUri seem to have a whole different purpose. Making the suggested change will certainly change the current behaviour. as suggested by @berezovskyi , will not passing the baseURI as you expect it to be do the job? |
So, I normally set the baseUri to OSLC4JUtils.getServletURI() to make it refer to the same base as hte rest of the OSLC server. But I cannot see any thing hindering passing any other parameter. |
Can one of the admins verify this patch? |
add to whitelist |
I removed the 5.0 milestone not to block the release. |
Kudos, SonarCloud Quality Gate passed! |
Closing this PR without merging. @isccarrasco if you still have this problem, please reply to #236 (comment) and we will consider reopening it. Thank you! |
Description
Solves the issue found in the ServiceProviderFactory in which the URL for the Dialogs are assigned to the same URL of the OSL API, the fix is to set the URL to the web application in which the html files are hosted
Checklist
Issues
Closes #235
(use exactly this syntax to link to issues, one issue per statement only!)