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

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

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

Comments

Projects
None yet
5 participants
@slawo

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

This comment has been minimized.

Show comment
Hide comment
@n-rodriguez

n-rodriguez Jul 5, 2015

Member

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

Member

n-rodriguez commented Jul 5, 2015

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

@n-rodriguez n-rodriguez added the question label Jul 5, 2015

@slawo

This comment has been minimized.

Show comment
Hide comment
@slawo

slawo Jul 6, 2015

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

slawo commented Jul 6, 2015

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

@n-rodriguez

This comment has been minimized.

Show comment
Hide comment
@n-rodriguez

n-rodriguez Jul 7, 2015

Member

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

Member

n-rodriguez commented Jul 7, 2015

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

@slawo

This comment has been minimized.

Show comment
Hide comment
@slawo

slawo 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
  ...

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

This comment has been minimized.

Show comment
Hide comment
@renanmarks

renanmarks Jul 10, 2015

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.

renanmarks commented Jul 10, 2015

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

This comment has been minimized.

Show comment
Hide comment
@n-rodriguez

n-rodriguez Jul 17, 2015

Member

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

Yes. Actually I think this is a Rails issue.

Member

n-rodriguez commented Jul 17, 2015

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 added a commit that referenced this issue Aug 27, 2015

@amelentjev

This comment has been minimized.

Show comment
Hide comment
@amelentjev

amelentjev Oct 21, 2015

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

amelentjev commented Oct 21, 2015

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

This comment has been minimized.

Show comment
Hide comment
@Phiber2000

Phiber2000 Nov 20, 2015

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

Phiber2000 commented Nov 20, 2015

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

@n-rodriguez

This comment has been minimized.

Show comment
Hide comment
@n-rodriguez

n-rodriguez Nov 20, 2015

Member

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?

Member

n-rodriguez commented Nov 20, 2015

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

This comment has been minimized.

Show comment
Hide comment
@Phiber2000

Phiber2000 Nov 20, 2015

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 commented Nov 20, 2015

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

This comment has been minimized.

Show comment
Hide comment
@Phiber2000

Phiber2000 Dec 15, 2015

Same with Redmine v3.2.0.stable.

Phiber2000 commented Dec 15, 2015

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

Merge pull request #581 from Phiber2000/fix_sub-uri
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