Your message dated Sat, 02 May 2015 21:58:09 +0000
with message-id <[email protected]>
and subject line Bug#783717: fixed in redmine 3.0~20140825-6
has caused the Debian Bug report #783717,
regarding redmine: Can not move issue to another project
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 [email protected]
immediately.)


-- 
783717: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783717
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: redmine
Version: 3.0~20140825-5
Severity: normal
Tags: patch

Dear Maintainer,

Since upgrading from wheezy to jessie (i.e. to redmine 3.0~20140825-5) it is
not possible to move issues between projects.

When, after pressing edit on the issue, I choose the new project from the drop
down list it switches back to the original project after about one second.
This means that I am unable to save the change (because it is reverted before I
can save it).

I don't see this bug reported upstream in either version 2.5 or 3.0 so I am
wondering if this is a debian specific bug, or maybe an issue which was in
2.5.2.devel (which is what this version claims to be) which was fixed upstream
before release.

The bug does not occur in the version in wheezy-backports (2.5.1.stable) (using
an install which was based on a copy of the same database).

It looks like the way this works is that the browser calls
issues/update_form.js which seems to reload the form, however, it loads it with
the origional project.

Looking upstream at the official 3.0 release it seems that the update_form 
action
in issues_controller.rb has been removed.

So, I have made a fix with the attached patch (basically we always load the
project from the issue[project_id] parameter and ignore the project_id from the
URL when running update_form).





-- System Information:
Debian Release: 8.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages redmine depends on:
ii  bundler                         1.7.4-1
ii  dbconfig-common                 1.8.47+nmu3
ii  debconf [debconf-2.0]           1.5.56
ii  libjs-scriptaculous             1.9.0-2
ii  redmine-mysql                   3.0~20140825-5
ii  redmine-sqlite                  3.0~20140825-5
ii  ruby                            1:2.1.5
ii  ruby-actionpack-action-caching  1.1.1-3
ii  ruby-awesome-nested-set         3.0.0-1
ii  ruby-coderay                    1.1.0-2
ii  ruby-i18n                       0.6.9-2
ii  ruby-jquery-rails               3.1.2-2
ii  ruby-mime-types                 1.25-2
ii  ruby-net-ldap                   0.8.0-1
ii  ruby-openid                     2.5.0debian-1
ii  ruby-protected-attributes       1.0.8-2
ii  ruby-rack                       1.5.2-3
ii  ruby-rack-openid                1.4.2-1
ii  ruby-rails                      2:4.1.8-1
ii  ruby-rails-observers            0.1.1-1
ii  ruby-redcarpet                  3.1.2-1
ii  ruby-request-store              1.1.0-1
ii  ruby-rmagick                    2.13.2-4+b1
ii  ruby2.1 [ruby-interpreter]      2.1.5-2

Versions of packages redmine recommends:
ii  libfcgi-ruby1.9.1              0.9.2.1-1
ii  ruby-fcgi [libfcgi-ruby1.9.1]  0.9.2.1-1+b3
ii  ruby-passenger                 4.0.53-1

Versions of packages redmine suggests:
pn  bzr         <none>
pn  cvs         <none>
pn  darcs       <none>
ii  git         1:2.1.4-2.1
pn  mercurial   <none>
ii  subversion  1.8.10-6

-- debconf information:
  redmine/notify-migration:
  redmine/old-instances:
  redmine/instances/default/pgsql/admin-user: postgres
  redmine/instances/default/remove-error: abort
  redmine/instances/default/internal/skip-preseed: true
* redmine/current-instances: default
  redmine/instances/default/dbconfig-upgrade: true
  redmine/instances/default/passwords-do-not-match:
  redmine/instances/default/upgrade-backup: true
  redmine/instances/default/db/basepath:
* redmine/instances/default/db/app-user: redmine
  redmine/instances/default/pgsql/changeconf: false
  redmine/instances/default/pgsql/no-empty-passwords:
* redmine/missing-redmine-package:
  redmine/instances/default/pgsql/manualconf:
* redmine/instances/default/default-language: en-gb
* redmine/instances/default/mysql/method: tcp/ip
  redmine/instances/default/purge: false
  redmine/instances/default/pgsql/method: unix socket
  redmine/default-language: ${defaultLocale}
* redmine/instances/default/remote/port:
  redmine/instances/default/install-error: retry
* redmine/instances/default/dbconfig-install: true
  redmine/instances/default/missing-db-package-error: abort
* redmine/instances/default/mysql/admin-user: root
  redmine/instances/default/pgsql/authmethod-admin: ident
  redmine/instances/default/upgrade-error: abort
  redmine/instances/default/dbconfig-remove:
  redmine/instances/default/pgsql/authmethod-user: password
* redmine/instances/default/database-type: mysql
  redmine/instances/default/internal/reconfiguring: true
* redmine/instances/default/db/dbname: redmine_default
* redmine/instances/default/dbconfig-reinstall: false

-- debsums errors found:
debsums: changed file /usr/share/redmine/app/controllers/issues_controller.rb 
(from redmine package)
--- redmine_3.0~20140825-5_orig/usr/share/redmine/app/controllers/issues_controller.rb	2014-07-09 18:29:52.000000000 +0100
+++ /usr/share/redmine/app/controllers/issues_controller.rb	2015-04-29 13:35:09.000000000 +0100
@@ -21,7 +21,8 @@
 
   before_filter :find_issue, :only => [:show, :edit, :update]
   before_filter :find_issues, :only => [:bulk_edit, :bulk_update, :destroy]
-  before_filter :find_project, :only => [:new, :create, :update_form]
+  before_filter :find_project, :only => [:new, :create]
+  before_filter :find_project_from_issue, :only => [:update_form]
   before_filter :authorize, :except => [:index]
   before_filter :find_optional_project, :only => [:index]
   before_filter :check_for_default_issue_status, :only => [:new, :create]
@@ -352,6 +353,13 @@
     render_404
   end
 
+  def find_project_from_issue
+    project_id = (params[:issue] && params[:issue][:project_id])
+    @project = Project.find(project_id)
+  rescue ActiveRecord::RecordNotFound
+    render_404
+  end
+
   def retrieve_previous_and_next_issue_ids
     retrieve_query_from_session
     if @query
@@ -419,7 +427,7 @@
       end
       @issue.project = @project
     else
-      @issue = @project.issues.visible.find(params[:id])
+      @issue = Issue.visible.find(params[:id])
     end
 
     @issue.project = @project

