Bug 30298

Summary: Недостаточно правильно осуществляется подстановка %H в X-Alterator-URI
Product: Sisyphus Reporter: Andrey Cherepanov <cas>
Component: alterator-fbiAssignee: Mikhail Efremov <sem>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: imz, manowar, mike, nbr, sem
Version: unstable   
Hardware: all   
OS: Linux   
URL: http://git.altlinux.org/people/manowar/packages/?p=alterator-fbi.git;a=commitdiff;h=04e45f93207a4cbd85bcd08320ba5420a5c43051

Description Andrey Cherepanov 2014-09-09 17:32:31 MSK
X-Alterator-URI=https://%H:8000/help возвращает ""
X-Alterator-URI=https://%H/help возвращает "https://10.1.1.228/help"

Предлагаю переписать (format-uri) так:
(define (format-uri uri)
  (regexp-substitute 
    #f 
    (string-match "%H" uri) 
    'pre 
    (message-header (ahttpd-session-ref 'ahttpd-request) "host") 
    'post))
Comment 1 Repository Robot 2014-09-09 18:58:14 MSK
alterator-fbi-5.30-alt1 -> sisyphus:

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