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

View documentation of API backend as a regular user fails #1101

Closed
saralavanip opened this issue Jun 9, 2016 · 5 comments
Closed

View documentation of API backend as a regular user fails #1101

saralavanip opened this issue Jun 9, 2016 · 5 comments
Labels

Comments

@saralavanip
Copy link
Contributor

saralavanip commented Jun 9, 2016

Steps:

  1. Visit https://nightly.apinf.io
  2. Sign in as a owner
  3. Go to 'Menu' and click on 'Manage API backend'
  4. Go to Documentation
    • Upload document
    • Enter Documentation link
  5. Click on 'Save' button
  6. Sign out
  7. Login as regular user (doesn't own API backend)
  8. Go to 'Menu' and select 'Catalog'
  9. Select any one of the API backends and click on 'View Details'
  10. Click on 'Documentation'

Findings:

  • Viewer: displays error " Can't read from server. It may not have the appropriate access-control-origin settings."
  • No response when clicked on documentation link: user not notified of any errors

Browsers:
Operating system:
Linux : Ubuntu 14.04.03 LTS (Trusty)

Web Browsers:

  1. Mozilla Firefox 44.0
  2. Google Chrome 48.0.2564.103

Screenshots:
viewer_error1

user_viewer_error2

@bajiat
Copy link
Contributor

bajiat commented Jun 10, 2016

@brylie Could this bug also be related to #1099?

@brylie
Copy link
Contributor

brylie commented Jun 10, 2016

@bajiat yes. It looks like the Swagger UI is using https. @saralavanip can you submit a screenshot of this issue that also includes the web browser URL bar?

@brylie
Copy link
Contributor

brylie commented Jun 10, 2016

It could also be related to our FileCollection permissions. I am getting a 403 error when trying to upload swagger files in the develop branch.

@saralavanip
Copy link
Contributor Author

@brylie , please find the screenshot of this issue with browser URL bar.

Screenshot:

swagger_viewer-regular_user

@bajiat
Copy link
Contributor

bajiat commented Jun 10, 2016

@saralavanip You are in http, so the error is caused by #1109. But when we tried to view the Swagger file in https, we got another error. Can you provide the Swagger file so that we can see if it is valid Swagger. Thanks!

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