39265

Permissions.Insert.setSendNotificationEmails(false) does not work anymore?

Question:

I have been using the feature of preventing notification emails when transferring ownership of files using Google Drive Java API. It has worked nicely but now recently the notification started to appear. Has something changed why the API does not work anymore. Is there a way to block the emails in some other way or what to do here?

The code snippet looks like this, where I disable notification emails:

Insert insert = service.permissions().insert(fileId, newPerm); insert.setSendNotificationEmails(false); newPerm = insert.execute();

I have tested with AppEngine 1.9.4 & 1.9.5 and also several Drive API versions 1.16, 1.17 and also latest 1.18-rc

Answer1:

<strong>Update</strong>: This has now been fixed.

Yes, this is a change in behavior from a recent change push that is independent of API version. At this time there isn't any workaround that will let you both transfer ownership and not send an email.

The Drive SDK team is aware of it and are investigating how to put in a better solution right now. Unfortunately we can't give you an ETA yet.

Recommend

  • C++ stl pop doesn't return [closed]
  • How to remove last utf8 char of a python string
  • Unable to set a breakpoint on main while debugging a program compiled with Rust 1.10 with GDB
  • How to Divide an array on c#?
  • how to query for min or max inet/cidr with postgres
  • d3.js selection conditional rendering
  • Use default value of a column in stored procedures
  • INSERT EXEC Statement cannot be nested [duplicate]
  • Responsive left sidebar open close
  • Returning the auto incrementing value after an insert using slick
  • Prevent page break in text block with iText, XMLWorker
  • C++ friend class std::vector
  • How can Delete be both a DDL and a DML statement
  • SyntaxError: (irb):26: both block arg and actual block given
  • jQuery: add elements until a particular height is reached
  • Enabling DTD support in Sql Server
  • SAXReader not re-ecape characters
  • Adding elements to a huge XML file
  • close() was never explicitly called on database
  • Eliminate partial duplicate rows from result set
  • Parse a date string in a specific locale (not timezone!)
  • Transactional Create with Validation in ServiceStack Redis Client
  • How to get address from latitude and longitude android google map v2 [duplicate]
  • PHP - How to update data to MySQL when click a radio button
  • jQuery show() function is not executed in Safari if submit handler returns true
  • javascript inside java/jsp code
  • WinForms: two way TextBox problem
  • Join two tables and save into third-sql
  • How to handle AllServersUnavailable Exception
  • R: gsub and capture
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Compare two NSDates in iPhone
  • Comma separated Values
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • How to disable jQuery.jplayer autoplay?
  • Acquiring multiple attributes from .xml file in c#
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • How can I remove ASP.NET Designer.cs files?
  • java string with new operator and a literal
  • How to load view controller without button in storyboard?