🏄‍♂️🇦🇺Sydney, Australia
Account created on 24 September 2008, over 16 years ago
  • Co-Founder and Technical Director at PreviousNext 
  • Co-Founder and Technical Director at Skpr 
#

Merge Requests

More

Recent comments

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Rebased on 11.x.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I think this might get more attention if it were under theme system.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Looks like permissions aren't set correctly in your file system. Did you follow the setup instructions here? https://www.drupal.org/docs/administering-a-drupal-site/security-in-drup...

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Changes should be against 3.x and need to be in a MR to trigger the CI pipeline.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Looks like some legit test fails.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Rebased on 11.x

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper made their first commit to this issue’s fork.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Updated title.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Updated IS to reflect latest proposed resolution.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Added a default mime type constant of \Drupal\Core\File\MimeType\MimeTypeGuesser::DEFAULT_MIME_TYPE with value 'application/octet-stream' and use that instead of empty string.

Hiding some older patches and MRs.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper changed the visibility of the branch 3469280-drupalfileiconmimetypes-doesnt-handle to hidden.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper changed the visibility of the branch 3469280-File-mime-type-null to hidden.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Changing from a bug to a feature request.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I think this is a performance improvement rather than a bug so changing to a task.

Tagging as needs issue summary update to add in the template, and rename title to replace drupal_move_uploaded_file() which no longer exists.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

According to https://www.drupal.org/about/core/policies/core-dependency-policies/depe... we need framework and release manager signoff on adding a new dependency on psr/clock. 🤷

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Rebased on 11.x Tests green again.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

TBH I don't have a strong opinion on which characters should be included or excluded. I'll happily defer to those with a stronger security background. I _do_ think removing whitespace will be disruptive to site owners.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Based on #10 I think we can RTBC this now.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Left some suggestions.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I think we agreed on stripping special characters. It was more about which characters to strip. I have a feeling stripping whitespace might be contentious.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I had to look into why unset($transaction) works and it's because we have a \Drupal\Core\Database\Transaction::__destruct() method that calls
$this->transactionManager()->unpile()

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Looking at the solution were all options taken?

Do you mean are all the special characters included?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Test fail looks unrelated

