Project

General

Profile

task #39

Unauthorize when creating recurrence

Added by qawsed55 about 1 year ago. Updated 4 months ago.

Status:
closed
Priority:
bug
Assignee:
Target version:
Redmine version:
unspecified

Description

Hello, sorry fo pore English.
When I try to make recurrence - I got "Invalid authorize token" in browser and need to login again. Recurrence not adding.

origPage.jpg (129 KB) origPage.jpg page when creating qawsed55, 2023-03-05 16:42
errorPage.jpg (12.5 KB) errorPage.jpg error page (what are 422 I do no know) qawsed55, 2023-03-05 16:43
17
18

Token votes

History

#1 Updated by admin about 1 year ago

  • Status changed from new to in progress

Hi,

After logging in again: are you able to add recurrence?
Does the problem happen when you refresh page right before adding recurrence?

Because it looks to me like your Redmine session is timing out and you are trying to add recurrence on a stale issue page.

#2 Updated by qawsed55 about 1 year ago

Hello!
Earlier, there are no ability to make new recurrence at all. After login - too.
But tonight I have setup some plugins and reinstall yours.
Tried now - it works. ))

I make after copying folders

bundle exec rake redmine:plugins:migrate RAILS_ENV=production
without plugin's name.
Do not know why that error was present (
Sorry for disturb and for pore English.
Thank you for your work!

#3 Updated by cryptogopher about 1 year ago

  • Status changed from in progress to closed

I'm happy it works for you :)

Thanks for letting us know how you resolved your problem.

#5 Updated by cryptogopher 11 months ago

  • Status changed from closed to in progress

#6 Updated by admin 11 months ago

  • Priority changed from support to bug

#7 Updated by issrec 5 months ago

qawsed55 wrote:

https://mega.nz/file/BFdRGByQ#0aKA4o6pogQ_OPfKyZJ_qypuTucXsO-UQ_27NBHm0b4
here is video with another error HTTP 406

See task #45

#8 Updated by cryptogopher 5 months ago

qawsed55 wrote:

https://mega.nz/file/BFdRGByQ#0aKA4o6pogQ_OPfKyZJ_qypuTucXsO-UQ_27NBHm0b4
here is video with another error HTTP 406

I'm sorry for not responding earlier. I didn't have much time to work on this plugin lately. Hopefully will get back shortly with some improvements in the new release.

Please report separate issues in new tickets or we risk losing track of them and not getting them resolved. I also appreciate a detailed video of the problem, but written reports are preferred. Including attached logs etc. which are incomparably easier to analyze than videos.
Don't worry if your English isn't perfect (mine isn't either ;). Use automatic translation or, as a last resort, just write in your native language. We'll see how it works :)

As for the video: can you confirm that the problem described is the same as in #45?

#9 Updated by issrec 5 months ago

My configuration:


When error 422 occurs, the following entries can be found in the logs:
...
I, [2023-11-20T07:38:09.614876 #1]  INFO -- : Started POST "/issues/4549/recurrences" for 10.60.35.84 at 2023-11-20 07:38:09 +0000
I, [2023-11-20T07:38:09.615666 #1]  INFO -- : Processing by IssueRecurrencesController#create as HTML
I, [2023-11-20T07:38:09.615770 #1]  INFO -- :   Parameters: {"utf8"=>"", "recurrence"=>{"creation_mode"=>"copy_first", "include_subtasks"=>"false", "multiplier"=>"1", "mode"=>"monthly_day_from_first", "anchor_to_start"=>"true", "anchor_mode"=>"first_issue_fixed", "delay_multiplier"=>"0", "delay_mode"=>"days"}, "limit_mode"=>"forever", "commit"=>"Submit", "issue_id"=>"4549"}
W, [2023-11-20T07:38:09.615907 #1]  WARN -- : Can't verify CSRF token authenticity.
I, [2023-11-20T07:38:09.617795 #1]  INFO -- :   Rendering common/error.html.erb within layouts/base
I, [2023-11-20T07:38:09.617933 #1]  INFO -- :   Rendered common/error.html.erb within layouts/base (0.1ms)
I, [2023-11-20T07:38:09.619643 #1]  INFO -- :   Rendered plugins/redmine_contacts/app/views/common/_additional_assets.html.erb (0.2ms)
I, [2023-11-20T07:38:09.619755 #1]  INFO -- :   Rendering inline template
I, [2023-11-20T07:38:09.620178 #1]  INFO -- :   Rendered inline template (0.4ms)
I, [2023-11-20T07:38:09.643473 #1]  INFO -- :   Rendered plugins/redmine_contacts/app/views/common/_contacts_select2_data.html.erb (0.3ms)
I, [2023-11-20T07:38:09.643691 #1]  INFO -- :   Rendered plugins/redmine_contacts_invoices/app/views/common/_invoices_select2_data.html.erb (0.1ms)
I, [2023-11-20T07:38:09.643793 #1]  INFO -- :   Rendered plugins/redmine_people/app/views/people_announcements/_call_announcements.html.erb (0.0ms)
I, [2023-11-20T07:38:09.644062 #1]  INFO -- :   Rendered plugins/redmine_people/app/views/common/_people_select2_data.html.erb (0.2ms)
I, [2023-11-20T07:38:09.644091 #1]  INFO -- :   Rendered plugins/redmine_people/app/views/common/_layout_bottom.html.erb (0.3ms)
I, [2023-11-20T07:38:09.644187 #1]  INFO -- : Filter chain halted as :verify_authenticity_token rendered or redirected
I, [2023-11-20T07:38:09.644254 #1]  INFO -- : Completed 422 Unprocessable Entity in 28ms (Views: 23.6ms | ActiveRecord: 3.3ms)
...

As you can see, authenticity_token is missing in the POST request parameters. This is what happens when I leave a cloned plugin project on the master branch.
The master branch is not the same as tags/1.7, although both are presented as version 1.7 in the GUI.


Due to the above, the command:

git -C issue_recurring/ checkout tags/1.4
from the plugin's installation instruction it seems to be a mandatory command, not an optional one.

#10 Updated by cryptogopher 4 months ago

  • Status changed from in progress to closed

qawsed55 wrote:

https://mega.nz/file/BFdRGByQ#0aKA4o6pogQ_OPfKyZJ_qypuTucXsO-UQ_27NBHm0b4
here is video with another error HTTP 406

Ok, I rewatched the video and the problem looks like the one described in #45 (you have redmine_issue_dynamic_edit plugin installed). Problem has been reported to the developer of redmine_issue_dynamic_edit and it seems to be resolved.

Also available in: Atom PDF