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

UHF-7741: prevent wsod by checking that the field exists #412

Merged
merged 2 commits into from
Dec 13, 2022

Conversation

rpnykanen
Copy link
Contributor

@rpnykanen rpnykanen commented Dec 12, 2022

UHF-7741

Announcement module tried to get value out of non-existing field.

What was done

Added checks to prevent getting values out of non-existing field.

How to install

  • Test with ETUSIVU -instance
  • Make sure your instance is up and running on latest dev branch.
    • git pull origin dev
    • make fresh
  • Update the Helfi Platform config
    • composer require drupal/helfi_platform_config:dev-UHF-7741_announcement_wsod_bug
  • Run make drush-updb drush-cr

How to test

  • Check that this feature works
  • Check that code follows our standards

@sonarcloud
Copy link

sonarcloud bot commented Dec 12, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

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

Successfully merging this pull request may close these issues.

2 participants