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

Merge Requests

More

Recent comments

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

Left some feedback.

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

Thanks for reporting this issue. We rely on issue reports like this one to resolve bugs and improve Drupal core.

As part of the Bug Smash Initiative, we are triaging issues that are marked "Postponed (maintainer needs more info)". This issue was marked "Postponed (maintainer needs more info)" more than 1 year ago.

Since we need more information to move forward with this issue, I am closing it.

Please feel free to reopen with more information.

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

Committed to 2.x

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

kim.pepper created an issue.

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

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

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

I think we can safely close this one as outdated. file_create_url() was deprecated in drupal 9.3.0 and template_preprocess_file_link() now calls \Drupal\Core\File\FileUrlGeneratorInterface::generate() which returns a \Drupal\Core\Url object (not FALSE or NULL).

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

Also file_unmanaged_prepare() was deprecated in drupal 8.7.0 and replaced with \Drupal\Core\File\FileSystem::prepareDestination() so we need an IS update.

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

The first step should be to update the documentation to clarify the URI only supports a local streamwrapper. We can then create a follow up to discuss adding remote streams.

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

The list of allowed extensions comes directory from the extension validator. Can we confirm this bug still exists?

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

file_url_transform_relative() was deprecated in 9.3.0 and was converted to \Drupal\Core\File\FileUrlGeneratorInterface::transformRelative(). At the very least this needs an IS update. Can we check if this is still an issue in the new code?

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

Closing as a duplicate as per #12

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

Committed to 8.x-3.x. Thanks!

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

Left some feedback in the MR

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

OK thanks for clarifying @FeyP. Going to mark this RTBC.

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

Adding credit

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

I found a lot of other examples in file module where we are using uid => 1 Are we sure we can't remove these special behaviours either?

❯ grep -nri "'uid' => 1"
tests/src/Kernel/Migrate/d6/MigrateUploadTest.php:43:        'uid' => 1,
tests/src/Kernel/Validation/FileValidatorTestBase.php:48:      'uid' => 1,
tests/src/Kernel/FileManagedUnitTestBase.php:40:    $user = User::create(['uid' => 1, 'name' => $this->randomMachineName()]);
tests/src/Kernel/FileManagedUnitTestBase.php:170:      'uid' => 1,
tests/src/Kernel/FileManagedAccessTest.php:50:      'uid' => 1,
tests/src/Kernel/FileManagedAccessTest.php:65:      'uid' => 1,
tests/src/Kernel/Plugin/migrate/source/d6/FileTest.php:33:        'uid' => 1,
tests/src/Kernel/Plugin/migrate/source/d6/FileTest.php:43:        'uid' => 1,
tests/src/Kernel/Plugin/migrate/source/d6/FileTest.php:53:        'uid' => 1,
tests/src/Kernel/Plugin/migrate/source/d6/FileTest.php:68:        'uid' => 1,
tests/src/Kernel/Plugin/migrate/source/d6/FileTest.php:78:        'uid' => 1,
tests/src/Kernel/FileUriItemTest.php:27:      'uid' => 1,
tests/src/Functional/FileManagedTestBase.php:157:      'uid' => 1,
tests/src/Functional/FileListingTest.php:235:      'uid' => 1,
tests/src/Functional/FileListingTest.php:268:      'uid' => 1,
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Committed to 3.x and 2.x

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

kim.pepper created an issue.

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

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

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

Saving credit

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

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

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

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

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

Updated title and IS

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

Made the fix a bit simpler and added test coverage.

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

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

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

Agree there is no need for a FallbackMimeTypeGuesser if we can return 'application/octet-stream' by default from \Drupal\Core\File\MimeType\MimeTypeGuesser::guessMimeType()

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

As per #62

Once 10.3 is out and 10.2 is security only, this is obsolete.

I assume we can now mark this as closed won't fix.

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

Sorry for all the noise. I think I went back and forth with this too many times, and made changes I shouldn't have.

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

Hmm. I'm having second thoughts about reverting. I think we need to return NULL.

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

