<?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>15882</bug_id>
          
          <creation_ts>2025-05-28 15:06:41 +0000</creation_ts>
          <short_desc>az fetcher not working as expected when using AZ_SAS, i need to prepend it with a ?</short_desc>
          <delta_ts>2025-06-04 14:34:14 +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>BitBake</product>
          <component>bitbake</component>
          <version>5.0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>arm64</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>5.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robbin Van Damme">robbinvandamme</reporter>
          <assigned_to name="Robbin Van Damme">robbinvandamme</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.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>102088</commentid>
    <comment_count>0</comment_count>
    <who name="Robbin Van Damme">robbinvandamme</who>
    <bug_when>2025-05-28 15:06:41 +0000</bug_when>
    <thetext>According to the docs we need to put our sas toking inside the AZ_SAS variable and add the use to the SRC_URI.

That does not work since in the lib/bb/fetch2/az.py the sas token gets appended to the url without a &quot;?&quot; in between to separate the query parameters from the url.


        if az_sas:
            azuri = &apos;%s%s%s%s&apos; % (&apos;https://&apos;, ud.host, ud.path, az_sas)



This results in something like:


https://some_app.zipsp=r&amp;st=date&amp;se=date&amp;spr=https&amp;sv=date&amp;sr=c&amp;sig=some_sig&apos; 

but it should be

https://some_app.zip?sp=r&amp;st=date&amp;se=date&amp;spr=https&amp;sv=date&amp;sr=c&amp;sig=some_sig&apos; 



Code could be something like:


        if az_sas:
            azuri = &apos;%s%s%s?%s&apos; % (&apos;https://&apos;, ud.host, ud.path, az_sas)

For now i just added the ? as prefix to the AZ_SAS inside my recipe.

Kind regards,

Robbin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102094</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-29 14:44:53 +0000</bug_when>
    <thetext>Patch sent to list but it needs a commit message and signed-of-by line.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102134</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2025-06-04 14:34:14 +0000</bug_when>
    <thetext>In the end we&apos;ve added a warning if the ? is missing:

https://git.yoctoproject.org/poky/commit/?id=a2f77bbe0fd564e0b95df15c27f2c6a3b15c7be7

Thanks for the patch Robbin.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>