Drupal\Tests\big_pipe\FunctionalJavascript\BigPipeRegressionTest::testPlaceholderHtmlEdgeCases
WebDriver\Exception\UnknownError: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
  (Session info: chrome-headless-shell=123.0.6312.58)
  (Driver info: chromedriver=123.0.6312.58 (6b4b19e9dfbb93aa414dc045bd445287977d8d7a-refs/branch-heads/6312_46@{#3}),platform=Linux 5.10.234-225.921.amzn2.x86_64 x86_64)
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper changed the visibility of the branch 3519726-fix-incorrect-mimetype-service to hidden.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper changed the visibility of the branch 10.4.x to hidden.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper changed the visibility of the branch 11.x to hidden.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Created a MR from the commit in #2

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

This bug only exists in 10.4.x as it triggers a deprecation that was removed in 11.0.x.

Updated the title and IS.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper made their first commit to this issue’s fork.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Reviewed the code changes and agree with moving legacy tests. Unfortunately a test-only run doesn't not fail to confirm the bug is fixed as the code that would fail has been moved to a new test class. Not sure if it's worth it pursuing?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Addressed feedback and updated the IS.

I think we can create a new requirements check for the config setting. However, there was some pushback (#44_) on showing warnings on a standard install, so we need to be sure this is considered.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

@mondrake created https://www.drupal.org/project/sophron/issues/3519605 📌 SophronMimeTypeMapFactory should just override MimeTypeMapFactory::doCreateMap() Active

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Tests back to green.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Rebased on 11.x

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I re-ran the pipeline a couple of times to see if it was a random failure, but still getting the fails.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Rebased on 11.x

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Back to NR for the feedback from @acbramley

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Rebased on 11.x and added docs to default.settings.php

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

This feature request was posted against D7 which is no longer supported. If there is a feature request that would apply to Drupal 11+ then please feel free to update the Issue Summary and describe the details of that request.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Attempted to write a test for this, but couldn't work out why the invalid operation was not being passed through to \Drupal\Core\StreamWrapper\LocalStream::stream_lock() correctly. 🤔

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Updated the IS saying we propose to return FALSE for unknown operations.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Review the code changes and it makes sense to me. Unfortunately we don't have any test coverage. It would be helpful to add tests to demonstrate the bug is fixed. NW for that.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper changed the visibility of the branch 3493632-flock-operations to hidden.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Removed config option, and updated tests now we replace special chars.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Updated title and issue summary to match current MR implementation approach.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Rebased on 11.x

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Here's a basic implementation. I haven't looked at any tests yet.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
        'FileImageDimensions' => ['maxDimensions' => 50 * 50],

Do you mean ['maxDimensions' => '50x50'] here?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

All of these are available as optional settings. Are you saying we should default to safer settings, or enforce them?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I went through and resolved a load of old feedback threads that had been addressed, and did a final pass.

Looked at:

  • Feedback addressed ✔
  • BC coverage ✔
  • Test coverage ✔
  • Upgrade path coverage ✔

IMO this is ready.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I think we should postpone this on 🐛 FileSystem::tempnam() doesn't respect subdirectories for stream wrappers Needs work as that is re-implementing the method without getDirectoryPath() and adding test coverage.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Confirmed the test-only job correctly failed with:

Drupal\KernelTests\Core\File\StreamWrapperTest::testTempnam
Temporary file was created in the default stream wrapper subdirectory
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'public://vxdio1mu'
+'public://'

core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php:174

NW for the test location.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I don't believe we have test coverage for this method, so now would be a good time to add it.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Left some feedback. NW for that and coding standard issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Created a MR from the patch in #69 and hid patch files.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper made their first commit to this issue’s fork.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Could we start by looking at how we would change \Drupal\Core\File\FileSystem::tempnam() to not use ::getDirectoryPath()?

Do we need more strict type checks for LocalStream?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

There was no public issue that made the change as it was a security issue. Here's the commit https://git.drupalcode.org/project/drupal/-/commit/cf82188fcf317e185716f...

I have checked the MR and confirmed it mentions uris and paths and the english is correct.

Current test fails are unrelated as this are docs only changes. RTBC for when it comes back green.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper made their first commit to this issue’s fork.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I don't think this is something we will support within core.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Left some feedback and updated the title.

These tests

  • Drupal\FunctionalTests\Installer\InstallerTest
  • \Drupal\Tests\system\Functional\System\SitesDirectoryHardeningTest

are failing which look related.

Also hid a load of outdated patch files.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

This was fixed in 9.1.x. It was marked needs work for a backport to D7 however that is no longer supported. Marking fixed.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

This was fixed in 9.1.x. and left open for a backport to D7. Marking fixed since D7 is no longer supported.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

If there are tests required still we should open a new issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

This was committed but never closed.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Closing as per #25 looks like this was a hosting provider issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Looks like just a few PHPCS errors. Also tagging for Needs Tests. I think it would be good for a test to ensure it all get's wired up correctly.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Released in 2.4.0

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Committed to 3.x and 2.x. Thanks!

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Changes go into 3.x.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Updated title

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Marking RTBC. Hoping other maintainers can review as well.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I agree this would be useful. OpenSearch will create an index when the first document is pushed, so this is existing behaviour. We are just making sure our mappings are correct when the index is created.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Currently we default to application/octet-stream if we can't determine the mime type. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types#appl...

Any kind of binary data that doesn't fall explicitly into one of the other types;

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

See also 🐛 Separate MIME type mapping from ExtensionMimeTypeGuesser Needs work Not sure about the automatic extension change tho.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Yeah, not sure of the history of this one. I think we could do away with the check for apache and nginx and just display the default "extension missing" message.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Looks good. Can we add a test?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I'd say this is outdated since we just check if the extension is enabled now.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

> I can't create MR from the fork as I might not have access.

Did you click "Get Push Access"?

Also all changes go into 3.x first.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I'm trying an alternative approach in https://git.drupalcode.org/project/drupal/-/merge_requests/11533 however I can't tell if test fails are related or not? 🤔

Instead of adding onto the Time class, I'm creating a dedicated Clock implementation.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

All good now.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Reviewed this and checked the property can still be accessed and there is a test to trigger the deprecation.

RTBC once we have a CR.

> I imagine this will need a CR?

Yep.

> How would we want to handle the removal of this code in D12? Do we wait for this to be committed and open a follow up?

I think this would get handled when we make deprecation removal issues when 12.x opens up.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I'm seeing a few changes that look unrelated. You might need to rebase on 11.x?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Yeah I think a sub-classed search backend would work. I think a sub-module in this project would make more sense since there would be minimal differences.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Left one nitpick.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper changed the visibility of the branch 3501375-symfony-clock to hidden.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I created a follow-up 📌 [PP-1] Deprecate TimeInterface::getCurrentTime() and replace with ClockInterface::now()->getTimestamp() Postponed so back to RTBC.

I also squashed the commits and rebased on the latest 11.x. This will help if we need to continually rebase on 11.x until it gets committed.

Production build 0.71.5 2024