Closed (duplicate)
Project:
Automatic Updates
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 May 2023 at 16:26 UTC
Updated:
6 Sep 2023 at 18:24 UTC
Jump to comment: Most recent
Comments
Comment #3
tedbowComment #4
tedbowOk added a test. The test fails on 3.0.x
Comment #5
phenaproximaComment #7
phenaproximaComment #8
wim leers\PhpTuf\ComposerStager\Domain\Value\PathList\PathListInterface::add()has as a default implementation\PhpTuf\ComposerStager\Infrastructure\Value\PathList\PathList::add()which looks like this:which does:
So it just validates that it receives strings. Not relative paths. IOW: this needs an upstream bugfix in Composer Stager, because the input validation is inadequate.
Reopening for that.
Comment #9
wim leers… and we need a follow-up to either convert the test that was added here to a generic test, or to remove the test that was introduced here.
Comment #10
tedbowYep sorry I meant make upstream bug report.
from chatting with @travis.carden the intend behavior for exclusions is
In our case on
apply()the source directory is our stage directory so this should have always been relative.Not sure why this worked before with php. The rsync copier acts as intended.
will make follow-ups
Comment #11
tedbowUpstream follow-up Exclude paths act differently between PHP and Rsync file copier
Comment #12
wim leersMakes sense. And that's indeed the upstream bug. Clarified that at https://github.com/php-tuf/composer-stager/issues/176#issuecomment-15733....
Comment #13
tedbowClosing since we have upstream issue
Comment #14
wim leers🥳
Comment #15
wim leersIn which issue did Automatic Updates start requiring a Composer Stager version that includes this fix, which is what allowed us to close this?
Comment #16
tedbowWe can leave this open for committing the requirement change when https://github.com/php-tuf/composer-stager/issues/176 is committed.
I think though we should consider why
CollectPathsToExcludeEventneeds to implementPathListInterface.PathListInterfaceonly has to methodsgetAll()andadd()for
add() we already have 2 methods on <code>CollectPathsToExcludeEvent,addPathsRelativeToWebRoot()andaddPathsRelativeToProjectRoot()so we never callCollectPathsToExcludeEvent::add()Comment #17
tedbowComment #18
phenaproximaI suspect this is now a duplicate of #3384637: FailureMarker should be responsible for excluding the marker file from stage operations.
Comment #19
phenaproximaThis is a duplicate of a fixed issue, which had upstream aspects which were also corrected months ago. I think this is thoroughly done.