Skip to content

Handle empty or incorrect lines in a language CSV#12304

Merged
magento-team merged 3 commits intomagento:2.2-developfrom
FreekVandeursen:bugfix/language-pack-empty-line
Nov 18, 2017
Merged

Handle empty or incorrect lines in a language CSV#12304
magento-team merged 3 commits intomagento:2.2-developfrom
FreekVandeursen:bugfix/language-pack-empty-line

Conversation

@FreekVandeursen
Copy link
Copy Markdown

Description

Reading language packs will break if the CSV file contains incorrect lines. For example an accidental empty line at the end of the file will cause an undefined index error.

Manual testing scenarios

  1. Create a language pack, and include a CSV with an empty line at the end of the file

Current 2.2 code will show errors. With this change it will skip over the incorrect line without error.

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-team magento-team merged commit 723452c into magento:2.2-develop Nov 18, 2017
magento-team pushed a commit that referenced this pull request Nov 18, 2017
[EngCom] Public Pull Requests - 2.2-develop
 - MAGETWO-84098: Webshop throws an exception when sharing wishlist with RSS enabled #12276
 - MAGETWO-84081: 9684: No ACL set for integrations #12332
 - MAGETWO-84006: Fix robots.txt content type to 'text/plain' #12310
 - MAGETWO-83977: Handle empty or incorrect lines in a language CSV #12304
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants