PDA

View Full Version : attachments exist on server but download as empty files


malberghini
05-02-2008, 10:05 PM
I sent a file with an attachment to our helpdesk to test behavior.

The link at the bottom of the ticket downloads a correctly names, 0K file:

http://helpdesk/cerb4/index.php/files/1227/test attachment.mp3

The direct link to the actual file downloads a valid, but incorrectly named file:
http://helpdesk/cerb4/storage/attachments/012/1227

Hildy
05-02-2008, 11:44 PM
That's really odd, Mike... what build are you on?

rfarnell
05-04-2008, 07:43 PM
I had a similar with 0Kb attachments and it turned out to be a permissions misconfiguration that had somehow changed.

malberghini
05-05-2008, 04:20 PM
I'm on Version 4.0 RC1 (Build 584)

Hildy
05-05-2008, 06:09 PM
I suppose it's possible that the permissions are set up such that the web user has write access to the attachments directories, but not read access (though that would be strange). Can you check those permissions, Mike, and also send us the output from http://localhost/cerberus4/index.php/debug/check and http://localhost/cerberus4/index.php/debug/report ?

malberghini
05-05-2008, 07:05 PM
The www user has read/write access to the attachment directories.

check says we are compatible

report is as follows:

[Cerberus Helpdesk] App Build: 584
[Cerberus Helpdesk] Devblocks Build: 210
[Cerberus Helpdesk] URL-Rewrite: NO

[Privs] libs/devblocks/tmp: 0774
[Privs] libs/devblocks/tmp/templates_c: 0774
[Privs] libs/devblocks/tmp/cache: 0774
[Privs] storage/attachments: 0774
[Privs] storage/mail/new: 0774
[Privs] storage/mail/fail: 0774
[Privs] storage/indexes: 0774

[PHP] Version: 5.1.6
[PHP] OS: Linux (Linux herald.isye.gatech.edu 2.6.18-8.1.14.el5 #1 SMP Tue Sep 25 11:45:53 EDT 2007 i686)
[PHP] SAPI: apache2handler

[php.ini] safe_mode:
[php.ini] max_execution_time: 0
[php.ini] memory_limit: 16M
[php.ini] file_uploads: 1
[php.ini] upload_max_filesize: 2M
[php.ini] post_max_size: 8M

[PHP:Extension] MySQL: YES
[PHP:Extension] PostgreSQL: NO
[PHP:Extension] MailParse: YES
[PHP:Extension] IMAP: YES
[PHP:Extension] Session: YES
[PHP:Extension] PCRE: YES
[PHP:Extension] GD: YES
[PHP:Extension] mbstring: YES
[PHP:Extension] XML: YES
[PHP:Extension] SimpleXML: YES
[PHP:Extension] DOM: YES
[PHP:Extension] SPL: YES

[Setting] HELPDESK_TITLE: ISyE Helpdesk
[Setting] DEFAULT_REPLY_FROM: helpdesk at isye dot gatech dot edu
[Setting] DEFAULT_REPLY_PERSONAL: ISyE Helpdesk
[Setting] SMTP_HOST: mail.isye.gatech.edu
[Setting] SMTP_PORT: 25
[Setting] SMTP_ENCRYPTION_TYPE: None

[Stats] # Workers: 14
[Stats] # Groups: 11
[Stats] # Tickets: 11111
[Stats] # Messages: 35126

[Database] Tables:
* address
* address_auth
* address_seq
* address_to_worker
* attachment
* attachment_seq
* bayes_stats
* bayes_words
* bayes_words_seq
* category
* cerb_event_point
* cerb_extension
* cerb_extension_point
* cerb_patch_history
* cerb_plugin
* cerb_property_store
* cerb_session
* community
* community_session
* community_tool
* community_tool_property
* contact_org
* contact_org_seq
* crm_campaign
* crm_campaign_bucket
* crm_opp_comment
* crm_opportunity
* dashboard
* dashboard_view
* dashboard_view_action
* fnr_external_resource
* fnr_query
* fnr_query_seq
* fnr_topic
* generic_seq
* group_setting
* kb_article
* kb_article_to_category
* kb_category
* kb_seq
* mail_routing
* mail_template
* message
* message_content
* message_header
* message_note
* message_note_seq
* message_seq
* pop3_account
* requester
* setting
* sla
* tag
* tag_index
* tag_to_content
* task
* task_seq
* team
* team_routing_rule
* ticket
* ticket_audit_log
* ticket_audit_log_seq
* ticket_comment
* ticket_comment_seq
* ticket_field
* ticket_field_value
* ticket_rss
* ticket_seq
* worker
* worker_mail_forward
* worker_pref
* worker_to_team
* worker_workspace_list