--- End Message ---
--- Begin Message ---
Source: redmine
Source-Version: 3.0~20140825-6

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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antonio Terceiro <[email protected]> (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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 02 May 2015 11:33:20 -0300
Source: redmine
Binary: redmine redmine-mysql redmine-pgsql redmine-sqlite
Architecture: source all
Version: 3.0~20140825-6
Distribution: unstable
Urgency: medium
Maintainer: Jérémy Lal <[email protected]>
Changed-By: Antonio Terceiro <[email protected]>
Description:
 redmine    - flexible project management web application
 redmine-mysql - metapackage providing MySQL dependencies for Redmine
 redmine-pgsql - metapackage providing PostgreSQL dependencies for Redmine
 redmine-sqlite - metapackage providing sqlite dependencies for Redmine
Closes: 777736 779273 780894 781534 783717
Changes:
 redmine (3.0~20140825-6) unstable; urgency=medium
 .
   * debian/doc/examples/apache2-host.conf: fix typo in package name user is
     told to install Closes: #777736
   * Fix upgrades when there are locally-installed plugins Closes: #779273
     - debian/postinst: run rake under `bundle exec` to correctly handle
       upgrades when the local admin installed non-packaged plugins (i.e.
       ~100% of them).
     - 2003_externalize_session_config.patch, 2002_FHS_through_env_vars.patch,
       gemfile-adjustments.patch: always set RAILS_ETC, RAILS_* unconditionally
       from X_DEBIAN_SITEID because the load order under `bundle exec` seems to
       be a little different.
     - change Gemfile.lock handling:
       + symlink Gemfile.lock to /var/lib/redmine/Gemfile.lock
       + always update it at the beginning of debian/postinst
       + trigger postinst Ruby packages are upgraded
   * Don't leave unowned files after purge. Closes: #781534
     - debian/postinst:
       - don't create files under /usr/share/redmine/app
       - pass SCHEMA=/dev/null to rake `db:migrate` so it won't create
         /usr/share/redmine/db/schema.rb
     - debian/postrm: remove the aforementioned files
   * debian/postinst: fix several programming errors
     - initialize variable that will hold the return code of a potentially
       failing command to 0 so it is not undefined if the command suceeeds.
       Closes: #780894
     - add missing quotes around $fHasOldSessionName
     - fix logic when testing whether session.yml file exists
     - restrict usage of $2 as a version number when triggered, since $2 will
       contain the trigger names instead.
   * debian/patches/fix-move-issue-between-projects.patch: applied patch by
     Tristam Fenton-May to fix moving issues across projects (Closes: #783717)
   * debian/install:
     - install bin/ directory so rails detects redmine as a proper Rails app
       + This fixes running `rails console`, `rails dbconsole` etc from within
         the installed package at /usr/share/redmine.
     - don't install deprecated script/ directory
   * debian/doc/examples/apache2-passenger-*.conf: document line that must
     be changed in extra instances.
   * debian/patches/gemfile-adjustments.patch:
     - bump dependency on redcarpet
     - don't try to read database.yml is it's not readable
Checksums-Sha1:
 a38fab9b6ff70bed5ff0e55ffbfc10ec8c4143bc 2266 redmine_3.0~20140825-6.dsc
 8f5c279f604ec95327c48a22e6088cbab5a191cf 240088 
redmine_3.0~20140825-6.debian.tar.xz
 c6b603d2f533640398e234c9e7c6e2cf0f0f6caa 4653900 redmine_3.0~20140825-6_all.deb
 e09bfdfe44056d8ea34660ee14bcc6e95ea2d78b 70412 
redmine-mysql_3.0~20140825-6_all.deb
 afe4025cd019caf30761f0ea858f5f5d824f3530 70398 
redmine-pgsql_3.0~20140825-6_all.deb
 c7c8f2f5fc34395dcc7c42486eed1c7085b5af94 70376 
redmine-sqlite_3.0~20140825-6_all.deb
Checksums-Sha256:
 b8acb3d7bd12ab52761014bb80c08a0e9a711c1712c1af5c17179fffb6a2e766 2266 
redmine_3.0~20140825-6.dsc
 a7f59d295da0c139777891f37916ea049978f5fa31cf3a1673dae6722453b3f3 240088 
redmine_3.0~20140825-6.debian.tar.xz
 f92d5bd1dcbe95c990e2c792c1336f9031711e80ba5a48ae2dc3d7afe080c19a 4653900 
redmine_3.0~20140825-6_all.deb
 4bc971b225065a0090467d3901b3ea57b54ba14b4c18777161c533f70bebc047 70412 
redmine-mysql_3.0~20140825-6_all.deb
 20590e71e0f74b121cfbec6d50b5d83efea05060cb0003bfb0a5c373dd9ebd9f 70398 
redmine-pgsql_3.0~20140825-6_all.deb
 5a1807dd5e3d3e4a01444af0ee1077cf8c5f98f8cfc50d1c355af787116f7c28 70376 
redmine-sqlite_3.0~20140825-6_all.deb
Files:
 ae2dfe032f6f5f4552c15cc2285aa369 2266 web extra redmine_3.0~20140825-6.dsc
 846f6ba7abf1cb2ba9f9e1dd2767e347 240088 web extra 
redmine_3.0~20140825-6.debian.tar.xz
 abf4b7c8e56b803e0b8b64e659d57fe3 4653900 web extra 
redmine_3.0~20140825-6_all.deb
 f89998a86308fe016f5e653c955b22ae 70412 web extra 
redmine-mysql_3.0~20140825-6_all.deb
 2246e3efe8812b69929b274b342168ab 70398 web extra 
redmine-pgsql_3.0~20140825-6_all.deb
 9c2379b2d5b0e1da298d6dff5322eae0 70376 web extra 
redmine-sqlite_3.0~20140825-6_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJVRTrDAAoJEPwNsbvNRgve/PQP/RdLSZsv+qG/0O5L4T+wYNhZ
qRJHEg39/VRQfe5+ezIQUP31w79qIFhT/o1xCTigI/BZqDMumXxarf0F8eSXFsEc
aTinQzaxtGw4ASYCAxdiSVrZ1Z3lJFHk0AjXCE4qLJeo+KJZvn0Cg3ZRd1m2tLtD
/yi8OtTijAbTGdehu791qTgI0ciJPmZOthj0zBFMYh9ey11qTqvLjrsgSs9edKeO
TlNiywEfvJuYlXcQccAJgY91PMvlyNjqJYyyfE/y2Oh6+p82fXHWUrLXR91vDDNn
fd6KU0Ok3U18dT8LR5t8AjItLdetC1LWGPg/AF0M1yFq2zJSHP9Qd1+21vcKEGfT
JqMKwaHa6lBOYDTmX2v9VMaEtInFnlCBIFG6IijKwZdyo/bNE8NJ4SLtMZjsVGyF
gPJrxnjr63lDcUUrhdOsY7vHYNlNEkVKZtTyrVuzNS3k1seg4EYuSQGMRthGcUTP
jY6iIyCQmZiGk3vJ8udjraWo4SgYAhjyfBMsIEjPFWKr0kBgVUMUJUQ+cGIX9pKS
7uxwPAsZjOQPwSNVtBfOhhUu+5iKzUOd46kkTw0Ob9X56L9JcJWRI/amESj/y877
MNKz/SozRpD+rRFTyEWMugq35o+X2skltZ+2tlb2lPJdyA5iGoFhoIdsgN2Rk6Yb
yc+aIHE4h+PJT5b0IEfl
=F13z
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to