Bug 16272 - check layerindex code for git:// references
Summary: check layerindex code for git:// references
Status: RESOLVED FIXED
Alias: None
Product: Layer Index
Classification: Yocto Project Subprojects
Component: Layer Index (show other bugs)
Version: 6.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 6.1 M2
Assignee: Tim Orling
QA Contact: apoorv sangal
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2026-04-28 15:18 UTC by Trevor Woerner
Modified: 2026-06-09 15:56 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trevor Woerner 2026-04-28 15:18:10 UTC
Now that we are deprecating the git:// access to git.openembedded.org and git.yoctoproject.org check the layerindex code to ensure that git:// is not being used as, say, a pre-filled value.
Comment 1 Trevor Woerner 2026-04-28 15:37:01 UTC
Re-assigned to Sandeep @ AMD
Comment 2 Tim Orling 2026-04-30 14:57:18 UTC
One of the places where this needs to be changed that might not be obvious is in the template beginning here:

https://git.yoctoproject.org/layerindex-web/tree/templates/layerindex/editlayer.html#n199

Quick grep:

layerindex-web % grep -R "git://" .
./docker/connectivity_check.sh:GIT_TEST_REPO="git://git.yoctoproject.org/meta-layerindex-test"
./docker/settings.py:BITBAKE_REPO_URL = "git://git.openembedded.org/bitbake"
./layerindex/tools/import_classic.py:        layer.vcs_url =  'git://git.openembedded.org/openembedded'
./layerindex/tools/import_layer.py:    if repoval.startswith('git://git.openembedded.org/'):
./layerindex/tools/import_layer.py:    elif repoval.startswith('git://git.yoctoproject.org/'):
./layerindex/tools/import_layer.py:    elif repoval.startswith('git://github.com/') or repoval.startswith('http://github.com/') or repoval.startswith('https://github.com/'):
./layerindex/tools/import_layer.py:    elif repoval.startswith('git://gitlab.com/') or repoval.startswith('http://gitlab.com/') or repoval.startswith('https://gitlab.com/'):
./layerindex/tools/import_layer.py:    elif repoval.startswith('git://bitbucket.org/') or repoval.startswith('http://bitbucket.org/') or repoval.startswith('https://bitbucket.org/'):
./layerindex/tools/import_wiki_layers.py:                        if repoval.startswith('git://git.openembedded.org/'):
./layerindex/tools/import_wiki_layers.py:                        elif repoval.startswith('git://git.yoctoproject.org/'):
./layerindex/tools/import_wiki_layers.py:                        elif repoval.startswith('git://github.com/') or repoval.startswith('http://github.com/') or repoval.startswith('https://github.com/'):
./layerindex/tools/import_wiki_layers.py:                        elif repoval.startswith('git://gitlab.com/') or repoval.startswith('http://gitlab.com/') or repoval.startswith('https://gitlab.com/'):
./layerindex/tools/import_wiki_layers.py:                        elif repoval.startswith('git://bitbucket.org/') or repoval.startswith('http://bitbucket.org/') or repoval.startswith('https://bitbucket.org/'):
./layerindex/models.py:        elif self.url.startswith('git://github.com'):
./layerindex/models.py:        elif self.url.startswith('git://git.yoctoproject.org'):
./layerindex/models.py:        elif self.url.startswith('git://git.kernel.org'):
./layerindex/forms.py:        val = RegexValidator(regex=r'^[a-z]+://[^ ]+$', message='Please enter a valid repository URL, e.g. git://server.name/path')
./tests/test_update.py:    run_cmd("layerindex/tools/import_layer.py git://git.openembedded.org/openembedded-core -s meta openembedded-core")
./tests/test_update.py:    run_cmd("layerindex/tools/import_layer.py git://git.yoctoproject.org/meta-layerindex-test -s meta-layerindex-test")
./README:        Repository URL:           git://git.openembedded.org/openembedded-core
./README:   git clone git://git.openembedded.org/openembedded
./README:   git clone git://git.openembedded.org/bitbake -b 1.12
./settings.py:BITBAKE_REPO_URL = "git://git.openembedded.org/bitbake"
./templates/layerindex/editlayer.html:        if( repoval.startsWith('git://git.openembedded.org/') ) {
./templates/layerindex/editlayer.html:        else if( repoval.startsWith('git://git.yoctoproject.org/') ) {
./templates/layerindex/editlayer.html:        else if( repoval.startsWith('git://github.com/') ) {
./templates/layerindex/editlayer.html:        else if( repoval.startsWith('git://gitlab.com/') ) {
./templates/layerindex/editlayer.html:        else if( repoval.startsWith('git://bitbucket.org/') ) {
Comment 3 Tim Orling 2026-06-04 15:29:56 UTC
Related: https://bugzilla.yoctoproject.org/show_bug.cgi?id=10699
Comment 4 Tim Orling 2026-06-04 15:32:15 UTC
Initial attempt at the code side (we also need to fix metadata in the database #16240):

https://git.yoctoproject.org/layerindex-web/log/?h=timo/update-git-urls
Comment 5 Michael Halstead 2026-06-09 15:56:18 UTC
This work has been deployed and the references are now correct. Thank you to Tim Orling and Piotr Buliński.