[MGNLUI-1860] Upload Failed. The directory does not exist or is not writeable ! Created: 22/Jul/13 Updated: 16/Aug/13 Resolved: 26/Jul/13 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | dialogs |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.2, 5.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Kevin Coshic | Assignee: | Magnolia International |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 5.0, 5.0.1, Dialog, Exception, Magnolia, UI, Upload | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
ENV 1 [ Java 7 + NetBeans 7.3 ] - ENV 2 [ Java 7 + Eclipse Kepler ] |
||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| 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
|
||||||||||||
| Date of First Response: | |||||||||||||
| Description |
|
When I try to upload an image with the info.magnolia.ui.form.field.definition.BasicUploadFieldDefinition Field the next exceptions are thrown: com.vaadin.server.UploadException and java.lang.IllegalArgumentException: The directory does not exist or is not writeable! IMPORTANT NOTE: I have admin permissions to write any folder. Also, I'm using the MGNL Project Archetype. This exception is produced only in my Development Environment, exactly in the MGNL Webapp that I use to create my templates. |
| Comments |
| Comment by Kevin Coshic [ 22/Jul/13 ] |
|
SOLUTION: For some reason the MAGNOLIA.UPLOAD.TMPDIR is no created by default. So, the solution for me was create the MAGNOLIA_HOME/tmp" FOLDER and problem solved. Greetings ! |
| Comment by Mikaël Geljić [ 25/Jul/13 ] |
|
Hi Kevin, Glad you found the solution to your problem, I'll check if we can prevent that in the future somehow. |
| Comment by Kevin Coshic [ 25/Jul/13 ] |
|
jejeje ! I'm sorry, I marked the ticket "in progress" accidentally. Greetings ! |
| Comment by Magnolia International [ 26/Jul/13 ] |
|
Fix committed. Currently having a quick look to see if we have a better replacement for our Path.get*Directory() methods which are somewhat flaky (doesn't check for existence or writability of the directory, for instance - just tries to create it silently) |
| Comment by Magnolia International [ 26/Jul/13 ] |
|
Will create a follow-up ticket with possible improvements to the Path class. |