-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[5.1] Catch block for generic TUF exceptions #43477
Merged
LadySolveig
merged 8 commits into
joomla:5.1-dev
from
SniperSister:5.1-tuf-generic-catch
May 20, 2024
Merged
[5.1] Catch block for generic TUF exceptions #43477
LadySolveig
merged 8 commits into
joomla:5.1-dev
from
SniperSister:5.1-tuf-generic-catch
May 20, 2024
Conversation
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
brianteeman
reviewed
May 15, 2024
Co-authored-by: Brian Teeman <[email protected]>
Quy
reviewed
May 15, 2024
…er/joomla-cms into 5.1-tuf-generic-catch # Conflicts: # administrator/language/en-GB/lib_joomla.ini
For the record: a user from the german forum has tested the patch and it solved a http-transport related issue, see: https://forum.joomla.de/thread/20986-failed-to-connect-to-update-joomla-org-port-443/?postID=154136#post154136 |
I have tested this item ✅ successfully on fa179de This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43477. |
wilsonge
reviewed
May 17, 2024
Thank you @SniperSister and also for testing and review @dautrich @brianteeman @Fedik |
Kostelano
added a commit
to JPathRu/localisation
that referenced
this pull request
May 25, 2024
joomla/joomla-cms#43249 - (только для en-GB) joomla/joomla-cms#43454 + joomla/joomla-cms#43414 - (только для en-GB) joomla/joomla-cms#43401 - (только для др. пакетов) joomla/joomla-cms#43251 + joomla/joomla-cms#43481 + joomla/joomla-cms#43483 - (только для др. пакетов) joomla/joomla-cms#43477 + joomla/joomla-cms#43435 +
Kostelano
added a commit
to Joomla-Ukraine/uk-UA
that referenced
this pull request
Jun 3, 2024
joomla/joomla-cms#43249 - (тільки для en-GB) joomla/joomla-cms#43454 + joomla/joomla-cms#43414 - (тільки для en-GB) joomla/joomla-cms#43401 - (тільки для ін. пакетів) joomla/joomla-cms#43251 + joomla/joomla-cms#43481 + joomla/joomla-cms#43483 - (тільки для ін. пакетів) joomla/joomla-cms#43477 + joomla/joomla-cms#43435 + та інші виправлення
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue #43328
Summary of Changes
This PR adds a generic catch block that catches exceptions thrown in the TUF library. So far, we only caught attack-specific exceptions, internal errors, or errors related to metadata syntax error remained uncaught, making the site unusable.
Furthermore, it catches non-tuf exceptions from the HTTP library in our transport and converts them into TUF exceptions to also get them caught in the fetcher library.
Testing Instructions
We have to simulate an exception in the library in order to verify that the patch works. To do so, find the following code block in libraries/src/TUF/TufFetcher.php:
and replace it with
Actual result BEFORE applying this Pull Request
Unhandled exception.
Expected result AFTER applying this Pull Request
Proper system message shown, system remains usable.
Link to documentations
Please select:
Documentation link for docs.joomla.org:
[x ] No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
[x ] No documentation changes for manual.joomla.org needed