Compatibility with 2.1.x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Redmine Local Avatars Plugin |
New
|
Undecided
|
Unassigned |
Bug Description
Are there any plans on ensuring compatibility with 2.1.x?
We're using 2.1.3 in the company, and we're trying to make sales departments use it along with IT crowd... So the functionality like this is highly beneficial to "sell" redmine to sales :)
current errors:
Started GET "/users/30/edit" for 192.168.44.1 at Пнд Окт 22 17:23:05 +0400 2012
Processing by UsersController
Parameters: {"id"=>"30"}
Current user: admin (id=1)
Rendered users/_
Rendered users/_
Rendered users/_
Rendered users/_
Rendered users/_
Rendered users/_
Rendered common/
Rendered users/edit.html.erb within layouts/admin (599.7ms)
Missing template, responding with 404
Rendered common/
Completed 404 Not Found in 646ms (Views: 13.6ms | ActiveRecord: 8.3ms)
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Luca Pireddu (pireddu) wrote : | #1 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Oleg V. Kozlyuk (elquentaro) wrote : Re: [Bug 1069808] Re: Compatibility with 2.1.x | #2 |
Hi, Luca.
Yes, but my Ruby knowledge is close to zero. I'll try to dig in if you give
me a hint, though.
2012/10/22 Luca Pireddu <email address hidden>
> Hi Oleg. Currently I don't have the time to maintain upwards Redmine
> compatibility.
>
> However, I'll accept patches. Are you a developer?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Compatibility with 2.1.x
>
> Status in Redmine Local Avatars Plugin:
> New
>
> Bug description:
> Are there any plans on ensuring compatibility with 2.1.x?
>
> We're using 2.1.3 in the company, and we're trying to make sales
> departments use it along with IT crowd... So the functionality like
> this is highly beneficial to "sell" redmine to sales :)
>
> current errors:
>
> Started GET "/users/30/edit" for 192.168.44.1 at Пнд Окт 22 17:23:05
> +0400 2012
> Processing by UsersController
> Parameters: {"id"=>"30"}
> Current user: admin (id=1)
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered common/
> Rendered users/edit.html.erb within layouts/admin (599.7ms)
> Missing template, responding with 404
> Rendered common/
> Completed 404 Not Found in 646ms (Views: 13.6ms | ActiveRecord: 8.3ms)
>
> To manage notifications about this bug go to:
> https:/
>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
archonwang (archonwang1981) wrote : | #3 |
Urrr....
I have the same problem..
my logs as follow:
<pre>
Started GET "/users/1/edit" for 192.168.3.41 at 2012-10-24 11:58:15 +0800
Processing by UsersController
Parameters: {"id"=>"1"}
Current user: admin (id=1)
Rendered users/_
Rendered users/_
Rendered users/_
Rendered users/_
Rendered users/_
Rendered common/
Rendered users/edit.html.erb within layouts/admin (920.8ms)
Missing template, responding with 404
Rendered common/
Rendered plugins/
Rendered plugins/
Rendered plugins/
Rendered plugins/
Rendered plugins/
Completed 404 Not Found in 1105ms (Views: 86.0ms | ActiveRecord: 6.4ms)
</pre>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Chris Luke (chrisy) wrote : | #4 |
This patch seems to fix the plugin for rm 2.1.x. Fixes the naming of the two templates, and makes my/avatar a full page rather than a partial (there was no parent page for it to be a partial of):
=== renamed file 'app/views/
=== added directory 'app/views/my'
=== renamed file 'app/views/
--- app/views/
+++ app/views/
@@ -1,11 +1,17 @@
<div class="box">
-<h3><%= l(:label_
+
+<h2><%= l(:label_
+
<div style="width: 128px; height: 128px; border: 1px silver solid;">
<%= avatar(@user, :size => "128") %>
</div><br>
-<%= form_tag( { :action => 'save_avatar', :id => @user }, :multipart => true) do %>
+
+<%= form_tag( { :action => 'save_avatar', :id => @user.id }, :multipart => true) do %>
<%= file_field_tag "avatar" %><br />
<%= submit_tag l(:button_save) %>
<%= submit_tag l(:button_delete), :confirm => l(:are_
<% end %>
+
</div>
+
+<% html_title(
=== removed directory 'app/views/users'
=== modified file 'lib/my_
--- lib/my_
+++ lib/my_
@@ -31,7 +31,6 @@
def avatar
@user = User.current
- render :partial => 'users/avatar', :layout => true
end
def save_avatar
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Chris Luke (chrisy) wrote : | #5 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Oleg V. Kozlyuk (elquentaro) wrote : | #6 |
Thank you, Chris!
Unfortunately, that didn't cut it for me.
[root@redmine-test redminelocalava
patching file app/views/
patching file lib/my_
Results: still 404 (http://
Fixes with erb.html -> html.erb are nice pick, regardless. Maybe there is something else?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
cforce (cforce) wrote : | #7 |
Is it solved now?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
André Radke (radke) wrote : | #8 |
Oleg, I ran into the same problems you did and I think I have figured out a solution:
The GET on /my/account appears to fail if your plugin directory is named anything other than "redmine_
The page for editing users fails because it expects a partial template at app/views/
I'm new to hacking Ruby on Rails, so I have no idea if my patch is backwards compatible.
HTH, -Andre
=== renamed file 'app/views/
=== added directory 'app/views/my'
=== added file 'app/views/
--- app/views/
+++ app/views/
@@ -0,0 +1,13 @@
+<div class="box">
+<h2><%= l(:label_
+<div style="width: 128px; height: 128px; border: 1px silver solid;">
+<%= avatar(@user, :size => "128") %>
+</div><br>
+<%= form_tag( { :action => 'save_avatar', :id => @user.id }, :multipart => true) do %>
+ <%= file_field_tag "avatar" %><br />
+ <%= submit_tag l(:button_save) %>
+ <%= submit_tag l(:button_delete), :confirm => l(:are_
+<% end %>
+</div>
+
+<% html_title(
=== renamed file 'app/views/
=== modified file 'lib/my_
--- lib/my_
+++ lib/my_
@@ -31,7 +31,7 @@
def avatar
@user = User.current
- render :partial => 'users/avatar', :layout => true
+# render :partial => 'users/avatar', :layout => true
end
def save_avatar
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Oleg V. Kozlyuk (elquentaro) wrote : | #9 |
Hi, Andre.
Your patch does fix the /users/X view and /my/page view, however, when opening my/account page, I am still presented with 404.
Upon applying your patch, the patch utility says it is unable to locate lib/my_
Could you please send me your whole plugin folder, to see if it works for me?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Oleg V. Kozlyuk (elquentaro) wrote : | #10 |
Current log message:
Started GET "/my/account" for 172.16.9.84 at 2013-01-14 17:21:29 +0400
Processing by MyController#
Current user: o.kozlyuk (id=4)
Rendered my/account.html.erb within layouts/base (7.0ms)
Missing template, responding with 404
Rendered common/
Rendered inline template (1.1ms)
Completed 404 Not Found in 50ms (Views: 29.8ms | ActiveRecord: 2.1ms)
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
André Radke (radke) wrote : | #11 |
I created my patch with "bzr diff". I'm not sure if the patch utility will handle the file renaming properly. Anyway, here's what the file hierarchy should look like after applying my patch:
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
redmine_
It's apparently important to get the leading underscores right in app/views...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Oleg V. Kozlyuk (elquentaro) wrote : | #12 |
Hi,
unfortunately, leading underscores were not the problem here... I've
tried them in all combination (_avatar.html.erb, avatar.html.erb,
_avatar.erb.html, etc.)
Your version is working, however, many thanks!!!
I'll compare the file structure later today - need to figure out how
to correctly use "patch" myself. However, the version looks good.
Maybe you can send a "pull request" to Luca Pireddu with your changes?
2013/1/15 André Radke <email address hidden>:
> I created my patch with "bzr diff". I'm not sure if the patch utility
> will handle the file renaming properly. Anyway, here's what the file
> hierarchy should look like after applying my patch:
>
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
>
> It's apparently important to get the leading underscores right in
> app/views...
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Compatibility with 2.1.x
>
> Status in Redmine Local Avatars Plugin:
> New
>
> Bug description:
> Are there any plans on ensuring compatibility with 2.1.x?
>
> We're using 2.1.3 in the company, and we're trying to make sales
> departments use it along with IT crowd... So the functionality like
> this is highly beneficial to "sell" redmine to sales :)
>
> current errors:
>
> Started GET "/users/30/edit" for 192.168.44.1 at Пнд Окт 22 17:23:05 +0400 2012
> Processing by UsersController
> Parameters: {"id"=>"30"}
> Current user: admin (id=1)
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered common/
> Rendered users/edit.html.erb within layouts/admin (599.7ms)
> Missing template, responding with 404
> Rendered common/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
André Radke (radke) wrote : | #13 |
Hi Oleg,
I already tried to generate a "pull request" for the version control system at launchpad.net but I have never used the bzr client before and thus failed. Now that you have confirmed that my version works for you, I might give it another go...
André
-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Oleg V. Kozlyuk
Sent: Dienstag, 15. Januar 2013 09:17
To: André Radke
Subject: Re: [Bug 1069808] Re: Compatibility with 2.1.x
Hi,
unfortunately, leading underscores were not the problem here... I've
tried them in all combination (_avatar.html.erb, avatar.html.erb,
_avatar.erb.html, etc.)
Your version is working, however, many thanks!!!
I'll compare the file structure later today - need to figure out how
to correctly use "patch" myself. However, the version looks good.
Maybe you can send a "pull request" to Luca Pireddu with your changes?
2013/1/15 André Radke <email address hidden>:
> I created my patch with "bzr diff". I'm not sure if the patch utility
> will handle the file renaming properly. Anyway, here's what the file
> hierarchy should look like after applying my patch:
>
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
> redmine_
>
> It's apparently important to get the leading underscores right in
> app/views...
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Compatibility with 2.1.x
>
> Status in Redmine Local Avatars Plugin:
> New
>
> Bug description:
> Are there any plans on ensuring compatibility with 2.1.x?
>
> We're using 2.1.3 in the company, and we're trying to make sales
> departments use it along with IT crowd... So the functionality like
> this is highly beneficial to "sell" redmine to sales :)
>
> current errors:
>
> Started GET "/users/30/edit" for 192.168.44.1 at Пнд Окт 22 17:23:05 +0400 2012
> Processing by UsersController
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Luca Pireddu (pireddu) wrote : | #14 |
Hi André,
I quietly monitor the progress you guys are making :-)
If you send me a patch I'll apply it for you.
Luca
ps: if someone's interested in maintaining this project, I'd be happy to
add you to the developers with commit access.
On 15 January 2013 11:58, André Radke <email address hidden> wrote:
> Hi Oleg,
>
> I already tried to generate a "pull request" for the version control
> system at launchpad.net but I have never used the bzr client before and
> thus failed. Now that you have confirmed that my version works for you,
> I might give it another go...
>
> André
>
>
> -----Original Message-----
> From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
> Oleg V. Kozlyuk
> Sent: Dienstag, 15. Januar 2013 09:17
> To: André Radke
> Subject: Re: [Bug 1069808] Re: Compatibility with 2.1.x
>
> Hi,
>
> unfortunately, leading underscores were not the problem here... I've
> tried them in all combination (_avatar.html.erb, avatar.html.erb,
> _avatar.erb.html, etc.)
>
> Your version is working, however, many thanks!!!
> I'll compare the file structure later today - need to figure out how
> to correctly use "patch" myself. However, the version looks good.
> Maybe you can send a "pull request" to Luca Pireddu with your changes?
>
> 2013/1/15 André Radke <email address hidden>:
> > I created my patch with "bzr diff". I'm not sure if the patch utility
> > will handle the file renaming properly. Anyway, here's what the file
> > hierarchy should look like after applying my patch:
> >
> > redmine_
> >
> redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> > redmine_
> >
> > It's apparently important to get the leading underscores right in
> > app/views...
> >
> > --
> > You received this bug notification because you are subscribed to the bug
> > report.
> > https:/
> >
> > Title:
> > Compatibility with 2.1.x
> >
> > Status in Redmine Local Avatars Plugin:
> > New
> >
> > Bug description:
> > Are there any plans on ensuring compatibil...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
André Radke (radke) wrote : | #15 |
Luca: The patch I posted in comment #8 above is still current to the best of my knowledge. I just haven't figured out yet how to apply that patch file to an unmodified checkout of revision 28 in a way that will also perform the file renames listed in the patch. If you know how to do that, you should be good to go...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
cforce (cforce) wrote : | #16 |
Hi guys, don't wanna discourage you, but there alreasy is a local avatar plugin which runs on redmine 2.2.1, and its pretty the same you do here.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Oleg V. Kozlyuk (elquentaro) wrote : | #17 |
Hi again, guys
I've tried to make a patch for the differences between the latest Launchpad version and Andre's version, but there seems to be too much differences like renaming .html.erb into .erb.html.
The diff utility doesn't handle it well - it shows such changes as one file being deleted, and the other created.
Luca, is it possible to replace the directory altogether and make a commit? I guess, that'd be the easiest way.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Luca Pireddu (pireddu) wrote : | #18 |
Did you rename the files with "bzr mv"?
Bzr should take care of communicating any changes through a patch file,
even file renaming.
Try running
bzr send -o my.patch
and then mail me the patch file it generates.
Luca
On 18 January 2013 10:11, Oleg V. Kozlyuk <email address hidden> wrote:
> Hi again, guys
>
> I've tried to make a patch for the differences between the latest
> Launchpad version and Andre's version, but there seems to be too much
> differences like renaming .html.erb into .erb.html.
> The diff utility doesn't handle it well - it shows such changes as one
> file being deleted, and the other created.
>
> Luca, is it possible to replace the directory altogether and make a
> commit? I guess, that'd be the easiest way.
>
> --
> You received this bug notification because you are subscribed to Redmine
> Local Avatars Plugin.
> https:/
>
> Title:
> Compatibility with 2.1.x
>
> Status in Redmine Local Avatars Plugin:
> New
>
> Bug description:
> Are there any plans on ensuring compatibility with 2.1.x?
>
> We're using 2.1.3 in the company, and we're trying to make sales
> departments use it along with IT crowd... So the functionality like
> this is highly beneficial to "sell" redmine to sales :)
>
> current errors:
>
> Started GET "/users/30/edit" for 192.168.44.1 at Пнд Окт 22 17:23:05
> +0400 2012
> Processing by UsersController
> Parameters: {"id"=>"30"}
> Current user: admin (id=1)
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered users/_
> Rendered common/
> Rendered users/edit.html.erb within layouts/admin (599.7ms)
> Missing template, responding with 404
> Rendered common/
> Completed 404 Not Found in 646ms (Views: 13.6ms | ActiveRecord: 8.3ms)
>
> To manage notifications about this bug go to:
> https:/
>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Oleg V. Kozlyuk (elquentaro) wrote : | #19 |
Negative... I've asked Andre to send me his whole plugin folder, as
his patch wasn't properly renaming and/or changins some files.
2013/1/18 Luca Pireddu <email address hidden>:
> Did you rename the files with "bzr mv"?
>
> Bzr should take care of communicating any changes through a patch file,
> even file renaming.
>
> Try running
> bzr send -o my.patch
> and then mail me the patch file it generates.
>
> Luca
>
>
> On 18 January 2013 10:11, Oleg V. Kozlyuk <email address hidden> wrote:
>
>> Hi again, guys
>>
>> I've tried to make a patch for the differences between the latest
>> Launchpad version and Andre's version, but there seems to be too much
>> differences like renaming .html.erb into .erb.html.
>> The diff utility doesn't handle it well - it shows such changes as one
>> file being deleted, and the other created.
>>
>> Luca, is it possible to replace the directory altogether and make a
>> commit? I guess, that'd be the easiest way.
>>
>> --
>> You received this bug notification because you are subscribed to Redmine
>> Local Avatars Plugin.
>> https:/
>>
>> Title:
>> Compatibility with 2.1.x
>>
>> Status in Redmine Local Avatars Plugin:
>> New
>>
>> Bug description:
>> Are there any plans on ensuring compatibility with 2.1.x?
>>
>> We're using 2.1.3 in the company, and we're trying to make sales
>> departments use it along with IT crowd... So the functionality like
>> this is highly beneficial to "sell" redmine to sales :)
>>
>> current errors:
>>
>> Started GET "/users/30/edit" for 192.168.44.1 at Пнд Окт 22 17:23:05
>> +0400 2012
>> Processing by UsersController
>> Parameters: {"id"=>"30"}
>> Current user: admin (id=1)
>> Rendered users/_
>> Rendered users/_
>> Rendered users/_
>> Rendered users/_
>> Rendered users/_
>> Rendered users/_
>> Rendered common/
>> Rendered users/edit.html.erb within layouts/admin (599.7ms)
>> Missing template, responding with 404
>> Rendered common/
>> Completed 404 Not Found in 646ms (Views: 13.6ms | ActiveRecord: 8.3ms)
>>
>> To manage notifications about this bug go to:
>> https:/
>>
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Compatibility with 2.1.x
>
> Status in Redmine Local Avatars Plugin:
> New
>
> Bug description:
> Are there any plans on ensuring compatibility with 2.1.x?
>
> We're using 2.1.3 in the company, and we're trying to make sales
> departments use it along with IT crowd... So the functionality like
> this is highly beneficial to "sell" redmine to sales :)
>
> current errors:
>
> Started GET "/users/30/edit" for 192.168.44.1 at Пнд Окт 22 17:23:05 +0400 2012
> Processing by UsersController
> Parameters: {"id"=>"30"}
> Current user: a...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
André Radke (radke) wrote : | #20 |
- fixes plugin for rm 2.2.x Edit (3.9 KiB, text/plain)
Luca: I think I finally figured out how to generate the patch with bzr so that it also performs the file renames, see attached file.
Hi Oleg. Currently I don't have the time to maintain upwards Redmine compatibility.
However, I'll accept patches. Are you a developer?