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

Error - undefined method spdx_license_url' and undefined method slack_username' #2502

Open
raina4chef opened this issue Jan 6, 2022 · 1 comment
Labels
Status: Untriaged An issue that has yet to be triaged.

Comments

@raina4chef
Copy link

Chef Supermarket Version

4.2.89

Platform Details

Ubuntu 20

Configuration

supermarket2.chef.io

Scenario

Go to UI and click on any cookbook -
https://supermarket2.chef.io/cookbooks/sc-mongodb

Error message -
We are sorry, but something went wrong.

Steps to Reproduce

Go to UI and click on any cookbook -
https://supermarket2.chef.io/cookbooks/sc-mongodb

Expected Result

Clicking on any cookbook should take to the cookbook page and not throw error in UI.

Actual Result

We are sorry, but something went wrong.

Log output -
==> /var/log/supermarket/rails/current <==
2022-01-06_20:52:31.32069 F, [2022-01-06T20:52:31.320613 #82353] FATAL -- : [29370848-14bc-41bd-809d-54324d24f564]
2022-01-06_20:52:31.32083 [29370848-14bc-41bd-809d-54324d24f564] ActionView::Template::Error (undefined method `spdx_license_url' for #CookbookVersion:0x0000000007980b28):
2022-01-06_20:52:31.32090 [29370848-14bc-41bd-809d-54324d24f564] 87:
2022-01-06_20:52:31.32096 [29370848-14bc-41bd-809d-54324d24f564] 88:

License


2022-01-06_20:52:31.32101 [29370848-14bc-41bd-809d-54324d24f564] 89:

<%= version.license %>
2022-01-06_20:52:31.32105 [29370848-14bc-41bd-809d-54324d24f564] 90: <% if version.spdx_license_url.present? %>
2022-01-06_20:52:31.32110 [29370848-14bc-41bd-809d-54324d24f564] 91: <%= link_to version.spdx_license_url,:target=>"_blank",:class=>"cookbook_platform_icon" do %>
2022-01-06_20:52:31.32114 [29370848-14bc-41bd-809d-54324d24f564] 92:
2022-01-06_20:52:31.32119 [29370848-14bc-41bd-809d-54324d24f564] 93: <% end %>
2022-01-06_20:52:31.32124 [29370848-14bc-41bd-809d-54324d24f564]
2022-01-06_20:52:31.32128 [29370848-14bc-41bd-809d-54324d24f564] app/views/cookbooks/_sidebar.html.erb:90
2022-01-06_20:52:31.32133 [29370848-14bc-41bd-809d-54324d24f564] app/views/cookbooks/show.html.erb:6


==> /var/log/supermarket/rails/current <==
2022-01-06_20:56:11.65844 F, [2022-01-06T20:56:11.658377 #82353] FATAL -- : [0daec438-16e4-46dc-aa0b-dbaa116a7f43]
2022-01-06_20:56:11.65859 [0daec438-16e4-46dc-aa0b-dbaa116a7f43] ActionView::Template::Error (undefined method `slack_username' for #User:0x0000000007724140):
2022-01-06_20:56:11.65864 [0daec438-16e4-46dc-aa0b-dbaa116a7f43] 30:
2022-01-06_20:56:11.65868 [0daec438-16e4-46dc-aa0b-dbaa116a7f43] 31: <% end %>
2022-01-06_20:56:11.65872 [0daec438-16e4-46dc-aa0b-dbaa116a7f43] 32:
2022-01-06_20:56:11.65876 [0daec438-16e4-46dc-aa0b-dbaa116a7f43] 33: <% if @user.slack_username.present? %>
2022-01-06_20:56:11.65881 [0daec438-16e4-46dc-aa0b-dbaa116a7f43] 34:


  • 2022-01-06_20:56:11.65885 [0daec438-16e4-46dc-aa0b-dbaa116a7f43] 35: <%= @user.slack_username %>
    2022-01-06_20:56:11.65889 [0daec438-16e4-46dc-aa0b-dbaa116a7f43] 36:

  • 2022-01-06_20:56:11.65894 [0daec438-16e4-46dc-aa0b-dbaa116a7f43]
    2022-01-06_20:56:11.65898 [0daec438-16e4-46dc-aa0b-dbaa116a7f43] app/views/users/_sidebar.html.erb:33
    2022-01-06_20:56:11.65902 [0daec438-16e4-46dc-aa0b-dbaa116a7f43] app/views/users/show.html.erb:5

    @raina4chef raina4chef added the Status: Untriaged An issue that has yet to be triaged. label Jan 6, 2022
    @raina4chef
    Copy link
    Author

    This bug can no longer be reproduced.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Status: Untriaged An issue that has yet to be triaged.
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant