-
Notifications
You must be signed in to change notification settings - Fork 40
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
Make meta.location a full and valid URI #797
Comments
The URL is resolved from the private Context getEffectiveContext(UriInfos uriInfos, String requestBody, Context context)
{
Context effectiveContext = Optional.ofNullable(context).orElse(new Context(null));
effectiveContext.setUriInfos(uriInfos);
effectiveContext.setResourceReferenceUrl(id -> {
return super.getReferenceUrlSupplier(uriInfos::getBaseUri).apply(id, uriInfos.getResourceType().getName());
});
effectiveContext.setCrossResourceReferenceUrl((id, resourceName) -> {
return super.getReferenceUrlSupplier(uriInfos::getBaseUri).apply(id, resourceName);
});
effectiveContext.setRequestBodySupplier(() -> {
return requestBody;
});
return effectiveContext;
} This code is always executed and used. So I can only imagine that you messed with this object in some way. |
Oh, there is another possibiltiy. |
It was as simple as that. I removed the values from my json file, it works. Thanks. |
I am not sure this is an issue but I cannot figure out how to make it work.
In my custom-resource.json I have a meta.location defined as follows:
When requesting
/ResourceTypes
on my server, the meta.location is provided as is. But I was expecting some valid URLhttp://localhost:8080/scim/v2/ResourceTypes/MyResource
.In detail:
http://localhost:8080
-> where my webapp is hosted/scim/v2
-> the sub-URI the webapp is accessed/ResourceTypes/MyResource
-> the part that is found in the json fileThe text was updated successfully, but these errors were encountered: