Closed Bug 1800985 Opened 1 year ago Closed 1 year ago

USB Remote Debugging is broken after adb extension path changed on ftp.mozilla.org

Categories

(DevTools :: about:debugging, defect, P3)

defect

Tracking

(firefox109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

Attachments

(1 file)

It seems the FTP folder https://ftp.mozilla.org/pub/mozilla.org/labs/ was moved to https://ftp.mozilla.org/pub/labs/.

This is referenced at https://searchfox.org/mozilla-central/rev/d7d2cc647772de15c4c5aa47f74d25d0e379e404/modules/libpref/init/all.js#4116 and is used to download the adb-extension in about:debugging.

This prevents users from enabling USB debugging at the moment. If the new location is supposed to be stable, we should update the value of the preference accordingly.

Chris, (sorry for pinging you in two bugs simultaneously!) before proceeding with a patch here I would need to have some more information about the recent changes on the FTP which changed the location of our devtools webextension. I am not sure if that's a question for you, but if not, maybe you'll know who I can ask.

First, I need to know if the new location (https://ftp.mozilla.org/pub/labs/devtools/adb-extension/) is going to be stable.
Then I would still ask if it's possible to preserve the old location for the time being (https://ftp.mozilla.org/pub/mozilla.org/labs/devtools/ ) because otherwise it means we need to uplift this change to beta/release/esr.

I will file another bug to decide on a better location for the extension. As pointed out by :sylvestre on Elements, since it's under labs/ no one expects its content to be actually used in production. We just kept reusing this location to store the ADB extension (formerly ADB Helper) for DevTools since the Firefox OS days.

Flags: needinfo?(cvalaas)

The labs folder on the FTP was moved one level up

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Summary: Update adb extension URL to new location → USB Remote Debugging is broken after adb extension path changed on ftp.mozilla.org

Ah, this is a redirect we missed on migrating to google/nginx as middleware for the CDN. A fix is in process and should be pushed shortly.

Flags: needinfo?(cvalaas)

That's great to hear, thanks for the info!

Attachment #9303783 - Attachment is obsolete: true

this should be "fixed" now. instead of redirecting with a 302, nginx is internally redirecting to the right place. Is that a problem? Like, do you expect a 302 response?

Folders seem fine, but the main issue is that we are still getting a 404 for actual files: https://ftp.mozilla.org/pub/mozilla.org/labs/devtools/adb-extension/mac64/adb-extension-latest-mac64.xpi

That's what about:debugging will pass to AddonManager.getInstallForURL so we would need those URLs to work as well.

Flags: needinfo?(cvalaas)

Huh. okay, will investigate further

Flags: needinfo?(cvalaas)

All right, I believe I've got this fixed. Yes?

As proof I offer:

# the xpi file
$ curl -o /dev/null -s -w "%{http_code}\n" https://ftp.mozilla.org/pub/mozilla.org/labs/devtools/adb-extension/mac64/adb-extension-latest-mac64.xpi
200
# the directory containing it
$ curl -o /dev/null -s -w "%{http_code}\n" https://ftp.mozilla.org/pub/mozilla.org/labs/devtools/adb-extension/mac64/
200

Yes looks like this works now, thanks!

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

Chris, I'm wondering if we should still update our code to point to https://ftp.mozilla.org/pub/labs/ instead of https://ftp.mozilla.org/pub/mozilla.org/labs/ ? If the "canonical" path is pub/labs and pub/mozilla.org/labs is just a redirect, maybe we should use the right one?

(Thanks again for promptly fixing the redirect!)

Flags: needinfo?(cvalaas)

Yeah, you should get rid of "mozilla.org" there. Thanks!

Flags: needinfo?(cvalaas)

Thanks, let's reopen and update the pref then !

Severity: S2 → S3
Status: RESOLVED → REOPENED
Priority: P1 → P3
Resolution: FIXED → ---
Attachment #9303783 - Attachment is obsolete: false
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8eb51be92ac9
[devtools] Update adb extension URL to new location r=nchevobbe
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
Duplicate of this bug: 1800905
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: