<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16240</bug_id>
          
          <creation_ts>2026-04-09 14:41:48 +0000</creation_ts>
          <short_desc>All layer index git.yoctoproject.org cgit links broken</short_desc>
          <delta_ts>2026-06-09 17:43:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Layer Index</product>
          <component>Layer Index Metadata</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jon Mason">jon.mason</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          <cc>david.reyna</cc>
    
    <cc>mhalstead</cc>
    
    <cc>piotr</cc>
    
    <cc>ross.burton</cc>
    
    <cc>tim.orling</cc>
          
          <qa_contact name="apoorv sangal">apoorvsangal</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105011</commentid>
    <comment_count>0</comment_count>
    <who name="Jon Mason">jon.mason</who>
    <bug_when>2026-04-09 14:41:48 +0000</bug_when>
    <thetext>Recent changes to the Yocto Project git server is causing links to no longer work.  For example, the &quot;web repo&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105019</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-04-09 14:49:26 +0000</bug_when>
    <thetext>The /cgit/ paths are from the &quot;Edit Layer&quot; (or &quot;Submit Layer&quot;) form. Most folks probably ignore those fields (or don&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105020</commentid>
    <comment_count>2</comment_count>
    <who name="Piotr Buliński">piotr</who>
    <bug_when>2026-04-09 14:53:57 +0000</bug_when>
    <thetext>Should I work on this one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105021</commentid>
    <comment_count>3</comment_count>
    <who name="Piotr Buliński">piotr</who>
    <bug_when>2026-04-09 14:54:24 +0000</bug_when>
    <thetext>Should I work on this one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105022</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-04-09 14:56:07 +0000</bug_when>
    <thetext>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 &quot;cgit&quot; default values, which seem to be populated by:
https://git.yoctoproject.org/layerindex-web/tree/layerindex/tools/import_layer.py#n43

    if repoval.startswith(&apos;git://git.openembedded.org/&apos;):
        reponame = re.sub(&apos;^.*/&apos;, &apos;&apos;, repoval)
        layer.vcs_web_url = &apos;http://cgit.openembedded.org/&apos; + reponame
        layer.vcs_web_tree_base_url = &apos;http://cgit.openembedded.org/&apos; + reponame + &apos;/tree/%path%?h=%branch%&apos;
        layer.vcs_web_file_base_url = &apos;http://cgit.openembedded.org/&apos; + reponame + &apos;/tree/%path%?h=%branch%&apos;
        layer.vcs_web_commit_url = &apos;http://cgit.openembedded.org/&apos; + reponame + &apos;/commit/?id=%hash%&apos;
    elif repoval.startswith(&apos;git://git.yoctoproject.org/&apos;):
        reponame = re.sub(&apos;^.*/&apos;, &apos;&apos;, repoval)
        layer.vcs_web_url = &apos;http://git.yoctoproject.org/cgit/cgit.cgi/&apos; + reponame
        layer.vcs_web_tree_base_url = &apos;http://git.yoctoproject.org/cgit/cgit.cgi/&apos; + reponame + &apos;/tree/%path%?h=%branch%&apos;
        layer.vcs_web_file_base_url = &apos;http://git.yoctoproject.org/cgit/cgit.cgi/&apos; + reponame + &apos;/tree/%path%?h=%branch%&apos;
        layer.vcs_web_commit_url = &apos;http://git.yoctoproject.org/cgit/cgit.cgi/&apos; + reponame + &apos;/commit/?id=%hash%&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105033</commentid>
    <comment_count>5</comment_count>
    <who name="Piotr Buliński">piotr</who>
    <bug_when>2026-04-09 19:48:24 +0000</bug_when>
    <thetext>After looking at the issue, I noticed that a redirect has been set up for the /cgit/cgit.cgi/* -&gt; /*, 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105034</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-04-09 20:03:45 +0000</bug_when>
    <thetext>From IRC:

&lt;moto-timo&gt; Tim Orling 
halstead: did you re-enable the /cgit/ redirects? we weren&apos;t sure if it&apos;s still &quot;broken&quot;
1:00 PM &lt;halstead&gt; 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&apos;ll review and keep it moving.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105038</commentid>
    <comment_count>7</comment_count>
    <who name="Piotr Buliński">piotr</who>
    <bug_when>2026-04-10 07:27:27 +0000</bug_when>
    <thetext>Patch posted to the list https://patchwork.yoctoproject.org/project/yocto/patch/20260410072459.52859-1-piotr@qbee.io/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105710</commentid>
    <comment_count>8</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-06-04 14:46:49 +0000</bug_when>
    <thetext>*** Bug 16305 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105731</commentid>
    <comment_count>9</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2026-06-04 16:40:09 +0000</bug_when>
    <thetext>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 &quot;Wrynose&quot; book. This fix is highly desired and anticipated.

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

Toaster does care about all those lesser used metadata values like &quot;vcs_web_tree_base_url&quot;.

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

Thanks, David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105787</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2026-06-09 15:57:20 +0000</bug_when>
    <thetext>This work has been deployed and the references are now correct. Thank you to Tim Orling and Piotr Buliński.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105788</commentid>
    <comment_count>11</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2026-06-09 17:43:15 +0000</bug_when>
    <thetext>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)!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>