Closed (fixed)
Project:
Open Atrium
Version:
7.x-2.x-dev
Component:
Files App
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2015 at 18:09 UTC
Updated:
20 Jul 2015 at 15:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mpotter commentedSounds like maybe something happened during the update. Did you follow the upgrade procedure and run updates and also revert Features? I am not able to reproduce this on our sites here.
Seems like one of the tricky bits on Pantheon is that it doesn't automatically revert any features, so you might need to do that from the UI. I think the problem is the feature is still looking for a news section instead of the new document section.
Comment #2
shawn_smiley commentedI did run update.php and also reverted all features via the UI before creating the new Files section.
We don't have any production content in our new OA instance yet so I may just wipe the DB and reinstall to see if that resolves the problem.
Comment #3
hefox commentedDo you have file permissions set up correctly to allow adding files? It looks like it's getting to stage to create document stage without any files. Does media dialogue work for you in other settings (e.g. adding files via field on node/add/oa-wiki-page)?
Comment #4
shawn_smiley commentedWiping the DB, clearing the files directory, and reinstalling didn't solve the error. :-(
I am able to upload files so it doesn't seem to be a permissions issue. For example, I can upload banner images for the space.
Comment #5
hefox commentedAre there any additional errors? The document one is bit of a red herring -- it's in submit, but the issue is the form never gets a list of files. If can observe network traffic (using developer tools), what does the full path akin to: oa-files/upload/multi/[NUMBERSSS]/js-return?render=oa-files-popup&menu_parent=[SOME NUMBER] look like?
Comment #6
shawn_smiley commentedHere is what I've been able to determine:
https://oa2.example.com/plupload-handle-uploads?plupload_token=m7hUrGqo3...
No other errors, warnings, or messages are logged/displayed.
The above error also occurs when selecting an existing image from the Media library (uploaded via /admin/content/file).
Comment #7
shawn_smiley commentedAlso note that things do work correctly if I create a "Document" rather than a "File" in the File section. So I can attach files as documents and just uncheck the "Show page instead of file?" checkbox.
Comment #8
hefox commentedSo the key url is
https://oa2.example.com/oa-files/upload/multi/97+/js-return
What happens when you visit that url directly?
These are the relevant code segments
Does the user have ability to view file 97? Is $files getting passed to the form correctly?
Comment #9
shawn_smiley commentedSo the call to https://oa2.example.com/oa-files/upload/multi/97+/js-return returns the following HTML (see attached screenshot).
Going to /file/97, does return the uploaded image.
I'll have to download/setup the site locally in order to dig into the actual form submission data with a debugger. I'll post more once I've done that.
I'm testing all of this as a user with full admin permissions on the site.
Comment #10
bdselves commentedI am also seeing the same issue on 2.42 as shown in the screen shot above (Screen Shot 2015-06-25 at 2.12.43 PM.png). I've tried a fresh install on Pantheon and set up a directory in the 'Files & Folders' area and tried uploading a file. Please see the attached screen shot to show the error notice. Thanks.
Comment #11
mpotter commentedI have reproduced this on Pantheon. We are investigating.
Comment #12
hefox commentedSo.. on my local and our development server, /oa-files/upload/multi/70+/js-return gets changed to /oa-files/upload/multi/70 /js-return and so we were checking for fids based on exploding on empty string. this isn't the case on pantheon.
Changed it to both check for + and ' '. Not sure what causes this (server config? pantheon patch?)
Comment #13
bdselves commentedHi Hefox,
Could you elaborate please on what you did to fix this.
Thank you.
Comment #14
hefox commentedI commited a fix for it to oa_files module
Comment #15
bdselves commentedThanks for your help - I am a bit new to this but can now see the commit :)