-
Notifications
You must be signed in to change notification settings - Fork 18
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(RDF API): Incorrect internal IRIs #4383
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think using contextPath wil fix the issue, but indeed a test would be nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- In general the code looks fine
- As already mentioned it would be good to add a test for the change in extractBaseUrl
- Update with main first
import java.util.Arrays; | ||
import java.util.Collection; | ||
import java.util.List; | ||
import java.util.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it is not preferable to use * imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDEA did that automatically after I made some changes, I'll make sure to revert it.
Seems Lines 43 to 52 in a5e8310
So the current fix might not work yet anyhow (or any other places that depend on a defined |
…Azure (no permission to use port 80)
Tests were added where So currently using the Javalin test framework that uses a random uncommon port and simply overriding the defined |
Quality Gate passedIssues Measures |
What are the main changes you did:
Context
RDFService
expects base URL of installation only:molgenis-emx2/backend/molgenis-emx2-rdf/src/main/java/org/molgenis/emx2/rdf/RDFService.java
Lines 100 to 102 in 9b22e28
molgenis-emx2/backend/molgenis-emx2-rdf/src/main/java/org/molgenis/emx2/rdf/RDFService.java
Line 109 in 9b22e28
how to test:
curl http://localhost:8080/pet%20store/api/rdf
should contain<http://localhost:8080/pet%20store/api/rdf/User/column/username>
curl https://preview-emx2-pr-4383.dev.molgenis.org/pet%20store/api/rdf
should contain<http://preview-emx2-pr-4383.dev.molgenis.org/pet%20store/api/rdf/User/column/username>
todo: