ncbo / bioportal_web_ui

A Rails application for biological ontologies
http://bioportal.bioontology.org/
Other
21 stars 2 forks source link

Attempting to add a proposal shows "content missing" error for anonymous users #350

Open jvendetti opened 2 hours ago

jvendetti commented 2 hours ago

In the master branch (production environment):

If an anonymous user selects any menu item from the "Add a proposal" dropdown menu, they're redirected to the login page. To access this dropdown menu, navigate to the Classes -> Details tab for any ontology where change requests are enabled. For a list of ontologies where change requests are enabled, refer to the change_request YAML file.

In the sync-agroportal branch:

If an anonymous user selects any menu item from the "Add a proposal" dropdown menu, the content in the right-hand side of the Classes pane is erased and a "Content missing" error is displayed. Stack trace from the developer console:

application-50c822a29973c026270b9576fc124e2a14567dcf313060c9ce0182ab607d44a1.js:22 Uncaught (in promise) hd: Unhandled Promise Rejection: The response (200) did not contain the expected <turbo-frame id="concept_show"> and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.
    at dd.throwFrameMissingError (https://stage.bioontology.org/assets/application-50c822a29973c026270b9576fc124e2a14567dcf313060c9ce0182ab607d44a1.js:22:9080)
    at dd.handleFrameMissingFromResponse (https://stage.bioontology.org/assets/application-50c822a29973c026270b9576fc124e2a14567dcf313060c9ce0182ab607d44a1.js:22:8820)
    at dd.loadFrameResponse (https://stage.bioontology.org/assets/application-50c822a29973c026270b9576fc124e2a14567dcf313060c9ce0182ab607d44a1.js:22:7123)
    at async dd.loadResponse (https://stage.bioontology.org/assets/application-50c822a29973c026270b9576fc124e2a14567dcf313060c9ce0182ab607d44a1.js:22:4366)
    at async dd.requestSucceededWithResponse (https://stage.bioontology.org/assets/application-50c822a29973c026270b9576fc124e2a14567dcf313060c9ce0182ab607d44a1.js:22:5520)
jvendetti commented 2 hours ago

Screen recording that shows the behavior:

https://github.com/user-attachments/assets/01958806-fc8c-4f81-b436-0cd7ab5deddd