10000 fixed #15118 [Filesystem] mirroring a symlink copies absolute file path by danepowell · Pull Request #15121 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

fixed #15118 [Filesystem] mirroring a symlink copies absolute file path #15121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

danepowell
Copy link
Contributor
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #15118
License MIT
Doc PR

This reverts the code change in a8b8d33 and adjusting the test case accordingly.

@nicolas-grekas
Copy link
Member

Shouldn't this be applied on 2.3?

@danepowell
Copy link
Contributor Author

This issue first appears in 2.5, but since 2.5 is EOL I think this should be fixed in 2.6.

@stof
Copy link
Member
stof commented Jul 1, 2015

wouldn't this cause issues if the mirrored files is a relative symlink to a file which is not mirrored to have an equivalent in the new location ?

@danepowell
Copy link
Contributor Author

Sure, in that case the symlink would break, but I'd argue that you're also using it wrong :) If the symlink needs to be to an absolute location (i.e. one that will not be mirrored), it should be absolute in the first place. What doesn't make sense (at least to me) is for symfony to make that decision for you and convert a relative symlink into an absolute one with no choice or warning.

@fabpot
Copy link
Member
fabpot commented Oct 6, 2015

Thank you @danepowell.

fabpot added a commit that referenced this pull request Oct 6, 2015
…ute file path (danepowell)

This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #15121).

Discussion
----------

fixed #15118 [Filesystem] mirroring a symlink copies absolute file path

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15118
| License       | MIT
| Doc PR        |

This reverts the code change in a8b8d33 and adjusting the test case accordingly.

Commits
-------

a83d525 fixed #15118 [Filesystem] mirroring a symlink copies absolute file path
@fabpot
Copy link
Member
fabpot commented Oct 6, 2015

merged into 2.3.

@fabpot fabpot closed this Oct 6, 2015
This was referenced Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0