[MGNLRES-246] renaming files in filesystem and working in resource app in same time breaks Magnolia Created: 10/Dec/15  Updated: 29/Mar/22  Resolved: 14/Mar/22

Status: Closed
Project: Magnolia Resources Module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Tomáš Gregovský Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia EE 5.4.3, Mac OS


Attachments: JPEG File whoops.jpg    
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   

goal: duplicate main.ftl to do small changes there.

But when doing following steps will case some obstacles:

  • having ftl file in resource app after installation, for example /travel-demo/templates/pages/main.ftl
  • creating same file in same path in filesystem (in resources folder).
  • will immediately overwrite file in resource app and there is no way to open original file, copy original code and paste it to new file in file system. (since there is also no option to download original ftl file from resources app for easy editing = not nice).
  • so decided to rename just created file in filesystem to main2.ftl, now I may see original (both) file in resource app, open original one, copy code, paste to main2.ftl in filesystem (do code changes) and rename this file back to main.ftl.
  • maybe I forget to close file preview in resource app in prev step, and now when I switch back to magnolia (after changes and renaming file in filesystem), I immediately got error message which asked me to reload but after that I see only "Whoops" screen. Only way after is to restart instance!

log: http://pastebin.com/79Cefw7r


Generated at Mon Feb 12 06:48:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.