Skip to content

Commit d3e057e

Browse files
Merge branch 'w2p-109964_fix-vocabulary-options-with-url-as-stored-value_contribute-7.6' into w2p-109964_fix-vocabulary-options-with-url-as-stored-value_contribute-main
2 parents f59510d + b0991db commit d3e057e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/app/core/data/feature-authorization/authorization-data.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('AuthorizationDataService', () => {
7272
const ePersonUuid = 'fake-eperson-uuid';
7373

7474
function createExpected(providedObjectUrl: string, providedEPersonUuid?: string, providedFeatureId?: FeatureID): FindListOptions {
75-
const searchParams = [new RequestParam('uri', providedObjectUrl)];
75+
const searchParams = [new RequestParam('uri', providedObjectUrl, false)];
7676
if (hasValue(providedFeatureId)) {
7777
searchParams.push(new RequestParam('feature', providedFeatureId));
7878
}

src/app/core/data/feature-authorization/authorization-data.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ export class AuthorizationDataService extends BaseDataService<Authorization> imp
147147
if (isNotEmpty(options.searchParams)) {
148148
params = [...options.searchParams];
149149
}
150-
params.push(new RequestParam('uri', objectUrl));
150+
// TODO fix encode the uri parameter in the self link in the backend and set encodeValue to true afterwards
151+
params.push(new RequestParam('uri', objectUrl, false));
151152
if (hasValue(featureId)) {
152153
params.push(new RequestParam('feature', featureId));
153154
}

0 commit comments

Comments
 (0)