-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when attempting to submit dataset spreadsheet via webpage #862
Comments
The /datasetSubmission/upload page has been fixed to allow dataset spreadsheet upload by authors again. This fix involved correcting the structure of the rendered HTML code by the datasetSubmission/upload view class. An email to the curators is now sent using the MailService component. This involved creating a new function for sending HTML emails with attachments. There is a new acceptance test to check spreadsheet upload functionality. This closes #862.
I am still seeing a bug on this page in the Jan20 version of the staging server, the difference is that it now gives this error message: Swift_TransportExceptionConnection could not be established with host :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known /var/www/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(261) 249 } 250 $options = []; 251 if (!empty($this->params['sourceIp'])) { 252 $options['socket']['bindto'] = $this->params['sourceIp'].':0'; 253 } 254 255 if (isset($this->params['stream_context_options'])) { 256 $options = array_merge($options, $this->params['stream_context_options']); 257 } 258 $streamContext = stream_context_create($options); 259 260 set_error_handler(function ($type, $msg) { 261 throw new Swift_TransportException('Connection could not be established with host '.$this->params['host'].' :'.$msg); 262 }); 263 try { 264 $this->stream = stream_socket_client($host.':'.$this->params['port'], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $streamContext); 265 } finally { 266 restore_error_handler(); 267 } 268 269 if (!empty($this->params['blocking'])) { 270 stream_set_blocking($this->stream, 1); 271 } else { 272 stream_set_blocking($this->stream, 0); 273 } Stack Trace
2022-01-20 18:11:10 nginx/1.21.3 Yii Framework/1.1.20-yii2-2.0.15.1-migration
|
reopen as still a problem on staging. |
@only1chunts This is working on the staging server now with the spreadsheet sent as an attachment in the email. Note that the attachment does not have the original Excel filename though. |
Yes it sends the attachment, but as you noted it does mess up the file name, including removing any file extension which means its difficult to open it. If there is an easy fix to this it would be great to have it now, but if its something that will take a while then we can go "live" with it for now and add it to the backlog for later. |
Clicking "Upload New Dataset" button before selecting a file is also a problem on the live server. It's because the file selector and |
Describe the bug
Error message returned when attempting to submit a prepared spreadsheet submission "Upload failed. Please contact [email protected]"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the website is suposed to send the spreadsheet to [email protected] AND send a confirmation/thank you letter to the submitter.
** Additional information **
Ticket created from smoke testing question "are automatic emails being sent on dataset submission" in #747
The text was updated successfully, but these errors were encountered: