Page MenuHomeIn-Portal Phabricator

INP-1528 - When attaching file to e-mail verify, that it's a file, not a directory
ClosedPublic

Authored by alex on Jan 29 2016, 4:50 AM.

Details

Test Plan

Part 1

  1. go to Admin Console
  2. go to Website & ContentE-mail Templates section
  3. use Add toolbar button to open new e-mail template creation page
  4. on General tab enter following:
    • Template Name - TEST.EMAIL
    • Subject - Test Email Subject
    • HTML Version - <inp2:m_AttachFile path="favicon.ico"/>
  5. on Settings tab enter following:
    • Type - Admin
  6. press Save toolbar button
  7. click on ID column name to sort grid by id (will show newly created e-mail template)
  8. select just created e-mail template in grid
  9. press Send button on toolbar
  10. outside of In-Portal check administrator's e-mail account and confirm, that:
    • e-mail was received
    • e-mail has favicon.ico file attached (ignore fact, that it's attached twice)

Part 2

  1. edit e-mail template by double clicking on it's record in grid
  2. change value of path parameter of m_AttachFile tag to be admin
  3. press Save toolbar button
  4. select that e-mail template in grid
  5. press Send button on toolbar
  6. outside of In-Portal check administrator's e-mail account and confirm, that:
    • e-mail was received
    • e-mail has no attachments

Part 3

  1. edit e-mail template by double clicking on it's record in grid
  2. change value of path parameter of m_AttachFile tag to be `` (empty string)
  3. press Save toolbar button
  4. select that e-mail template in grid
  5. press Send button on toolbar
  6. outside of In-Portal check administrator's e-mail account and confirm, that:
    • e-mail was received
    • e-mail has no attachments

Diff Detail

Repository
rINP In-Portal
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alex updated this revision to Diff 476.Jan 29 2016, 4:50 AM
alex retitled this revision from to INP-1528 - When attaching file to e-mail verify, that it's a file, not a directory.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): INP-1528.
glebs accepted this revision.Feb 19 2016, 1:55 AM
glebs edited edge metadata.
This revision is now accepted and ready to land.Feb 19 2016, 1:55 AM
alex edited edge metadata.Mar 10 2016, 5:15 AM
alex added a project: Restricted Project.
This revision was automatically updated to reflect the committed changes.