Skip to content
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

files present in source code are listed in 'deleted.files ' #4214

Closed
uvelokk opened this issue Feb 15, 2024 · 6 comments
Closed

files present in source code are listed in 'deleted.files ' #4214

uvelokk opened this issue Feb 15, 2024 · 6 comments

Comments

@uvelokk
Copy link

uvelokk commented Feb 15, 2024

The problem

Some of the files which are listed in ./data/deleted.files are (still?) present in the source code:

  • vendor/paragonie/random_compat/composer.json
  • vendor/paragonie/random_compat/LICENSE
  • vendor/paragonie/random_compat/psalm-autoload.php
  • vendor/paragonie/random_compat/psalm.xml
  • vendor/paragonie/random_compat/lib/random.php

Version of DokuWiki

2024-02-06a "Kaos"

PHP Version

8.2

Webserver and version of webserver

No response

Browser and version of browser, operating system running browser

No response

Additional environment information

No response

Relevant logs and/or error messages

No response

@fiwswe
Copy link
Collaborator

fiwswe commented Feb 17, 2024

Did you follow the upgrade instructions including the Removing Unused Files step?

@splitbrain
Copy link
Collaborator

splitbrain commented Feb 18, 2024

Confirmed.

https://github.com/dokuwiki/dokuwiki/blob/master/data/deleted.files#L59-L70

https://github.com/dokuwiki/dokuwiki/tree/master/vendor/paragonie/random_compat

Seems like we had this library at some point, then removed it in 2022, then it got readded as dependency when we updated to phpseclib3.

@xrat
Copy link

xrat commented Feb 18, 2024

I'd appreciate a notice at the top of deleted.files that despite what it looks like at the top (right now) lines had actually been removed since 2022-06-26. That is for now and until #4217 gets resolved.

@splitbrain
Copy link
Collaborator

@xrat I'm not sure I understand what you're asking for. Feel free to provide a PR.

@xrat
Copy link

xrat commented Feb 18, 2024

I meant that any changes made to deleted.files should be documented within the file itself. But since my last comment I figured it's not really a problem. I just need to change my workflow when upgrading: I need to remove files listed in deleted.files first, and only then do the upgrade.

@xrat
Copy link

xrat commented Feb 18, 2024

Looking at my upgrade procedure like I have done it for way more than a decade ;) I see I always deleted first and unpacked afterwards. However, upgrade instructions in the wiki actually suggest a different order:

Step 4: Unpack the distribution tarball and upload/copy the files over your previous installation. (…)
Step 5: Delete all unused files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants