Skip to content

debug:container does not work if a parameter is binary string with non-ascii characters #25916

@bburnichon

Description

@bburnichon
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.3, 3.4, 4.0, master

Steps to reproduce:

composer create-project symfony/skeleton test-binary-parameter 3.3
cd test-binary-parameter
composer require debug
composer require console
sed -i -e 's#secret: .*#secret: !!binary 8PDw8PDw8PDw8PDw8PDw8A==#' config/packages/framework.yaml
./bin/console debug:container

I end up with:

$ ./bin/console debug:container

In XmlFileLoader.php line 382:
                                                                                                                                  
  Unable to parse file "/home/bburnichon/Github/bburnichon/test-binary-parameter/var/cache/dev/srcDevDebugProjectContainer.xml".  
                                                                                                                                  

In XmlUtils.php line 62:
                                                                               
  [ERROR 522] Validation failed: no DTD found ! (in n/a - line 2, column 228)  
  [ERROR 9] Input is not proper UTF-8, indicate encoding !                     
  Bytes: 0xF0 0xF0 0xF0 0xF0 (in n/a - line 46, column 36)                     
                                                                               

debug:container [--show-private] [--show-arguments] [--tag TAG] [--tags] [--parameter PARAMETER] [--parameters] [--types] [--format FORMAT] [--raw] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<name>]

The above secret was generated by base64_encode(str_repeat(chr(240), 16))

Actually, I think this is linked to #16930

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy