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

Bug: Error when accessing wiki page when not logged in #18

Open
501st-alpha1 opened this issue Jul 6, 2015 · 3 comments
Open

Bug: Error when accessing wiki page when not logged in #18

501st-alpha1 opened this issue Jul 6, 2015 · 3 comments
Assignees
Labels

Comments

@501st-alpha1
Copy link
Owner

If I attempt to navigate to a specific wiki page when not logged in, I get this error:

NoMethodError at [page]
undefined method `first_name' for nil:NilClass

The stacktrace shows line 51 of lib/wiki_mounter/wiki_mounter.rb, which is:

:name => "%s %s" % [env['warden'].user.first_name, env['warden'].user.last_name],

So it appears that this is related to the fix for the Git commit info.

I'll take a look at this when I get the chance.

@501st-alpha1 501st-alpha1 self-assigned this Jul 6, 2015
@oponder
Copy link
Collaborator

oponder commented Jul 7, 2015

Thanks for reporting and finding it! I think the real problem here is that its possible to see a wiki when you're not logged in.. (technically its not possible because of the bug, but the bug is happening because nothing is redirecting the user to authenticate himself)

@cheenwe
Copy link

cheenwe commented Sep 26, 2015

NoMethodError at /wiki/123/Home
undefined method `>>' for "x":String
file: loose.rb location: unpack_object_header_gently line: 108

@oponder
Copy link
Collaborator

oponder commented Sep 26, 2015

Thx @cheenwe.

The project has been a bit quiet again, sorry about that. Can't guarantee when I'll pick it up again, but thanks for looking into it. I am available for reviews however should you want to try and solve the problem.

Are you looking into using this project for something?

Cheers,
Oliver

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