This repository was archived by the owner on Nov 22, 2022. It is now read-only.
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
Error creating theme from default theme download #121
Open
Description
What steps will reproduce the problem?
1. Go to Admin -> Manage Portal -> Edit Theme
2. Click the Download link next to Default BDRS Theme (vanilla) and download
the zip file.
3. Extract the contents of the file.
4. Make a change in the JSON configuration.
5. Re-zip the contents.
6. Upload the zip file in Admin -> Manage Portal -> Manage Files and copy the
uuid
7. Go to Admin -> Manage Portal -> Edit Theme
8. Click on "Add Theme"
9. Enter a name, paste the uuid in the proper place, and click the Is Active?
box and click Save.
What is the expected output? What do you see instead?
You will get a funny looking page with some errors at the top instead of
deactivating the theme or not saving it.
Error messages are:
Cannot find managed file with UUID: dccd4887-28a6-46dc-80a6-7fd559c5f400
Theme Test Theme not updated due to error: Unable to create directory path:
[bdrsFileStore]/au/com/gaiaresources/bdrs/model/theme/Theme/670/raw/templates/ad
min
The stactrace is:
java.io.IOException: Unable to create directory path:
[bdrsFileStore]/au/com/gaiaresources/bdrs/model/theme/Theme/669/raw/templates/ad
min
at au.com.gaiaresources.bdrs.util.ZipUtils.decompressToDir(ZipUtils.java:67)
at au.com.gaiaresources.bdrs.service.theme.ThemeService.revertToZip(ThemeService.java:270)
at au.com.gaiaresources.bdrs.service.theme.ThemeService.revertTheme(ThemeService.java:674)
at au.com.gaiaresources.bdrs.controller.theme.ThemeController.editSubmit(ThemeController.java:534)
at au.com.gaiaresources.bdrs.controller.theme.ThemeController.admin_editSubmit(ThemeController.java:477)
at au.com.gaiaresources.bdrs.controller.theme.ThemeController$$FastClassByCGLIB$$c80ef757.invoke(<generated>)
Original issue reported on code.google.com by [email protected]
on 8 Mar 2012 at 2:49