Skip to content

404 on the "My public keys" link in the user panel #472

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

Closed
slawo opened this issue Jul 1, 2015 · 11 comments
Closed

404 on the "My public keys" link in the user panel #472

slawo opened this issue Jul 1, 2015 · 11 comments
Assignees
Labels
Milestone

Comments

@slawo
Copy link

slawo commented Jul 1, 2015

In the user panel the link to the public keys ends in a 404 if redmine is installed in a subpath.

@n-rodriguez n-rodriguez self-assigned this Jul 2, 2015
@n-rodriguez
Copy link
Contributor

Yes It's a known issue. What version of Redmine are you running? And what is your plugin version?

@slawo
Copy link
Author

slawo commented Jul 6, 2015

Ok I just saw the other questions related to this issue... I'm running redmine 2.6

@n-rodriguez
Copy link
Contributor

What is the revision number? (2.6.1, 2.6.2)
And what is your plugin version?

@slawo
Copy link
Author

slawo commented Jul 9, 2015

Hi, currently this is my setup:

Environment:
  Redmine version                2.6.2.stable.14045
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux]
  Rails version                  3.2.21
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            1.7.10.4
Redmine plugins:
  ...
  redmine_bootstrap_kit          0.2.3
  redmine_git_hosting            1.1.1
  ...

@renanmarks
Copy link

Hello! I've just upgraded to most recent version. Same problem here:

Environment:
  Redmine version                2.6.0.stable
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux]
  Rails version                  3.2.19
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.10
  Git                            2.1.4
  Filesystem                     
  Xitolite                       2.1.4
Redmine plugins:
  redmine_bootstrap_kit          0.2.3
  redmine_git_hosting            1.1.1
  redmine_sidekiq                2.1.0

Update: after updating Redmine to 3.0.4 the problem no longer exists.

@n-rodriguez
Copy link
Contributor

Update: after updating Redmine to 3.0.4 the problem no longer exists.

Yes. Actually I think this is a Rails issue.

@n-rodriguez n-rodriguez added bug and removed question labels Aug 26, 2015
@n-rodriguez n-rodriguez added this to the v1.1.3 milestone Aug 26, 2015
n-rodriguez pushed a commit that referenced this issue Aug 27, 2015
@amelentjev
Copy link

This fix won't work on latest redmine 2.6 (2.6.7). And will not work in future, according to http://www.redmine.org/issues/19024
Following fix helps me :
lib/redmine_git_hosting/hooks/add_public_keys_link.rb

    def self.default_url_options
         {:script_name => Redmine::Utils.relative_url_root}
    end

@Phiber2000
Copy link

I confirm that c03f567 breaks subpath link to "My public keys" with redmine 3.1.2.stable.
Amelentjev's fix works.

@n-rodriguez
Copy link
Contributor

I confirm that c03f567 breaks subpath link to "My public keys" with redmine 3.1.2.stable.
Amelentjev's fix works.

What is the plugin version?

@Phiber2000
Copy link

Full version information:

SW Version
Redmine 3.1.2.stable
Ruby 2.2.3-p173 (2015-08-18) [x86_64-linux]
Rails 4.2.4
Git 2.6.3
Xitolite 2.6.3
redmine_bootstrap_kit 0.2.4
redmine_git_hosting 1.2.0

(Updated redmine_* plugins to the latest versions; problem persists.)

Phiber2000 added a commit to Phiber2000/redmine_git_hosting that referenced this issue Nov 26, 2015
Phiber2000 added a commit to Phiber2000/redmine_git_hosting that referenced this issue Nov 26, 2015
@Phiber2000
Copy link

Same with Redmine v3.2.0.stable.

Phiber2000 added a commit to Phiber2000/redmine_git_hosting that referenced this issue Mar 14, 2016
Phiber2000 added a commit to Phiber2000/redmine_git_hosting that referenced this issue Jul 25, 2016
n-rodriguez added a commit that referenced this issue Oct 3, 2016
added sub-uri fix by amelentjev (#472)
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

5 participants