[MAGNOLIA-1150] [wf] Files uploaded via dialog during workflow are not available. 404 is returned instead. Created: 16/Oct/06  Updated: 23/Jan/13  Resolved: 17/Oct/06

Status: Closed
Project: Magnolia
Component/s: workflow
Affects Version/s: 3.0 RC3
Fix Version/s: 3.0 RC3

Type: Bug Priority: Major
Reporter: Chris Miner Assignee: Philipp Bärfuss
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
Date of First Response:

 Description   

Steps to reproduce:
1. add a file upload to the workflow editDialog.
2. activate a page
3. double click on the resultant workflow item in inbox.
4. upload a file
5. save the dialog
6. repeat step 3
7. click on the link in the dialog for the file uploaded in step 4. You get a 404 error instead of the expected file.



 Comments   
Comment by John Mettraux [ 17/Oct/06 ]

I don't understand that one.

How can it be considered a bug ?
How can it be assigned to Nicolas ?
Why can't we assign tasks to Chris ?

It's somehow not a workflow issue : it's a dialog / storage issue. One has only to make sure the right resource URL is stored in the workitem right after the upload.

Comment by Philipp Bracher [ 17/Oct/06 ]

All urls for resources stored in jcr (like the images) are normally pointing to the website repository. This is creating a 404 if the image was not reachable under this path (you saved it into the workflow repository)

But you can create a URLToRepository mapping (see config-->server/RepositoryToURLMapping) to point for example all urls starting with /workflow/ to the workflow item store.

To close the cycle you need to subclass the DialogFile to calculate the proper url for displaying it in the dialog.

This is working nicely since 3.0 RC3

Comment by Chris Miner [ 17/Oct/06 ]

The core problem relates to how to use dialogs to edit content in custom repositories. Adding an entry under URI2RepositoryMapping of handlePrefix = "" repository = Store and URIPrefix = /my-workflow handled my problem. One could consider this a configuration problem rather than a bug.

Comment by Boris Kraft [ 18/Oct/06 ]

And we can't assign tasks to Chris because he is no committer

Generated at Mon Feb 12 03:24:08 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.