Bugzilla – Attachment 186398 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.59 KB, created by
Jonathan Druart
on 2025-09-15 08:42:50 UTC
(
hide
)
Description:
Bug 37622: Remove location from 2 preservation 'update' routes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-09-15 08:42:50 UTC
Size:
1.59 KB
patch
obsolete
>From a7dc6e496115782ec3658cba85009fc38e2aeb73 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> >--- > 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 e85ac7ee69a..d3b3b0a9bcd 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 4c5107b2028..a008ddb039f 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.34.1
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