Bugzilla – Attachment 89664 Details for
Bug 22835
Serve static files from plugins through the API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22835: (follow-up) Remove unwanted warn
Bug-22835-follow-up-Remove-unwanted-warn.patch (text/plain), 1.35 KB, created by
Arthur Suzuki
on 2019-05-13 14:24:51 UTC
(
hide
)
Description:
Bug 22835: (follow-up) Remove unwanted warn
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2019-05-13 14:24:51 UTC
Size:
1.35 KB
patch
obsolete
>From b3e50a9545d59c3e2f5d079c4b904bf135bd11d7 Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Fri, 3 May 2019 00:15:12 -0300 >Subject: [PATCH] Bug 22835: (follow-up) Remove unwanted warn > >Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com> >--- > Koha/REST/V1/Static.pm | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > >diff --git a/Koha/REST/V1/Static.pm b/Koha/REST/V1/Static.pm >index d0f31c9a40..0883a378c2 100644 >--- a/Koha/REST/V1/Static.pm >+++ b/Koha/REST/V1/Static.pm >@@ -55,7 +55,7 @@ sub get { > ); > > @plugins = grep { $_->api_namespace eq $namespace} @plugins; >- warn scalar(@plugins); >+ > return $c->render({ status => 404, openapi => { error => 'File not found' } }) unless scalar(@plugins) > 0; > return $c->render({ status => 500, openapi => { error => 'Namespace not unique' } }) unless scalar(@plugins) == 1; > >@@ -63,13 +63,8 @@ sub get { > > my $basepath = $plugin->bundle_path; > >- warn $basepath; >- > my $relpath = join ('/', splice (@$path, 5)); > >- warn $relpath; >- >- warn join('/', $basepath, $relpath); > return try { > my $asset = Mojo::Asset::File->new(path => join('/', $basepath, $relpath)); > return $c->render({ status => 404, openapi => { error => 'File not found' } }) unless $asset->is_file; >-- >2.11.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 22835
:
89262
|
89263
|
89280
|
89663
|
89664
|
89812
|
90148
|
90149
|
90150