Brendiem / ala-citizenscience

Automatically exported from code.google.com/p/ala-citizenscience
0 stars 1 forks source link

Error creating theme from default theme download #121

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 stepha...@gaiaresources.com.au on 8 Mar 2012 at 2:49

GoogleCodeExporter commented 9 years ago
This appears to be an issue with file permissions set by the graphical zip 
utility in Ubuntu.  Command-line zip works fine.

Cannot reproduce in Windows.

Original comment by stepha...@gaiaresources.com.au on 8 Mar 2012 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by stepha...@gaiaresources.com.au on 8 Mar 2012 at 4:43

GoogleCodeExporter commented 9 years ago

Original comment by stepha...@gaiaresources.com.au on 8 Mar 2012 at 4:44

GoogleCodeExporter commented 9 years ago

Original comment by stepha...@gaiaresources.com.au on 8 Mar 2012 at 5:32

GoogleCodeExporter commented 9 years ago

Original comment by stepha...@gaiaresources.com.au on 9 Mar 2012 at 1:17

GoogleCodeExporter commented 9 years ago

Original comment by stepha...@gaiaresources.com.au on 4 May 2012 at 8:23