Skip to content

Profiler does not show stack when client name contains dots #298

Closed
@sowbiba

Description

@sowbiba
Q A
Bug? yes
New Feature? no
Version 1.13.1

Actual Behavior

When the client name contains dots (example : application.ms.microservice), the profiler stack cannot be opened

Expected Behavior

Open Request/Response stack

Steps to Reproduce

httplug:
    plugins:
        logger:
            logger: 'logger'
            formatter: null
    clients:
        application.ms.microservice: ~

Possible Solutions

This issue happened because data-toggle contains #httplug-application.ms.microservice-1-details

In https://github.com/php-http/HttplugBundle/blob/master/Resources/views/script/httplug.js.twig#L7

document.querySelectorAll(selector) the dots are considered as class selector and the target is not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions