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

x/pkgsite: cs.opensource.google gives "permission denied" #56171

Closed
xubiod opened this issue Oct 12, 2022 · 9 comments
Closed

x/pkgsite: cs.opensource.google gives "permission denied" #56171

xubiod opened this issue Oct 12, 2022 · 9 comments
Labels
pkgsite WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@xubiod
Copy link

xubiod commented Oct 12, 2022

What is the URL of the page with the issue?

Any page of the standard library's documentation. Just for an example here though I will use https://pkg.go.dev/fmt#section-sourcefiles

What is your user agent?

[Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0](https://developers.whatismybrowser.com/useragents/parse/?analyse-my-user-agent=yes)

Screenshot

image

What did you do?

Clicking on any source file, in the instance of the screenshot I clicked on format.go.

What did you expect to see?

The source file of format.go.

What did you see instead?

An error from cs.opensource.google.

The fix

After doing my own investigation, I figured out that linking to cs.opensource.google/go is indeed not correct anymore (in fact, even the root of cs.opensource.google does not load anything). It should now point to go.googlesource.com/go to link to the standard library source.

@gopherbot gopherbot added this to the Unreleased milestone Oct 12, 2022
@mvdan
Copy link
Member

mvdan commented Oct 12, 2022

Perhaps this was a temporary error. https://cs.opensource.google/go/go/+/refs/tags/go1.19.2:src/fmt/doc.go works fine for me, for example.

@xubiod
Copy link
Author

xubiod commented Oct 12, 2022

Perhaps this was a temporary error. https://cs.opensource.google/go/go/+/refs/tags/go1.19.2:src/fmt/doc.go works fine for me, for example.

@mvdan I have tried the link myself and it does not lead anywhere. For me it has been like this for a while now, even on different computers.

I feel like it could be an issue for me because it returns a "Permission denied" error, but I can't be certain.

@mvdan
Copy link
Member

mvdan commented Oct 12, 2022

That's very weird. cc @golang/pkgsite to see who could help on the infra side.

@mvdan mvdan changed the title x/pkgsite: Standard library source files point to wrong url x/pkgsite: cs.opensource.google gives "permission denied" Oct 12, 2022
@jamalc
Copy link

jamalc commented Oct 12, 2022

Similar reports in #47213, #48956, and #53006. Have you tried loading the page with extensions disabled?

@xubiod
Copy link
Author

xubiod commented Oct 12, 2022

I can access it on my iPhone without issue; as right now I cannot access my regular computer. I still find it strange that the link I provided in the ticket (go.googlesource.com) works regardless however.

@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Oct 12, 2022
@xubiod
Copy link
Author

xubiod commented Oct 12, 2022

Without extensions it loads fine, but in my opinion it's still somewhat of an issue and inconvenient to specifically go that route.

@seankhliao
Copy link
Member

Duplicate of ##47213

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2022
@tarndt
Copy link

tarndt commented Nov 5, 2022

I ran into this same problem and had to disable the "DuckDuckGo Privacy Essentials extension" for this page to work (which probably means its doing something it shouldn't be).

@chmike
Copy link

chmike commented Sep 20, 2023

I have the same issue since a long time now. Since I stumbled on it again today, I displayed the javascript console and see this error:

Error: Kc`/v1/landingPages/current`{"error":{"code":403,"message":"Requests from referer https://grimoireoss-pa.clients6.google.com/batch?%24ct=multipart%2Fmixed%3B%20boundary%3Dbatch276518100238619142 are blocked.","status":"PERMISSION_DENIED","details":[{"@type":"[type.googleapis.com/google.rpc.ErrorInfo](chrome://devtools/content/webconsole/type.googleapis.com/google.rpc.ErrorInfo)","reason":"API_KEY_HTTP_REFERRER_BLOCKED","domain":"googleapis.com","metadata":{"service":"grimoireoss-pa.googleapis.com","consumer":"projects/102538029536"}}]}}

This problem was fixed by disabling the Smart Referer extension module for Firefox. The extension removes the referer link in request headers. It is possible in theory to add whitelist entries, but it doesn't seam to work. It's not clear why. I assume, it expect a .com domain name.

There is also a CORS issue, but the error message is in French:

Blocage d’une requête multiorigine (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur https://play.google.com/log?authuser=0. Raison : échec de la requête CORS. Code d’état : (null)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkgsite WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

7 participants