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

Unauthenticated/unauthorized pull request broken #540

Closed
edrex opened this issue Jul 29, 2013 · 11 comments
Closed

Unauthenticated/unauthorized pull request broken #540

edrex opened this issue Jul 29, 2013 · 11 comments
Assignees
Labels
Milestone

Comments

@edrex
Copy link
Contributor

edrex commented Jul 29, 2013

I added an "edit this page" link to my Jekyll site. Clicking as an anonymous (not signed in to github) or unauthorized (but signed in) user results in the below:

Failed to load resource: the server responded with a status of 404 (Not Found) https://api.github.com/repos/edrex/edrex.github.io/forks
Uncaught SyntaxError: Unexpected token u prose.min.js:18
Uncaught TypeError: Cannot set property 'disabled' of undefined prose.min.js:22
@edrex
Copy link
Contributor Author

edrex commented Jul 29, 2013

Rather, editing and then clicking "Submit change request" results in the listed output

@mikemorris
Copy link
Contributor

Ah, forgot to add a condition for unauthorized/anonymous users, thanks for catching this!

@mikemorris
Copy link
Contributor

I'm pretty sure that the Pull Request API needs to create the request from an existing branch/ref, which I believe would require authentication to create a personal fork. Do you see this flow simply prompting a user to login to submit a pull request?

http://developer.github.com/v3/pulls/#create-a-pull-request

@edrex
Copy link
Contributor Author

edrex commented Jul 29, 2013

That seems right (direct unauthed user through oauth flow). Was this feature working at some point? I assumed it was and there was a regression, but maybe it's not fully formed yet?

@mikemorris
Copy link
Contributor

@edrex I'll have to check if this was handled in the legacy branch, it may have been implemented before the refactor to Backbone models and away from github.js (although it doesn't appear that GitHub's API supports unauthenticated pull requests). It has not been implemented in the refactor yet.

@mikemorris
Copy link
Contributor

Tracking in #584

@iamstarkov
Copy link

I think this issue is still open, because I can reproduce it on my site:

  1. go to http://frontender.info/building-3d-in-the-browser-with-three-js/
  2. click «можете отредактировать статью», which open http://prose.io/#FrontenderMagazine/building-3d-in-the-browser-with-three-js/edit/master/rus.md
  3. I added an title and tryed to save the file, after that infinite loop happens and there this errors in console:
    prose

@iamstarkov
Copy link

polite ping

@mikemorris mikemorris reopened this Jun 4, 2014
@iamstarkov
Copy link

are interested in closing this issue?

@fulldecent
Copy link

Hello and thank you for this issue report. There have been several point releases in Prose since this issue was opened and there has not been much discussion here. I wanted to ask if you could please assist in confirming this is still an issue in the latest version of the product. If it is fixed, please close this issue :-)

Also, if possible could you please

  • Find out if this only affects certain browsers
  • Create a test case -- a list of steps we can perform to reproduce the problem
  • Enable web developer extensions and report the Javascript error message. And when in doubt, be over-descriptive of the bug and how you discovered it.

Since this project is looking for new maintainers (#743), it will be helpful if users can double check the old issues and delete ones that are fixed. This will be super helpful for the new team that works on moving this project forward.

I'm sorry this message is impersonal. And thanks for your help!

@phillipadsmith
Copy link
Member

Closing this issue, as it is being tracked and discussed more actively in #643.

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

5 participants