<?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>16293</bug_id>
          
          <creation_ts>2026-05-21 15:58:44 +0000</creation_ts>
          <short_desc>sstate download with a filename of 253 characters fails (via https)</short_desc>
          <delta_ts>2026-08-20 12:58:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>5.0.18</version>
          <rep_platform>x86</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="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>mathieu.dubois-briand</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <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>105538</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2026-05-21 15:58:44 +0000</bug_when>
    <thetext>A 253 character filename is passed to the bitbake wget fetcher.  The bitbake fetcher appends &apos;.tmp&apos; to the name so that the download can me renamed to the final name in a single operation.

This leads to a condition where the filename exceeds the max filename length of the filesystem and wget will refuse to download (or if it tries will fail.)

Either the filename needs to be &quot;further&quot; truncated in sstate.bbclass (it already truncates to under 254 characters), or the bitbake fetcher should detect the long filename and prevent the temp name from exceeding the filesystem length.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105539</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-05-21 15:59:57 +0000</bug_when>
    <thetext>The &quot;.tmp&quot; is a fetcher implementation detail so sstate shouldn&apos;t have to worry about this. This should be fixed in the fetcher.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105541</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2026-05-21 17:29:34 +0000</bug_when>
    <thetext>I think the easiest solution (in the fetcher) is to limit the &apos;tmp&apos; filename to 250 characters (just truncate it) and then add the &apos;.tmp&apos; suffix.  Then when the file is downloaded, it can be renamed to the original name without an issue.

Alternatively, we could start generating temp filenames, but I&apos;m not sure we really want to change the system behavior in that way at this time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106582</commentid>
    <comment_count>3</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-08-20 12:58:34 +0000</bug_when>
    <thetext>Patch merged: https://git.openembedded.org/bitbake/commit/?id=da1fcdf15c647a2a718ae921e261a76e451b442a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>