<?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>16498</bug_id>
          
          <creation_ts>2026-11-14 06:54:43 +0000</creation_ts>
          <short_desc>layerindex: URL form fields warn about the default scheme changing in Django 6.0</short_desc>
          <delta_ts>2026-11-14 07:23:28 +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</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS REVIEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          
          
          <qa_contact name="apoorv sangal">apoorvsangal</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107442</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-14 06:54:43 +0000</bug_when>
    <thetext>With Django 5.2, the test suite and the web application show:

  RemovedInDjango60Warning: The default scheme will be changed from &apos;http&apos; to &apos;https&apos; in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using &apos;https&apos; as the new default scheme.

It comes from the form fields Django creates for the URL fields of the models:

- EditLayerForm (layerindex/forms.py): vcs_web_url and mailing_list_url of LayerItem
- RecipeChangeForm (layerindex/forms.py, bulk change): homepage and bugtracker of RecipeChange
- the LayerItem admin page

When someone enters a URL without a scheme (e.g. &quot;github.com/foo/meta-bar&quot;), Django 5.2 stores it as http://, and Django 6.0 will store it as https://. The forms should say which scheme they mean, so that the behaviour does not change silently when upgrading to Django 6.0, and the warning goes away.

Proposed fix: use https, as Django 6.0 will, by passing assume_scheme=&quot;https&quot; to these URL form fields. The FORMS_URLFIELD_ASSUME_HTTPS setting is itself deprecated and removed in Django 6.0, so it is not used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107443</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-14 07:04:47 +0000</bug_when>
    <thetext>Patch sent for review, staged on master-next:

layerindex: use https for URLs entered without a scheme
https://lore.kernel.org/yocto-patches/20261114070115.28388-1-tim.orling@konsulko.com/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>