[MGNLBACKUP-60] FileNotFoundException if no path for backup is specified. Created: 17/Sep/12  Updated: 29/Mar/22  Resolved: 21/Sep/12

Status: Closed
Project: Backup
Component/s: None
Affects Version/s: 1.2
Fix Version/s: 1.2.1

Type: Bug Priority: Trivial
Reporter: Jaroslav Simak Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Team: Nucleus

 Description   

When path for backup is not filled, backup module will throw a FileNotFoundExpcetion.

java.io.FileNotFoundException: /backup-12-09-17_1710/repoConfig.zip (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
at info.magnolia.module.backup.ZipHandler.init(ZipHandler.java:71)
at info.magnolia.module.backup.ZipHandler.<init>(ZipHandler.java:66)
at info.magnolia.module.backup.BackupRun.execute(BackupRun.java:118)
at info.magnolia.module.backup.pages.BackupPage.manualBackup(BackupPage.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at info.magnolia.cms.servlets.MVCServletHandlerImpl.execute(MVCServletHandlerImpl.java:121)
at info.magnolia.cms.servlets.CommandBasedMVCServletHandler.execute(CommandBasedMVCServletHandler.java:84)
at info.magnolia.cms.servlets.MVCServlet.doPost(MVCServlet.java:125)
at info.magnolia.cms.servlets.MVCServlet.doGet(MVCServlet.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...

Also backup log will show message that backup is finished which is not true. There should be a message that displays when path is not filled.


Generated at Sun Feb 11 23:25:12 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.