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

Fix self link don't match warnings for authorization endpoint #3046

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('AuthorizationDataService', () => {
const ePersonUuid = 'fake-eperson-uuid';

function createExpected(providedObjectUrl: string, providedEPersonUuid?: string, providedFeatureId?: FeatureID): FindListOptions {
const searchParams = [new RequestParam('uri', providedObjectUrl)];
const searchParams = [new RequestParam('uri', providedObjectUrl, false)];
if (hasValue(providedFeatureId)) {
searchParams.push(new RequestParam('feature', providedFeatureId));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ export class AuthorizationDataService extends BaseDataService<Authorization> imp
if (isNotEmpty(options.searchParams)) {
params = [...options.searchParams];
}
params.push(new RequestParam('uri', objectUrl));
// TODO fix encode the uri parameter in the self link in the backend and set encodeValue to true afterwards
params.push(new RequestParam('uri', objectUrl, false));
if (hasValue(featureId)) {
params.push(new RequestParam('feature', featureId));
}
Expand Down
Loading