Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get token is failed on Redmine 3.3 #218

Open
indication opened this issue Sep 17, 2018 · 8 comments
Open

Get token is failed on Redmine 3.3 #218

indication opened this issue Sep 17, 2018 · 8 comments
Assignees
Labels
Milestone

Comments

@indication
Copy link
Owner

T/O

@gessel
Copy link

gessel commented Oct 17, 2018

I seem to be having a similar issue setting up a new connect (first use, not successful yet, may be stupid user problem). My server uses a basic auth layer, which I see traversed successfully. I can get a token and log in - the token field shows "Oe3c75.... 40 characters" - it appears the token has been granted and saved but when I try to log in to the server it times out silently on the client and the server log shows:

Started GET "/projects.xml?limit=20" for 109.127.76.175 at 2018-10-17 14:21:04 -0700
Processing by ProjectsController#index as XML
  Parameters: {"limit"=>"20"}
  Current user: anonymous
Filter chain halted as :check_if_login_required rendered or redirected
Completed 401 Unauthorized in 10ms (ActiveRecord: 2.7ms)
Environment:
  Redmine version                3.4.6.stable
  Ruby version                   2.4.4-p296 (2018-03-28) [amd64-freebsd10]
  Rails version                  4.2.10
  Environment                    production
  Database adapter               Mysql2
SCM:
  Filesystem                     
Redmine plugins:
  periodictask                   3.3.0
  redmine_checklists             3.1.11
  redmine_custom_reports         0.1.5
  redmine_dmsf                   1.6.1
  redmine_email_images           0.1.1
  redmine_highlightjs            1.0.3
  redmine_image_clipboard_paste  3.3.0
  redmine_issue_templates        0.2.0
  redmine_sortable_table         0.99.1
  redmine_tweaks                 1.0.2

@indication
Copy link
Owner Author

Thank you for reporting. We continue to fix this.

@gessel
Copy link

gessel commented Nov 2, 2018

Thanks,

I'm happy to test any patches.

indication pushed a commit that referenced this issue Nov 6, 2018
Recent redmine, api key can be get from my_apikey.
First try to get my/api_key.
If failed, try to access my/account to get the token.
@indication indication added this to the Version 3.23 milestone Nov 7, 2018
@indication indication added the bug label Nov 7, 2018
@indication indication self-assigned this Nov 7, 2018
@indication indication mentioned this issue Nov 7, 2018
@indication
Copy link
Owner Author

Thank you for following this issue.
Now, you can install beta via Play Store.

@gessel
Copy link

gessel commented Nov 14, 2018

Running Beta now.

Log in successful, but nothing rendered in the app - only the "project" tab causes anything to happen server side, neither "favourites" nor "recent" does anything.

ip/basic auth [14/Nov/2018:13:17:01 -0800] "GET /issue_statuses.xml HTTP/1.1" 401 - "-" "Dalvik/2.1.0 (Linux; U; Android 7.0; HUAWEI NXT-L29 Build/HUAWEINXT-L29)"
ip/basic auth [14/Nov/2018:13:17:03 -0800] "GET /users.xml HTTP/1.1" 401 - "-" "Dalvik/2.1.0 (Linux; U; Android 7.0; HUAWEI NXT-L29 Build/HUAWEINXT-L29)"
ip/basic auth [14/Nov/2018:13:17:05 -0800] "GET /users/current.xml HTTP/1.1" 401 - "-" "Dalvik/2.1.0 (Linux; U; Android 7.0; HUAWEI NXT-L29 Build/HUAWEINXT-L29)"
ip/basic auth [14/Nov/2018:13:17:06 -0800] "GET /trackers.xml HTTP/1.1" 401 - "-" "Dalvik/2.1.0 (Linux; U; Android 7.0; HUAWEI NXT-L29 Build/HUAWEINXT-L29)"
ip/basic auth [14/Nov/2018:13:17:08 -0800] "GET /enumerations/issue_priorities.xml HTTP/1.1" 401 - "-" "Dalvik/2.1.0 (Linux; U; Android 7.0; HUAWEI NXT-L29 Build/HUAWEINXT-L29)"
ip/basic auth [14/Nov/2018:13:17:10 -0800] "GET /enumerations/time_entry_activities.xml HTTP/1.1" 401 - "-" "Dalvik/2.1.0 (Linux; U; Android 7.0; HUAWEI NXT-L29 Build/HUAWEINXT-L29)"
ip/basic auth [14/Nov/2018:13:17:12 -0800] "GET /projects.xml?limit=20 HTTP/1.1" 401 - "-" "Dalvik/2.1.0 (Linux; U; Android 7.0; HUAWEI NXT-L29 Build/HUAWEINXT-L29)"

@indication indication modified the milestones: Version 3.23, Version 3.24 Oct 6, 2019
@MagicFab
Copy link

I can confirm this still happens, using Redmine 3.3.1.stable in Debian 9.13.

Time to upgrade and test again. Does this work on Redmine 4.x ?

@MagicFab
Copy link

Upgraded to Redmine 4 in Debian 10 and I was able to reproduce this same problem.

@indication
Copy link
Owner Author

Hi,
Sorry for late response.
In my environment(3.4.2.stable on rails 4.2.8), it works.
How about your theme? (default/alternate/classic/another?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants