<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>30298</bug_id>
          
          <creation_ts>2014-09-09 17:32:31 +0400</creation_ts>
          <short_desc>Недостаточно правильно осуществляется подстановка %H в X-Alterator-URI</short_desc>
          <delta_ts>2014-09-09 18:58:14 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>alterator-fbi</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>  http://git.altlinux.org/people/manowar/packages/?p=alterator-fbi.git;a=commitdiff;h=04e45f93207a4cbd85bcd08320ba5420a5c43051  </bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Cherepanov">cas</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>imz</cc>
    
    <cc>manowar</cc>
    
    <cc>mike</cc>
    
    <cc>nbr</cc>
    
    <cc>sem</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>147630</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2014-09-09 17:32:31 +0400</bug_when>
    <thetext>X-Alterator-URI=https://%H:8000/help возвращает &quot;&quot;
X-Alterator-URI=https://%H/help возвращает &quot;https://10.1.1.228/help&quot;

Предлагаю переписать (format-uri) так:
(define (format-uri uri)
  (regexp-substitute 
    #f 
    (string-match &quot;%H&quot; uri) 
    &apos;pre 
    (message-header (ahttpd-session-ref &apos;ahttpd-request) &quot;host&quot;) 
    &apos;post))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147633</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2014-09-09 18:58:14 +0400</bug_when>
    <thetext>alterator-fbi-5.30-alt1 -&gt; sisyphus:

* Tue Sep 09 2014 Andrey Cherepanov &lt;cas@altlinux&gt; 5.30-alt1
- Replace %H in any place of X-Alterator-URI for support different port
  in URI (ALT #30298)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>