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

normal users(not sudo users) can't see the wiki pages. #164

Closed
sakuramochi708 opened this issue Jun 16, 2021 · 2 comments · Fixed by #165
Closed

normal users(not sudo users) can't see the wiki pages. #164

sakuramochi708 opened this issue Jun 16, 2021 · 2 comments · Fixed by #165

Comments

@sakuramochi708
Copy link
Member

一般ユーザーがWikiの画面を閲覧することができなくなった。
3日前の更新になにかトラブルがありそうです。

(以下、DeepL直訳)
General users are no longer able to view the Wiki pages.
There seems to be some trouble with the update 3 days ago.

@Azuki-bar
Copy link
Member

image

<html>
<head>
  <title>We're sorry, but something went wrong (500)</title>
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <style>
  .rails-default-error-page {
    background-color: #EFEFEF;
    color: #2E2F30;
    text-align: center;
    font-family: arial, sans-serif;
    margin: 0;
  }

  .rails-default-error-page div.dialog {
    width: 95%;
    max-width: 33em;
    margin: 4em auto 0;
  }

  .rails-default-error-page div.dialog > div {
    border: 1px solid #CCC;
    border-right-color: #999;
    border-left-color: #999;
    border-bottom-color: #BBB;
    border-top: #B00100 solid 4px;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    background-color: white;
    padding: 7px 12% 0;
    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
  }

  .rails-default-error-page h1 {
    font-size: 100%;
    color: #730E15;
    line-height: 1.5em;
  }

  .rails-default-error-page div.dialog > p {
    margin: 0 0 1em;
    padding: 1em;
    background-color: #F7F7F7;
    border: 1px solid #CCC;
    border-right-color: #999;
    border-left-color: #999;
    border-bottom-color: #999;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top-color: #DADADA;
    color: #666;
    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
  }
  </style>
</head>

<body class="rails-default-error-page">
  <!-- This file lives in public/500.html -->
  <div class="dialog">
    <div>
      <h1>We're sorry, but something went wrong.</h1>
    </div>
    <p>If you are the application owner check the logs for more information.</p>
  </div>


<div></div></body>
</html>

@otariidae
Copy link
Contributor

otariidae commented Jun 16, 2021

Unfortunately something went wrong has no useful information...

Application log is below:

NoMethodError (undefined method `resolve_column_aliases' for #<ActiveRecord::PredicateBuilder:0x000029f192491350>):
  
app/controllers/pages_controller.rb:76:in `show_page'

next_parent_pages = Page.accessible_by(current_ability, :read)

ref: CanCanCommunity/cancancan#652
fixed at: CanCanCommunity/cancancan#657
released at: cancancan 3.2.0

This bug comes from updating Rails to 6.1 (dd62bb2).
Current cancancan version is 3.1.0.

cancancan (3.1.0)

Updating cancancan to 3.2.0 will solve this.

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

Successfully merging a pull request may close this issue.

3 participants