Your message dated Mon, 20 Apr 2020 18:04:23 +0000
with message-id <e1jqamn-000dhl...@fasolo.debian.org>
and subject line Bug#952417: fixed in redmine 4.0.7-1
has caused the Debian Bug report #952417,
regarding Fix importing issues due to using the wrong tmp directory
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
952417: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=952417
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: redmine
Version: 4.0.4-3~bpo10+1
Tags: patch

The debian package ships redmine in /usr/share/redmine and sets up
instances in /var/lib/redmine.

Without this change the issue importer attempts to create a directory in
the read-only /usr tree:
Completed 500 Internal Server Error
Errno::EACCES (Permission denied @ dir_s_mkdir - /usr/share/redmine/tmp):

Now it uses the intended tmp directory and issues can be imported again:
/var/lib/redmine/default/tmp/imports/350548aee641641463bc89cd6043738c
>From ee9b172effe5ffc64a15f84b393923d6fb66d99b Mon Sep 17 00:00:00 2001
From: Andre Heider <a.hei...@gmail.com>
Date: Sun, 23 Feb 2020 16:50:58 +0100
Subject: [PATCH] Fix importing issues due to using the wrong tmp directory

The debian package ships redmine in /usr/share/redmine and sets up
instances in /var/lib/redmine.

Without this change the issue importer attempts to create a directory in
the read-only /usr tree:
Completed 500 Internal Server Error
Errno::EACCES (Permission denied @ dir_s_mkdir - /usr/share/redmine/tmp):

Now it uses the intended tmp directory and issues can be imported again:
/var/lib/redmine/default/tmp/imports/350548aee641641463bc89cd6043738c
---
 app/models/import.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/import.rb b/app/models/import.rb
index 7f2715bdb..3efdea53b 100644
--- a/app/models/import.rb
+++ b/app/models/import.rb
@@ -103,7 +103,7 @@ class Import < ActiveRecord::Base
   # It is stored in tmp/imports with a random hex as filename
   def filepath
     if filename.present? && /\A[0-9a-f]+\z/.match?(filename)
-      File.join(Rails.root, "tmp", "imports", filename)
+      File.join(Redmine.root, "tmp", "imports", filename)
     else
       nil
     end
-- 
2.25.0


--- End Message ---
--- Begin Message ---
Source: redmine
Source-Version: 4.0.7-1
Done: =?utf-8?b?TWFyYyBEZXF1w6huZXMgKER1Y2sp?= <d...@duckcorp.org>

We believe that the bug you reported is fixed in the latest version of
redmine, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 952...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marc Dequènes (Duck) <d...@duckcorp.org> (supplier of updated redmine package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 21 Apr 2020 02:32:29 +0900
Source: redmine
Architecture: source
Version: 4.0.7-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Extras Maintainers 
<pkg-ruby-extras-maintain...@lists.alioth.debian.org>
Changed-By: Marc Dequènes (Duck) <d...@duckcorp.org>
Closes: 952417 955042
Changes:
 redmine (4.0.7-1) unstable; urgency=medium
 .
   * New upstream version 4.0.7:
     + adapt/refresh patches.
   * Fix import issue with tmp directory (Thanks Andre Heider) (Closes:
     #952417).
   * Bumped Standards-Version to 4.5.0 (no changes required).
   * Minor package updates suggested by dh-make-ruby.
   * Add upstream metadata.
   * Switch to watch format 4.
   * Add patch to fix drag-and-drop attachments with JQuery 3 (thanks
     Martin Gregoire) (Closes: #955042).
   * Ensure database choice match installed redmine-<db> packages.
Checksums-Sha1:
 844a98e1c47cde75329be7c0b0b7baebb6cd4af1 3006 redmine_4.0.7-1.dsc
 7c6fe94750be45e18546ff9e65c50826d9d2e047 1500748 redmine_4.0.7.orig.tar.xz
 9d9b36260af640a01ce480aba2739762a449b730 243024 redmine_4.0.7-1.debian.tar.xz
 846a5a4b83014987913a43bab0d7ddeb2cf128bb 12521 redmine_4.0.7-1_amd64.buildinfo
Checksums-Sha256:
 d099302358ddcafd56ee506e3a2ecd44b8ee39337f5364cc45f038aa3ad963b7 3006 
redmine_4.0.7-1.dsc
 822f459c87571b001098681a6f8566410ff0ee79d2bd72bab65a8ce6ab0fca57 1500748 
redmine_4.0.7.orig.tar.xz
 87bdadb6fe1e19e16702a68f16941974503b33c6027e343eee7a64e54355674c 243024 
redmine_4.0.7-1.debian.tar.xz
 29d7055c36171a7b64e0d6b2e4a67ac1a924a364dadbb81bdfe2dd4f5f2878da 12521 
redmine_4.0.7-1_amd64.buildinfo
Files:
 240190a9006490442b2fcd09e098a47d 3006 web optional redmine_4.0.7-1.dsc
 14de133bc8459f93c65ffea919237a04 1500748 web optional redmine_4.0.7.orig.tar.xz
 4727280cf24d46f967d29c88c0f0cf9a 243024 web optional 
redmine_4.0.7-1.debian.tar.xz
 8f1f92b99a75a00e270af56dce6c1391 12521 web optional 
redmine_4.0.7-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEcpcqg+UmRT3yiF+BVen596wcRD8FAl6d3r4ACgkQVen596wc
RD/1BQ/8CzRZ8Ul2WC38fdlC6FY9r7qe6IF+IYMHWIFQlznxQK/NWz1AcyEdL5pd
GnIHbe9TdOx1V5HBwb3XYXSbI5Y1tuge6faM0Znl8K7FZEjkzhjqCJJQCb2xFqIc
6bplv6zvhfyooDU3QzdrbnUaNDHtTXK36j0v71LrXOPLu8d07hmK1FpwY98ho1f0
PSrR0FpSySRONjrGJz6ePK1ezyYz9/e7/e2FqgymxclnEBfYVCJq+x0s01sQu4Wh
/+clkKprQPrJ0wADFRoqmYnmYJtD4NL5HB0tk7Y1IDBnpjL92Ob4OKBVkMsMhYxZ
MrrqmEU+mTMmvuivx1qibop094h30gARdWBbSPh0eygoVrsSpn7HqaVmyhbZFknF
1xOrHEe2B/y6ildpKXjqhcSaJVoGj4epvS/b5/FjsRtaU7sjyx45UNdB4bXCeuRl
1qnsWwXMyVmVpbGrVbkHisy3HFA0C/sBU1pWF4I3QM1yW1yufpYxtCcJJy2kNNVB
TxU1GIkAdvsNe4eOeNfXAg9BixILP/3AIDbXgt9kTrwjKDMnioTOdVcap4/nDcYy
4maqayq+kQPz5bDU2JuhM2Aus+pKQxuWqxoh8MT62B7t8zVbwK9wbV0E4FRZJZwC
AZmv0NrirM9SDSLeEzHuacjsepb59Mr9U1SB7FHKW7hJE8ZWswQ=
=NI9g
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
Pkg-ruby-extras-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

Reply via email to