Bug 16240

Summary: All layer index git.yoctoproject.org cgit links broken
Product: [Yocto Project Subprojects] Layer Index Reporter: Jon Mason <jon.mason>
Component: Layer Index MetadataAssignee: Tim Orling <tim.orling>
Status: RESOLVED FIXED QA Contact: apoorv sangal <apoorvsangal>
Severity: normal    
Priority: Medium+ CC: david.reyna, mhalstead, piotr, ross.burton, tim.orling
Version: unspecified   
Target Milestone: 6.1 M2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Jon Mason 2026-04-09 14:41:48 UTC
Recent changes to the Yocto Project git server is causing links to no longer work.  For example, the "web repo" link in
https://layers.openembedded.org/layerindex/branch/master/layer/meta-arm/
connects to
http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm
But that link no longer works, and should be
https://git.yoctoproject.org/meta-arm

Similar for meta-qcom
https://layers.openembedded.org/layerindex/branch/master/layer/meta-qcom/
and meta-intel
https://layers.openembedded.org/layerindex/branch/master/layer/meta-intel/
and probably many others.

It is probably safer to do a change across the layer index to address the broken URLs, than notify each layer owner and wait for them to fix it.
Comment 1 Tim Orling 2026-04-09 14:49:26 UTC
The /cgit/ paths are from the "Edit Layer" (or "Submit Layer") form. Most folks probably ignore those fields (or don't know what they should be) when they fill in the form.

For instance for meta-qcom:

Repository web interface URL:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-qcom
URL of the web interface for browsing the repository, if any
Web interface type

(custom)
Type of web interface (helps to auto-determine other URL fields)
Repository web interface tree base URL:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-qcom/tree/%path%?h=%branch%
Base URL for the web interface for browsing directories within the repository, if any
Repository web interface file base URL:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-qcom/tree/%path%?h=%branch%
Base URL for the web interface for viewing files (blobs) within the repository, if any
Repository web interface commit URL:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-qcom/commit/?id=%hash%
Base URL for the web interface for viewing a single commit within the repository, if any
Comment 2 Piotr Buliński 2026-04-09 14:53:57 UTC
Should I work on this one?
Comment 3 Piotr Buliński 2026-04-09 14:54:24 UTC
Should I work on this one?
Comment 4 Tim Orling 2026-04-09 14:56:07 UTC
Piotr, there are two parts to this. One will be fixing the database (the metadata which is why this bug is filed under that component). The other is the auto-populated fields.

We should like revisit the "cgit" default values, which seem to be populated by:
https://git.yoctoproject.org/layerindex-web/tree/layerindex/tools/import_layer.py#n43

    if repoval.startswith('git://git.openembedded.org/'):
        reponame = re.sub('^.*/', '', repoval)
        layer.vcs_web_url = 'http://cgit.openembedded.org/' + reponame
        layer.vcs_web_tree_base_url = 'http://cgit.openembedded.org/' + reponame + '/tree/%path%?h=%branch%'
        layer.vcs_web_file_base_url = 'http://cgit.openembedded.org/' + reponame + '/tree/%path%?h=%branch%'
        layer.vcs_web_commit_url = 'http://cgit.openembedded.org/' + reponame + '/commit/?id=%hash%'
    elif repoval.startswith('git://git.yoctoproject.org/'):
        reponame = re.sub('^.*/', '', repoval)
        layer.vcs_web_url = 'http://git.yoctoproject.org/cgit/cgit.cgi/' + reponame
        layer.vcs_web_tree_base_url = 'http://git.yoctoproject.org/cgit/cgit.cgi/' + reponame + '/tree/%path%?h=%branch%'
        layer.vcs_web_file_base_url = 'http://git.yoctoproject.org/cgit/cgit.cgi/' + reponame + '/tree/%path%?h=%branch%'
        layer.vcs_web_commit_url = 'http://git.yoctoproject.org/cgit/cgit.cgi/' + reponame + '/commit/?id=%hash%'
Comment 5 Piotr Buliński 2026-04-09 19:48:24 UTC
After looking at the issue, I noticed that a redirect has been set up for the /cgit/cgit.cgi/* -> /*, so URLs like http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm still work and are automatically redirected to https://git.yoctoproject.org/meta-arm

I discussed this with Tim, and we agreed to not work on the fix until the situation around final structure of URLs for https://git.yoctoproject.org/ is clear.

I made the initial fix and uploaded it to https://github.com/yoctoproject/layerindex-web/pull/2 - once the situation is clear on how this should be resolved, I can pick up those changes and send them as patch or discard them.
Comment 6 Tim Orling 2026-04-09 20:03:45 UTC
From IRC:

<moto-timo> Tim Orling 
halstead: did you re-enable the /cgit/ redirects? we weren't sure if it's still "broken"
1:00 PM <halstead> Michael Halstead 
moto-timo: The redirects are up again. We should stop depending on them though.

So I believe we should proceed with the patch. I'll review and keep it moving.
Comment 7 Piotr Buliński 2026-04-10 07:27:27 UTC
Patch posted to the list https://patchwork.yoctoproject.org/project/yocto/patch/20260410072459.52859-1-piotr@qbee.io/
Comment 8 Tim Orling 2026-06-04 14:46:49 UTC
*** Bug 16305 has been marked as a duplicate of this bug. ***
Comment 9 David Reyna 2026-06-04 16:40:09 UTC
Hi all. Tim closed my defect as a duplicate of this one. 

I would like to mention that this issue is breaking Toaster right now for YP 6.0 (bug #16304). Also, this is blocking Daiane in writing his Yocto Project 6.0 "Wrynose" book. This fix is highly desired and anticipated.

It appears that the proposed patch addresses both "git:" to "https:" and the removal of "cgit/cgit.cgi", so it has my endorsement.

Toaster does care about all those lesser used metadata values like "vcs_web_tree_base_url".

Links with "cgit" (like "http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm") definitely do NOT work anyone (per the post 2026-04-09).

Thanks, David
Comment 10 Michael Halstead 2026-06-09 15:57:20 UTC
This work has been deployed and the references are now correct. Thank you to Tim Orling and Piotr Buliński.
Comment 11 David Reyna 2026-06-09 17:43:15 UTC
I can confirm that I see the expected data and links in both the on-line Layer Index and in Toaster (imported from Layer Index API)!