https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292019-12-19T06:46:13ZRedmineRedmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=953802019-12-19T06:46:13ZGo MAEDA
<ul></ul><p>Do you mean that emails or attachments are deleted from the inbox of Outlook when you drag and drop emails or files to Redmine?</p>
<p>I think Redmine cannot do anything about it because Redmine just receives dropped things and cannot control the drag source and its data. Probably emails or attachments are deleted by Outlook, not Redmine.</p> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=953842019-12-19T08:26:40ZAndrey Sergeev
<ul></ul><p>yes, that's right.<br />for example when i drag and drop emails to my desktop , they are not deleted from outlook, they copied.<br />I think it is failure, and i would like to know how it could be fixed.<br />I think the problem is in Redmine. What are preventions can be made to solve this issue?</p>
<p>Thanks in advance.</p> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=953862019-12-19T09:26:58ZGuillermo ML
<ul></ul>The problem has been reported with other web based apps:
<ul>
<li><a href="https://support.google.com/chrome/thread/14094827?hl=en" class="external">Drag drop from MS Outlook to Chrome remove file</a></li>
<li><a href="https://answers.microsoft.com/en-us/msoffice/forum/all/drag-and-drop-works-however-deletes-email-can-we/865f60c3-7980-4465-8a19-4d60b0ae5aba?rtAction=1575537469456&page=2" class="external">Drag and drop WORKS. However, deletes email. Can we fix?</a></li>
</ul>
<p>Could be that JQuery's upload module has bad behavior when <a href="https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect" class="external">_dropEffect_</a> is not set? (see the second link for a posible solution)</p> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=953872019-12-19T10:08:16ZAndrey Sergeev
<ul></ul><p>Yes, but i'm not a web-developer. I have users, that have faced with such problem. I don't know where i can use this script (just apply it to google chrome?)<br />If it can be turned off (JQuery script in google chrome) would appreciate for help.</p> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=957642020-01-17T03:05:00ZYuichi HARADA
<ul></ul><p>Set "copy" to <code>dropEffect</code> in the following patch. However, I don't own Outlook, so please check this patch, someone.</p>
<pre><code class="diff syntaxhl"><span class="gh">diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js
index dd7a8e30e..39315d8f8 100644
</span><span class="gd">--- a/public/javascripts/attachments.js
</span><span class="gi">+++ b/public/javascripts/attachments.js
</span><span class="p">@@ -185,6 +185,7 @@</span> handleFileDropEvent.target = '';
function dragOverHandler(e) {
$(this).addClass('fileover');
blockEventPropagation(e);
<span class="gi">+ e.dataTransfer.dropEffect = 'copy';
</span> }
function dragOutHandler(e) {
<span class="p">@@ -195,6 +196,7 @@</span> function dragOutHandler(e) {
function setupFileDrop() {
if (window.File && window.FileList && window.ProgressEvent && window.FormData) {
+ $.event.fixHooks.dragover = { props: [ 'dataTransfer' ] };
$.event.fixHooks.drop = { props: [ 'dataTransfer' ] };
$('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(function() {
</code></pre> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=959452020-01-29T02:41:05ZSimon Hori
<ul></ul><p>Thanks for the patch! I believe I added the two lines properly to the js but unfortunately it is still deleting the item from my Outlook and this error is logged when mouse over to the drop area.</p>
<pre>
attachments.js?1580264756:193 Uncaught TypeError: Cannot set property 'dropEffect' of undefined
at HTMLDivElement.dragOutHandler (attachments.js?1580264756:193)
at HTMLDivElement.dispatch (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js?1571477570:3)
at HTMLDivElement.r.handle (jquery-1.11.1-ui-1.11.0-ujs-3.1.4.js?1571477570:3)
</pre> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=959462020-01-29T03:07:51ZYuichi HARADA
<ul><li><strong>File</strong> <a href="/attachments/24713">32656-drop-effect.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/24713/32656-drop-effect.patch">32656-drop-effect.patch</a> added</li></ul><p>Simon Hori wrote:</p>
<blockquote>
<p>Thanks for the patch! I believe I added the two lines properly to the js but unfortunately it is still deleting the item from my Outlook and this error is logged when mouse over to the drop area.</p>
<pre>
attachments.js?1580264756:193 Uncaught TypeError: Cannot set property 'dropEffect' of undefined
at HTMLDivElement.dragOutHandler (attachments.js?1580264756:193)
</pre>
</blockquote>
<p>Thank you for confirming the patch. It looks like the patch has been applied to a different line. Is the patch applied properly?<br />I attached a patch (same as <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Drag and drop objects from Outlook to Redmine deletes the objects (Closed)" href="https://www.redmine.org/issues/32656#note-5">#32656-5</a>).</p> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=959472020-01-29T04:37:34ZSimon Hori
<ul></ul><p>Sorry, you are right. I changed a wrong line in `dragOutHandler` but it must be added to `dragOverHandler` as you wrote.</p>
<p>Now it works perfectly fine with my MS Outlook!!<br />No deletion occurred after a drag-drop. Thank you.</p>
<p>I hope this fix is included in the next version.</p>
<p>FYI: I confirmed with Redmine 3.4.12, MS Outlook 2010 and Chrome 79.0.3945.130 on Windows 10.</p> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=959482020-01-29T04:44:27ZGo MAEDA
<ul><li><strong>Subject</strong> changed from <i>Drag and drop letters from outlook to attachments redmine</i> to <i>Drag and drop objects from Outlook to Redmine deletes the objects</i></li><li><strong>Target version</strong> set to <i>4.0.7</i></li></ul><p>Simon Hori wrote:</p>
<blockquote>
<p>Now it works perfectly fine with my MS Outlook!!<br />No deletion occurred after a drag-drop. Thank you.</p>
</blockquote>
<p>Thank you for the test result. Setting the target version to 4.0.7.</p> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=959752020-01-30T05:29:22ZGo MAEDA
<ul><li><strong>Category</strong> set to <i>Attachments</i></li></ul> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=960102020-01-31T09:38:10ZCédric Berger
<ul></ul><p>I've Redmine 4 customers who find the actual behaviour very convenient:<br />When they drag an e-mail from Outlook to Redmine, the e-mail disappear from Outlook, while is actually what they want, because the e-mail has been "processed" and should disappear from the Inbox.<br />Is there a way to keep both behaviour optional?<br />Cédric</p> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=960112020-01-31T09:42:02ZCédric Berger
<ul></ul><p>Maybe if the shift key is maintained during the drag+drop, the original email is deleted, or something like that?</p> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=966202020-03-07T09:23:54ZMatthias Kastner
<ul></ul><p>Cédric Berger wrote:</p>
<blockquote>
<p>Maybe if the shift key is maintained during the drag+drop, the original email is deleted, or something like that?</p>
</blockquote>
<p>Any automatic deletion is actually unwanted behaviour for most users. Regardless of the key stroke combination pattern. If the user wants to delete an Email from his inbox, he should always do that manually by using outlook‘s native delete functionality or hit [DEL]</p> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=966572020-03-09T10:49:47ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed the patch. Thank you for your contribution.</p> Redmine - Defect #32656: Drag and drop objects from Outlook to Redmine deletes the objectshttps://www.redmine.org/issues/32656?journal_id=966592020-03-09T10:57:43ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>