FastHub Version: 4.2.0
Android Version: 7.1.2 (SDK: 25)
Device Information:
When I try to submit an issue edit, it says "not editable by
Works fine from github web desktop on chrome android.
This happened on 4.1.0 as well...
I can't produce that, its GitHub message that is displayed so I'm unsure why GitHub does like that.
@k0shk0sh it works on this repo but not on the lawnchair repo... do you think it needs FastHub access or something ?
I'm not so sure about that honestly. it's weird.
@k0shk0sh Here's a Screen recording if it helps
That's a response from GitHub @zvirja is having the same issue yesterday, i'm not really sure honestly, but maybe something has to do with settings in repo?

I'm 100% sure that it isn't FastHub issue ๐
@k0shk0sh Why dont we try it?
@yakov116 I have tried editing an issue once this issue is opened the issue i edited #384
@yakov116 I have go to your private repo and edited an issue and it was success ๐
I'm still having this issue today with issues from _this_ repo. I've tried on different devices but everywhere situation is the same.
Given that issue is very popular, either something changed in app (should test with previous version) or within GitHub.
@k0shk0sh Should i make a debug of 4.0?
@zvirja nothing has changed at all for editing issue. and when I marked the issue with can't produce meaning that I have tried it & couldn't produce the issue.
With that said, maybe I suggest you guys to contact GitHub or if anyone of you right now is available, join FastHub slack from readme, DM me and i'll send you an apk that copies the response.
@yakov116 4.30 ? what is that?????
@k0shk0sh lol a 3 got stuck in there
@yakov116 please be more specific, 3 got stuck in there ain't gonna make the comment explain itself.
@k0shk0sh Shall I compile a debug ver of 4.0 and have them try it?
@yakov116 you are now stating the opposite of what I stated, I SAID that there is nothing changed regards editing issue at all from its first launched :) so doing that ain't gonna make any difference, why would I be able to edit issues in here or in your private repo not even public ones and they can't?
it doesn't make sense.
@k0shk0sh Agree with you! But as we know github many times does not make sense ๐
Just tested the v4.1.0 - issue is still there. So indeed, that is not a regression.
With that said, maybe I suggest you guys to contact GitHub
It would be better that _you_ contact them. You are the one who knows something about API you use and more implementation detail. I could provide the required data for you (probably, except tokens that can be used to perform actions with my credentials).
As I previously mentioned, could you please provide me with API call I should perform to close the issue? I could run it with my current credentials and see a reply.
Unzip the apk, install it without uninstalling production app, they will be separate so no worries about that.
try and edit, once it says copied to clipboard, paste it here.
https://developer.github.com/v3/issues/#edit-an-issue
PATCH https://api.github.com/repos/Onwer/RepoName/issues/Number
Body
{
"body": "**FastHub Version: 4.2.0** \n**Android Version: 7.1.2 (SDK: 25)** \n**Device Information:** \n- **Manufacturer:** OnePlus \n- **Brand:** oneplus \n- **Model:** OnePlus One \n---\n\nWhen I try to submit an issue edit, it says \"not editable by <me>\"\n\nWorks fine from github web desktop on chrome android.\nThis happened on 4.1.0 as well...",
"labels": [
"Type: Can't produce",
"Type: Duplicate"
],
"state": "closed",//or open
"title": "Can't edit my own issues from FastHub"
}
and of course your credential details.
I suggest you to use postman to ease things especially with basic auth .
@zvirja
@Younes-L @zvirja any news from you guys???
I've stuck with authentication.. What exactly should I pass to request (e.g. cookie name)?
@zvirja can you try the app @k0shk0sh posted?
I opened the Postman app in Chrome and am composing the query. I got reply from GitHub that authentication required. Also I cannot set the cookie value.. ๐ฆ
@zvirja Use the app....
@zvirja no cookie, use basic auth within the post
@k0shk0sh It doesn't work due to 2-factor authentication ๐ฉ Will try to obtain a token somewhere..
use your name and access token
Finally ๐
Request to https://api.github.com/repos/k0shk0sh/FastHub/issues/948:
{
"state": "open"
}
Reply:
{
"message": "Validation Failed",
"errors": [],
"documentation_url": "https://developer.github.com/v3/issues/#edit-an-issue"
}
Status: 422 Unprocessable Entity
so did you use the app so you could help me find out the problem?
Just found that issues from this repo are not good candidates as I cannot re-open them via site neither. Therefore, decided to use the original issue.
Issue link: https://github.com/prodot/ReCommended-Extension/issues/25
Query via Postman:
PATCH https://api.github.com/repos/prodot/ReCommended-Extension/issues/25
{
"state": "open"
}
Successful reply.
If I try to do that via app - says that issue is not editable by me.
I have a suspicion that you are setting more properties that I actually have access to, so that's might be the reason.
~Also I used the manually generated token in GitHub will all the possible permissions - not sure that your token has the same rights.~
Disregard that, was able to re-open the issue with the following permissions only:
repo Full control of private repositories
repo:status Access commit status
repo_deployment Access deployment status
public_repo Access public repositories
repo:invite Access repository invitations
Just tested again - perfectly fine in API, but doesn't work in app. Let me know which further steps you want me to try ๐
I'm having the same issue with 4.2.0 and Android 7.0 on a Galaxy S7. Maybe this shouldn't be closed if it's not an isolated experience? How else can I help?
My issue is tootsuite/mastodon#4890 fwiw.
so none of you guys actually tested the APK i uploaded, what a waste of time to build a modified version but no response :) ..
๐
@wxl I'll contact GitHub and see what they have changed/done to break that
I have contacted github with no info at all and awaiting their reply.
Maybe you guys could provide me such details:
1- how did you login?.
2- how many accounts are you logged in with?
3- have you ever tried before editing issue via FastHub and this occur?
what a waste of time to build a modified version but no response
I've spent more than one hour yesterday trying to send that request via Postman. It doesn't seem that you used my results somehow ๐
none of you guys actually tested the APK i uploaded
I missed that point. Could you share a link to the app? Could you also confirm that app will not leak my token to you among diag logs? ๐
Maybe you guys could provide me such details:
Sure.
Authorized OAuth apps in my account.Hope that helps ๐
@zvirja please download this
https://github.com/k0shk0sh/FastHub/files/1290744/app-debug.apk.zip
unzip and try it
App crashed on reopen. Is that expected?
1- how did you login?.
Unknown. It's been a long time ago!
2- how many accounts are you logged in with?
One.
3- have you ever tried before editing issue via FastHub and this occur?
I'm pretty sure I've edited before with no issues.
No such things will logged, the error will be copied to your clipboard so when you paste here and before hitting that submit button double check :p
@wxl i'm pretty sure its something to do with GitHub :'( I CAN'T FIGURE IT OUT AT ALL.
@k0shk0sh The debug application simply crashed and nothing was copied to the clipboard.. Am I doing something wrong?
then my impl crashed if you reached to the edit screen & u made the API call and then the app is crashed :D . will try and find better way :D . tomorrow tho. nighty night for me
Yesterday I tried to perform the API call directly and everything was fine. Could you check that you update status only and no other fields are present in the reopen API call?
Debug app crashed with nothing on clipboard.
@zvirja and @wxl, Thanks for all your help! @k0shk0sh has hit the pillow for the night. He will try tomorrow again.
Thanks for your help!
@k0shk0sh
1- logged in with username-password on the fasthub app, and granted access to my account for fasthub at some point (maybe that happens when I first login ?)
2- only 1 account, this one
3- yes I edited issues with no problems before, first time I encountered this problem (4.1.0)
Sorry for not checking here recently, I thought this issue was definitely closed ๐
About the specific problem you're reporting now -- I'm not aware of any changes made on our end, but I was able to reproduce the strange behavior your users reported. The problem happens when users try to edit issues in a public organization-owned repository which have this feature enabled and your application was no whitelisted by those organizations:
https://help.github.com/articles/about-third-party-application-restrictions/
As far as I know, that feature shouldn't be interrupting such operations on public repositories, so this seems like a problem on our end. I'll open an internal issue so that the team can investigate. I can't promise an ETA, but we'll followup as soon as there's any news.
that's GitHub reply :)
Just checked the issue I used for the reproduction above - it indeed belongs to an organization.
Thanks for firing the issue and your efforts ๐
great news !!
The team deployed some changes which should have fixed the problem you reported (issues not being editable). If you can still reproduce this โ please let us know and provide the information I mentioned in my previous reply.
please do check again
Thank you @k0shk0sh. I've just checked and can confirm that now everything works fine! :blush::+1::star2:
Also confirmed. Thanks @k0shk0sh. It may not have been your fault but you fixed it!
submitting edit - success !!
awesome work ๐
Most helpful comment
Also confirmed. Thanks @k0shk0sh. It may not have been your fault but you fixed it!