Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The old tests were just straight up wrong. I built them wrong when converting the code from 2.x to now. In 2.x all files were preceded by the `data` name which made files parsing much simpler as we had already stripped off the first name element. The new method feels better to me as well. It doesn't use reference arguments and I think is a tiny bit simpler. Refs #3999
- Loading branch information
Showing
2 changed files
with
85 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a nice fix!
I encountered this issue a few days ago in 2.x.
Do you have a plan to backport these changes to 2.x?
45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't think this issue existed in 2.x as the files are generally always prefixed with
data
which should mitigate this issue.45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally, it doesn't occur.
I have created a kind of bulk update action.
So I created a view like this.
In this case,
$this->request->data
will be like this.45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, and does backporting this fix to 2.x solve the issue?
45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I didn't look closely into this issue.
It may be only related this check.
If $path is 0, it doesn't work.
So, now I think that we have only to fix it.
There might be no need to backport to 2.x.45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, If you could share with me the
$_FILES
array that is troublesome, I can work on a fix.45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I wanted to tell you that we didn't need all changes in this commit.45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I can change the path check to not use empty.
45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in cd7438d
45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am very sorry ...
Now I understand what you mean.
But it's too late 😢
$_FILES array is such as the following .
45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I think I've gotten the issue fixed - I figured it out by reading your earlier comments more carefully.
45725b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it works now. Thanks.