@longwave I thought we were doing this issue to fix the problem of guessers that come after.

Thus, any mime type guesser that would otherwise come afterwards is ignored.

However, I think we can use priority to allow workarounds.

Reverted.

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

kim.pepper created an issue.

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

Hiding patch files

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

Tried a new approach to add a constructor param to trigger a deprecation.

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

Spent some time on looking at the patch and how this could be implemented here. The code that checks for whether a field is a list or not is quite complex and seems to indicate there is a lack of trust in the TypeData definition isList() method.

If we were to proceed, I would expect we would need pretty decent Kernel test coverage to ensure indexing and querying work as expected.

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

See the fix in Search API OpenSearch 🐛 Handle missing return type in __wakeup() Fixed

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

Noticed that writing test.bbb to the filesystem was causing issues here so created a follow up 📌 FileSaveUploadTest should not write to the app root Needs review

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

kim.pepper created an issue.

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

This was fixed in Search API OpenSearch by overriding \Drupal\Core\DependencyInjection\DependencySerializationTrait::__wakeup() to add a return type. See 🐛 Handle missing return type in __wakeup() Fixed

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

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

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

This is an issue because \Drupal\Core\DependencyInjection\DependencySerializationTrait::__sleep() and __wakeup() do not have support types in 10.2.x/10.3.x but they have been added in 11.x.

As PHP supports covariance, we can ensure our class implements the return types by overriding these methods and we can remove them when 10.x versions are no longer supported.

https://www.php.net/manual/en/language.oop5.variance.php

Adding return types should be done on the implementing classes first.

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

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

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

For example:

   * @return string|null
   *   The mime type or NULL, if none could be guessed.
   *   For BC, this currently returns 'application/octet-stream' when none could
   *   be guessed but will return NULL in drupal:12.0.0.

and // @todo https://www.drupal.org/node/3156672 Return NULL in Drupal 12.0.0.

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

As per https://www.drupal.org/about/core/policies/core-change-policies/drupal-d... we can't really trigger a deprecation warning or use the @deprecated annotation. Instead we need to document the behaviour change in the docblock, and add a @todo to switch to returning NULL in the next major.

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

Just to clarify, BC is for 2.x branch. An MR without BC is ok for the 3.x branch.

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

NW for BC support

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

This looks good to me. I'll leave it as RTBC in case anyone else has feedback over the next 24hrs.

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

Committed to 2.x. Thanks!

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

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

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

Can you please rebase this onto the latest 2.x branch so we get gitlab ci codesniffer validation running? Thanks.

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

This MR will need to be rebased to go onto 3.x branch. It's currently on 1.x which is security fixes only.

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

We need to fix the next major (11.x) test fail. This is what this issue is about.

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

Committed to 2.x and 3.x thanks!

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

I fixed a few codesniff issues in the 3.x branch so we can focus on just the 11.x compatibility here.

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

Committed to 3.x and 2.x

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

kim.pepper created an issue.

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

Left some feedback.

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

Hiding some files

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

I've toned this down to only add autoconfigure: true to non-test modules. I had to exclude the mysql.services.yml too for reasons I haven't looked into.

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

kim.pepper created an issue.

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

Left some feedback.

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

I also added autowire: true everywhere too, which I think we should remove and just do autoconfigure: true first.

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

@ankitv18 go for it!

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

Thanks for working on this. FYI this is blocking Search API Opensearch Drupal 11.x support. 📌 Drupal 11 readiness Active

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

kim.pepper created an issue.

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

Given we are held up with concerns in Turn autowire & autoconfigure ON/OFF globally Needs review should we go ahead and do it the manual way here first?

I was curious so I added autoconfigure: true and autowire: true to every services.yml file to see what happens.

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

@liquidcms I suggest you create a new issue to add this feature.

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

Drop 9.x support

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

kim.pepper created an issue.

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

Added a change record.

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

Updated IS with more background

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

Thanks @lhridley for your detailed investigation. I'm happy with the changes in the MR.

Production build 0.69.0 2024