<?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>8161</bug_id>
          
          <creation_ts>2015-08-14 10:34:30 +0000</creation_ts>
          <short_desc>Can&apos;t use &quot;\&quot; characters in SRC_URI entries - not even escaped</short_desc>
          <delta_ts>2021-04-22 15:27:56 +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>unspecified</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>3.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrei Gherzan">andrei</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>Leif.Middelschulte</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <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>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>53115</commentid>
    <comment_count>0</comment_count>
    <who name="Andrei Gherzan">andrei</who>
    <bug_when>2015-08-14 10:34:30 +0000</bug_when>
    <thetext>There are cases where special characters need to be used in SRC_URI entries. A simple example is mount systemd services. A file like this which would mount /test-test would need to be named &quot;test\x2dtest&quot;. For more examples check systemd-escape. 
Additional info: http://www.freedesktop.org/software/systemd/man/systemd.mount.html

Adding a file like this in SRC_URI makes the fetcher fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53117</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-08-14 10:40:44 +0000</bug_when>
    <thetext>What escaping did you try, backslash or URI escaping?  eg &quot;test%5Cx2dtest&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53118</commentid>
    <comment_count>2</comment_count>
    <who name="Andrei Gherzan">andrei</who>
    <bug_when>2015-08-14 11:09:49 +0000</bug_when>
    <thetext>Backslash. 

SRC_URI += &quot;test\\x2dtest.mount&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53271</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-08-20 14:34:09 +0000</bug_when>
    <thetext>Did you try URI escaping as this is a URI?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53306</commentid>
    <comment_count>4</comment_count>
    <who name="Andrei Gherzan">andrei</who>
    <bug_when>2015-08-21 06:35:38 +0000</bug_when>
    <thetext>Hi,

(In reply to comment #3)
&gt; Did you try URI escaping as this is a URI?

I tried escaping it with URI escape sequence too: &quot;%5C&quot;. Fails at unpack.

Andrei</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88196</commentid>
    <comment_count>5</comment_count>
    <who name="Leif Middelschulte">Leif.Middelschulte</who>
    <bug_when>2020-09-23 06:37:36 +0000</bug_when>
    <thetext>The issue at hand is fixed by https://lists.openembedded.org/g/bitbake-devel/topic/patch_fetch2_fix_handling/77034959?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,77034959</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90062</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-04-22 15:20:28 +0000</bug_when>
    <thetext>That was fixed as linked above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90064</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-22 15:21:36 +0000</bug_when>
    <thetext>http://git.openembedded.org/bitbake/commit/?id=aa857fa2e9cf3b0e43a9049b04ec4b0b3c779b11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90067</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-22 15:27:56 +0000</bug_when>
    <thetext>Re-opened by accident when adding the actual commit link.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>