Bugzilla – Attachment 186882 Details for
Bug 37622
"location" header is set for non-POST routes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37622: Remove location from 2 preservation 'update' routes
Bug-37622-Remove-location-from-2-preservation-upda.patch (text/plain), 1.65 KB, created by
Martin Renvoize (ashimema)
on 2025-09-24 13:33:34 UTC
(
hide
)
Description:
Bug 37622: Remove location from 2 preservation 'update' routes
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-09-24 13:33:34 UTC
Size:
1.65 KB
patch
obsolete
>From e748ff2eee74fdb5bd5d76f90d4c4adeadbabdfe Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 15 Sep 2025 10:41:49 +0200 >Subject: [PATCH] Bug 37622: Remove location from 2 preservation 'update' > routes > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> >--- > Koha/REST/V1/Preservation/Processings.pm | 1 - > Koha/REST/V1/Preservation/Trains.pm | 1 - > 2 files changed, 2 deletions(-) > >diff --git a/Koha/REST/V1/Preservation/Processings.pm b/Koha/REST/V1/Preservation/Processings.pm >index dafb6eff789..503ae62b5b6 100644 >--- a/Koha/REST/V1/Preservation/Processings.pm >+++ b/Koha/REST/V1/Preservation/Processings.pm >@@ -154,7 +154,6 @@ sub update { > $processing->set_from_api($body)->store; > $processing->attributes($attributes); > >- $c->res->headers->location( $c->req->url->to_string . '/' . $processing->processing_id ); > return $c->render( > status => 200, > openapi => $c->objects->to_api($processing), >diff --git a/Koha/REST/V1/Preservation/Trains.pm b/Koha/REST/V1/Preservation/Trains.pm >index 53fc2092be4..59e9787dcf1 100644 >--- a/Koha/REST/V1/Preservation/Trains.pm >+++ b/Koha/REST/V1/Preservation/Trains.pm >@@ -151,7 +151,6 @@ sub update { > > $train->set_from_api($body)->store; > >- $c->res->headers->location( $c->req->url->to_string . '/' . $train->train_id ); > return $c->render( > status => 200, > openapi => $c->objects->to_api($train), >-- >2.51.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 37622
:
170248
|
176567
|
180743
|
186395
|
186396
|
186397
|
186398
|
186879
|
186880
|
186881
| 186882