Bugzilla – Attachment 106081 Details for
Bug 25045
Add a way to restrict anonymous access to public routes (OpacPublic behaviour)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[19.11.x] Bug 25045: (follow-up) Fix typo adding the RESTPublicAnonymousRequests syspref
1911x-Bug-25045-follow-up-Fix-typo-adding-the-REST.patch (text/plain), 2.75 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-06-19 12:40:48 UTC
(
hide
)
Description:
[19.11.x] Bug 25045: (follow-up) Fix typo adding the RESTPublicAnonymousRequests syspref
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-06-19 12:40:48 UTC
Size:
2.75 KB
patch
obsolete
>From 00cdbf45bc0fc6129aac3c00f7890b0bc39cd70d Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 27 Apr 2020 12:47:08 +0200 >Subject: [PATCH] [19.11.x] Bug 25045: (follow-up) Fix typo adding the > RESTPublicAnonymousRequests syspref > >--- > installer/data/mysql/atomicupdate/bug_25045.perl | 5 +++-- > installer/data/mysql/sysprefs.sql | 2 +- > 2 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_25045.perl b/installer/data/mysql/atomicupdate/bug_25045.perl >index d2b62edf80e..bdf5a9eeb11 100644 >--- a/installer/data/mysql/atomicupdate/bug_25045.perl >+++ b/installer/data/mysql/atomicupdate/bug_25045.perl >@@ -8,8 +8,9 @@ if( CheckVersion( $DBversion ) ) { > INSERT IGNORE INTO `systempreferences` > (`variable`,`value`,`explanation`,`options`,`type`) > VALUES >- ('RESTPublicAnonymousRequests', $opac_public, NULL,'If enabled, the API will allow anonymous access to public routes that don\'t require authenticated access'.','YesNo'); >+ ('RESTPublicAnonymousRequests', $opac_public, NULL,"If enabled, the API will allow anonymous access to public routes that don\'t require authenticated access.",'YesNo'); > }); > >- NewVersion( $DBversion, 25045, "Add a way to restrict anonymous access to public routes (OpacPublic behaviour)"); >+ print "Upgrade to $DBversion done ( Bug 25045 - Add a way to restrict anonymous access to public routes (OpacPublic behaviour) )\n"; >+ SetVersion ($DBversion); > } >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index b7ed256953d..bab958d88e0 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -530,7 +530,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('RESTBasicAuth','0',NULL,'If enabled, Basic authentication is enabled for the REST API.','YesNo'), > ('RESTdefaultPageSize','20','','Default page size for endpoints listing objects','Integer'), > ('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo'), >-('RESTPublicAnonymousRequests','1',NULL,'If enabled, the API will allow anonymous access to public routes that don\'t require authenticated access'.','YesNo'), >+('RESTPublicAnonymousRequests','1',NULL,'If enabled, the API will allow anonymous access to public routes that don\'t require authenticated access.','YesNo'), > ('RESTPublicAPI','1',NULL,'If enabled, the REST API will expose the /public endpoints.','YesNo'), > ('RestrictedPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'), > ('RestrictedPageContent','',NULL,'HTML content of the restricted page','TextArea'), >-- >2.27.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25045
:
102846
|
102847
|
102848
|
102849
|
103651
|
103652
|
103653
|
103654
|
103655
|
103675
|
103676
|
103677
|
103678
|
103748
|
103749
|
103773
|
106080
| 106081