Skip to content

Url parser problem #347

@thumb2

Description

@thumb2

(2022-02-18 08:12:02) [INFO ] Request: 10.5.5.2:51553 0x5650de036360 HTTP/1.1 GET /api/load-project
(2022-02-18 08:12:02) [DEBUG ] - MESSAGE: hello
(2022-02-18 08:12:02) [DEBUG ] Matched rule '/api/load-project' 1 / 10
(2022-02-18 08:12:02) [INFO ] Loading project test1
(2022-02-18 08:12:02) [INFO ] {"projectName":"test1","imageName":"20220127162725.png","worldOrigin":{"y":0,"x":0},"ratioWorldImage":1,"locators":[]}
(2022-02-18 08:12:02) [INFO ] Response: 0x5650de036360 /api/load-project?projectName=test1 200 0
(2022-02-18 08:12:02) [DEBUG ] 0x5650de036360 timer cancelled: 0x7ffa95777ac0 4
(2022-02-18 08:12:02) [DEBUG ] task_timer cancelled: 0x7ffa95777ac0 4
(2022-02-18 08:12:02) [DEBUG ] task_timer scheduled: 0x7ffa95777ac0 5
(2022-02-18 08:12:02) [DEBUG ] 0x5650de036360 timer added: 0x7ffa95777ac0 5
(2022-02-18 08:12:02) [DEBUG ] 0x5650de036360 timer cancelled: 0x7ffa95777ac0 5
(2022-02-18 08:12:02) [DEBUG ] task_timer cancelled: 0x7ffa95777ac0 5
(2022-02-18 08:12:02) [INFO ] Request: 10.5.5.2:51553 0x5650de036360 HTTP/1.1 GET /img/test1/202201
(2022-02-18 08:12:02) [DEBUG ] - MESSAGE: hello
(2022-02-18 08:12:02) [DEBUG ] Matched rule '/img/' 1 / 2
(2022-02-18 08:12:02) [INFO ] req.url_params: [ ]
(2022-02-18 08:12:02) [INFO ] req.url: /img/test1/202201
(2022-02-18 08:12:02) [INFO ] req.raw_url: /img/test1/20220127162725.png

(2022-02-18 08:12:02) [INFO ] ../project/test1/202201
(2022-02-18 08:12:02) [INFO ] -1
(2022-02-18 08:12:02) [INFO ] ../project/test1/202201
(2022-02-18 08:12:02) [INFO ] Response: 0x5650de036360 /img/test1/20220127162725.png 404 0

GET /api/load-project?projectName=test1
followed by:
GET /img/test1/20220127162725.png
Raw_url of the second GET is "/img/test1/20220127162725.png", however, url is parsed as "/img/test1/202201". Seems that the "qs_point" in http_parser is not reset to 0 before the second GET request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions