Bug 30298 - Недостаточно правильно осуществляется подстановка %H в X-Alterator-URI
Summary: Недостаточно правильно осуществляется подстановка %H в X-Alterator-URI
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: alterator-fbi (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Mikhail Efremov
QA Contact: qa-sisyphus
URL: http://git.altlinux.org/people/mano...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-09 17:32 MSK by Andrey Cherepanov
Modified: 2014-09-09 18:58 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)