-
Notifications
You must be signed in to change notification settings - Fork 40
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
toxic dde proxy environmental variable sync #15
Comments
补丁已合并,但上游放出修复过的版本还需要时间。 |
至今还没更新吗,deepin20 beta 截止 2020/08/19 还没解决,还是有同样的问题,救救孩子吧 |
till 21 aug, still the same, so help me god. |
@DuckSoft 建议 Reopen, 不然我觉得 deepin 可能会遗忘这个问题…… BTW, I think this patch for so BAD bug should be backported. |
「English:」 Supplement: If it is a pr from github, if it is merged, it is updated synchronously in real time (only the default branch). After a few minutes, you can see the code submitted by contributors in the default branch. If this is not the case, where might it be? What went wrong, you need to troubleshoot it (there are also internal submissions, which may cause some kind of collision~; there is also a manpower problem~); For this kind of problem that everyone actually needs, the community has always been willing and has always maintained an open and cooperative mentality~ to build a better experience together. 「中文原文:」 补充:如果是来自 github 的 pr, 若是被合并,是实时同步更新(仅默认分支),几分钟后,就可以在默认分支看到来自贡献者提交的代码, 若非这种情况,则可能是哪里出了什么问题,需要进行排查一下(还有来自内部的提交,可能会造成某种碰撞~;还有一个人手问题~); 对于这种大家都实际都有所需的问题,社区一直愿意和一直保持开放合作的心态~,一起构建更好的使用体验 |
Update: @DuckSoft It has been fixed f3021d13975a [Branch in uos], if there is still a problem, please communicate with @XMuli ; remove this problem for users of deepin or dde which is troublesome |
Appreciate! I'll close this issue and remove that hint in Qv2ray/Qv2ray#589 once the fix is published and confirmed.
|
@DuckSoft thanks |
Thanks, this bug is finally fixed here. |
removing this nag due to: linuxdeepin/go-lib#15 (comment) big thanks to @XMuli, @RigoLigo, @felixonmars and all other contributors involved!
removing this nag due to: linuxdeepin/go-lib#15 (comment) big thanks to @XMuli, @RigoLigo, @felixonmars and all other contributors involved!
Thanks for your hard work, the removal of the prompts will be released soon in the alpha preview. |
I'm sure many of you are wondering why a simple merge is taking so long, but in the next few days I'll write up the reasons why, and answer any questions you may have. Fortunately, now that the community version code is up to date and in the latest code, if there are any problems later, feedback and bugs will be fixed much more quickly. |
Request a re-open for this issue! Someone uncommented the problematic code WITHOUT EVEN READING GIT BLAME! Keep this issue open until the upstream push the updates that will fix this issue. AND FIX THE APPSTORE NOT DAEMON! |
I proposed a change in deepin go-lib: to set the envs correctly, not the "how not to set proxy server" way in legacy code. |
I understand how you feel. A seemingly retarded action has its reasons. This web proxy section, which is already being redesigned and implemented |
Okay. But why they're not doing as what I proposed in the pull request? That should be a proper fix for the app store problem. |
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. Issues: Closes linuxdeepin#15 Log: Change-Id: I5c2f5c384ff8266b10840ff78ca9710543cf38fb
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. Issues: Closes linuxdeepin#15 Log:
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. Issues: Closes linuxdeepin#15 Log:
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. Issue: Closes linuxdeepin#15 Log:
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. Issue: Closes linuxdeepin#15 Log:
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. about: qv2ray Issue: Closes linuxdeepin#15 Log:
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. I don't want to continue talking about this bug. If the problem still occurs, I will review the behavior of the relevant person in charge and make certain punishments. about: qv2ray - Qv2ray/Qv2ray#1278 - Qv2ray/Qv2ray#1057 - Qv2ray/Qv2ray#913 - Qv2ray/Qv2ray#915 - Qv2ray/Qv2ray#863 Issue: Closes linuxdeepin#15 Log:
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. I don't want to continue talking about this bug. If the problem still occurs, I will review the behavior of the relevant person in charge and make certain punishments. about: qv2ray - Qv2ray/Qv2ray#1278 - Qv2ray/Qv2ray#1057 - Qv2ray/Qv2ray#913 - Qv2ray/Qv2ray#915 - Qv2ray/Qv2ray#863 Issue: Closes #15 Log:
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. I don't want to continue talking about this bug. If the problem still occurs, I will review the behavior of the relevant person in charge and make certain punishments. about: qv2ray - Qv2ray/Qv2ray#1278 - Qv2ray/Qv2ray#1057 - Qv2ray/Qv2ray#913 - Qv2ray/Qv2ray#915 - Qv2ray/Qv2ray#863 Issue: Closes #15 Log: Change-Id: I1782759252d57cd54d2e051d416d35c28e21e3f9
Finally! Thank you all! |
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. I don't want to continue talking about this bug. If the problem still occurs, I will review the behavior of the relevant person in charge and make certain punishments. about: qv2ray - Qv2ray/Qv2ray#1278 - Qv2ray/Qv2ray#1057 - Qv2ray/Qv2ray#913 - Qv2ray/Qv2ray#915 - Qv2ray/Qv2ray#863 Issue: Closes #15 Log: Change-Id: I1782759252d57cd54d2e051d416d35c28e21e3f9
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. I don't want to continue talking about this bug. If the problem still occurs, I will review the behavior of the relevant person in charge and make certain punishments. about: qv2ray - Qv2ray/Qv2ray#1278 - Qv2ray/Qv2ray#1057 - Qv2ray/Qv2ray#913 - Qv2ray/Qv2ray#915 - Qv2ray/Qv2ray#863 Issue: Closes #15 Log: Change-Id: I1782759252d57cd54d2e051d416d35c28e21e3f9
keep consisent with gnome, http_proxy/https_proxy/ftp_proxy should use http protocol. I don't want to continue talking about this bug. If the problem still occurs, I will review the behavior of the relevant person in charge and make certain punishments. about: qv2ray - Qv2ray/Qv2ray#1278 - Qv2ray/Qv2ray#1057 - Qv2ray/Qv2ray#913 - Qv2ray/Qv2ray#915 - Qv2ray/Qv2ray#863 Issue: Closes #15 Log: Change-Id: I1782759252d57cd54d2e051d416d35c28e21e3f9
🕊️ 🕊️ 🕊️ 🕊️ 🕊️ 🕊️ 🕊️
intro
before stating what the hug was going on, i want to ask everyone an interesting question:
first of all, i have an HTTP proxy on
127.0.0.1:8888
, and an HTTPS proxy onexample.com:443
.are the following configuration cases correct or not, why and why not?
export ftp_proxy=http://127.0.0.1:8888
export https_proxy=http://127.0.0.1:8888
export http_proxy=https://example.com:443
i want to say that, those are all correct configurations.
🕊️ 🕊️ 🕊️ 🕊️ 🕊️ 🕊️ 🕊️
problem
let's look at the problem itself:
file
/proxy/proxy.go
is used for deepin desktop environment to syncgsettings
proxy entries into environmental variables, which looks pretty good. but if you look deeper, you will get something unusual:go-lib/proxy/proxy.go
Lines 145 to 159 in 5406dea
if you look into
getProxyValue
, you will see that, the program here assumes http_proxy can only use http schemas, and the same for https and ftp.go-lib/proxy/proxy.go
Line 179 in 5406dea
if we admit this, we are to say, none of the configuration cases in our intro section is correct, since ftp_proxy used http, https_proxy used http and http_proxy used https.
🕊️ 🕊️ 🕊️ 🕊️ 🕊️ 🕊️ 🕊️
discovery
i encountered this problem when a random deepin user reported to Qv2ray, saying that the system proxy isn't working at all. astonished, we have checked in detail, but to find that the
$https_proxy
environmental variable was incorrectly set.in his case, Qv2ray have a HTTP proxy at
127.0.0.1:8888
. Qv2ray configures system proxy throughgsettings
, and thus triggered thatproxy.go
, which is used to syncgsettings
into environmental variables.$http_proxy
variable was correctly set tohttp://127.0.0.1:8888
, but$https_proxy
variable was incorrectly set tohttps://127.0.0.1:8888
. since HTTP proxy can't accept HTTPS requests at all, the victim's browser refused to work whenever he wanted to open a HTTPS site, and that's how the problem was discovered.🕊️ 🕊️ 🕊️ 🕊️ 🕊️ 🕊️ 🕊️
joke
Qv2ray/Qv2ray#589
calendar
DOVE OVERFLOW
The text was updated successfully, but these errors were encountered: