Development

#7756 (sfYaml* translate badly Windows path)

You must first sign up to be able to contribute.

Ticket #7756 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

sfYaml* translate badly Windows path

Reported by: loops Assigned to: fabien
Priority: major Milestone: 1.3.0
Component: yaml Version: 1.3.x DEV
Keywords: Cc:
Qualification: Unreviewed

Description

I think that this bug is due to the sfYamlInline because that's the only file that are shared for this both tool.

When I launch the doctrine:build-model task, symfony or Doctrine, provide a temporary sche=a file containing all informations about the schema to build, and especially all Windows path like that:

"package_custom_path: 'D:\xampp\htdocs\project\plugins\myPlugin/lib/model/doctrine'".

These paths were working before the last update but know, none of symfony or Doctrine understand these Windows path anymore and provide a strange transformation like:

'D:

mpphtdocsprojectpluginsmyPlugin/lib/model/doctrine'

Please do something before I became insame...

Loops

Change History

12/01/09 10:39:06 changed by loops

  • priority changed from minor to major.
  • component changed from other to yaml.

This is a better introduction:

I think that this bug is due to the sfYaml* suite because this component is shared by symfony and Doctrine.

12/01/09 11:01:04 changed by loops

FYI: I just come back to the 24019 revision of the yaml component and everything works fine...

12/01/09 11:16:42 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [24656]) [YAML] fixed \ usage in quoted string (closes #7756)

12/01/09 11:21:06 changed by fabien

Can you confirm it fixes your problem? Thanks.

12/01/09 11:31:57 changed by loops

Yes, it fixs it but I'm pretty sure that it provides another error.

I'm using some Windows paths for a custom Doctrine behavior, for now, I don't addcslashes() on the DIRECTORY_SEPARATOR of these Windows paths (that should be the correct thing to do, as far as I have understand) and it double the DIRECTORY_SEPARATOR, providing:

        dir: 'D:\xampp\htdocs\project\www\uploads\homepages\templates\'

in the temporary schema file

and

'dir' => 'D:\\\\xampp\\\\htdocs\\\\youngacl\\\\www\\\\uploads\\\\homepages\\\\templates\\\\'

in the BaseXXX generated file...

I need to test it but I'm pretty sure that it will failed...

Loops

12/01/09 11:35:22 changed by loops

I was wrong, the stuff works. Nice. Thanks