Slashdot Mirror


New Security Concerns Raised For Google Docs

TechCrunch is running a story about three possible security issues with Google Docs recently uncovered by researcher Ade Barkah. It turns out that an image embedded into a protected document is given a URL which is not protected, allowing anyone who knows or guesses it to see the image regardless of permissions or even the existence of the document. Barkah also pointed out that once you've shared a document with another person, that person can see diagram revisions from any point before they gained access, forcing you to create a new document if you need to redact something. The last issue, the mechanics of which he disclosed only to Google, affects the document-sharing invitation forwarding system, which can allow somebody access to your documents after you've removed their permissions. Google made a blog post to respond to these concerns, saying that they "do not pose a significant security risk," but are being investigated. We previously discussed a sharing bug in Google Docs that was fixed earlier this month.

92 comments

  1. ...purge images from your account...? by iminplaya · · Score: 1

    Let's keep it simple, eh? Purge the whole document. There. problem solved.

    --
    What?
    1. Re:...purge images from your account...? by ColdWetDog · · Score: 2, Funny

      Let's keep it simple, eh? Purge the whole document. There. problem solved.

      Oh stop being difficult. Just use a sharpie.

      --
      Faster! Faster! Faster would be better!
    2. Re:...purge images from your account...? by Linker3000 · · Score: 2, Informative

      Careful. The use of Sharpies might raise eyebrows for some..

      --
      AT&ROFLMAO
  2. Access after you revoked permissions = a copy by KiloByte · · Score: 5, Insightful

    Eh, retaining access to a copy of the document after the original author revoked permission is certainly not a security issue -- at least, not unless you believe in DRM.

    Being able to read future versions, like a reverse of the first bug of the article, would be bad, but the article doesn't suggest this is the case.

    --
    The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
    1. Re:Access after you revoked permissions = a copy by morgan_greywolf · · Score: 1

      Agreed. Otherwise, all known operating systems have this "bug" as well, since if you have a file in $HOME with global read permissions and then subsequently revoke those permissions, if another user copied that file before you revoke those permissions, they still have access to that particular version of the file, or, more accurately, that copy of the file.

      Hell, reality has the same "bug": If a book publisher publishes a book, and then later it is discovered that the book contains content that the general public shouldn't have, tough cookies. The number of books sold will still exist, plus any copies that are later made from those originally sold, illegal or not.

      Does anyone know how to patch reality?

      Sorry, but those are the breaks. Unless, as you say, you're going to DRM everything, you're not going to be able to control copies of anything published.

    2. Re:Access after you revoked permissions = a copy by ssintercept · · Score: 3, Informative

      Does anyone know how to patch reality?

      DRUGS
      lots and lots of delicious mind-bending drugs!

      --
      "You can kill the revolutionary, but you can't kill the revolution."-- Fred Hampton
    3. Re:Access after you revoked permissions = a copy by WCguru42 · · Score: 2

      Sorry, but those are the breaks. Unless, as you say, you're going to DRM everything, you're not going to be able to control copies of anything published.

      That's quite possibly the scariest thing I've read in a while concerning content. I can easily see publishing companies following this logic and trying to slap DRM onto everything ever sold.

      --
      "Educate the mind but never at the expense of the soul."~Blessed Basil Moreau
    4. Re:Access after you revoked permissions = a copy by John+Hasler · · Score: 2, Insightful

      > Eh, retaining access to a copy of the document after the original author revoked
      > permission is certainly not a security issue -- at least, not unless you believe in DRM.

      This is similar to changing the lock on your apartment when a friend to whom you have given a key tells you that she has lost it. Example: You give someone access to your confidential document on Google. He later informs you that his account has been compromised but that the miscreants may not have had time to use the credentials yet. You revoke his access in hopes of protecting your secrets but the miscreants get at them anyway using this bug.

      > Being able to read future versions, like a reverse of the first bug of the article,
      > would be bad, but the article doesn't suggest this is the case.

      The article does not make it clear whether it is or not. I agree that the bug is much more serious if it is.

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    5. Re:Access after you revoked permissions = a copy by peragrin · · Score: 2

      where have you been for the past 10 years?

      they already do try this.

      --
      i thought once I was found, but it was only a dream.
    6. Re:Access after you revoked permissions = a copy by yukk · · Score: 1

      > Eh, retaining access to a copy of the document after the original author revoked > permission is certainly not a security issue -- at least, not unless you believe in DRM.

      This is similar to changing the lock on your apartment when a friend to whom you have given a key tells you that she has lost it. Example: You give someone access to your confidential document on Google. He later informs you that his account has been compromised but that the miscreants may not have had time to use the credentials yet. You revoke his access in hopes of protecting your secrets but the miscreants get at them anyway using this bug.

      Nono, it's more like giving the keys to your Toyota to a friend and then when you buy a Porsche, they can still drive the old Toyota but not the new Porsche. Except it's not really like that at all because once they've had access to the document they can make a copy of that version and staple it to a powerpole for all the control you have of copies of your document. This is just common sense. Heck, maybe they have an eidetic memory. How are you expecting to expunge their memorised copy ?

      --
      The trouble with the rat race is that even if you win, you're still a rat." Lily Tomlin
    7. Re:Access after you revoked permissions = a copy by mysidia · · Score: 2, Informative

      Agreed. Otherwise, all known operating systems have this "bug" as well, since if you have a file in $HOME with global read permissions and then subsequently revoke those permissions, if another user copied that file before you revoke those permissions, they still have access to that particular version of the file, or, more accurately, that copy of the file.

      However, if you 'chmod 700 $HOME', you bet it is a bug if they can still access that file in an old state (not the copy they made)!

      The issue here is, if the permission is revoked, they might have access to a copy they made, Google docs shouldn't be allowing access to the original anymore, except if they actually did create a copy on their own account..

      i.e. Google docs shouldn't help them get access to a document they lost permission to.

      Hell, reality has the same "bug": If a book publisher publishes a book, and then later it is discovered that the book contains content that the general public shouldn't have,

      Then they stop printing it. While sure people who bought it still get access to the data.

      It would be breach of contract if their contractor responsible for actually printing the books decided to keep printing and distributing them, after the revokation.

      This is the equivalent to the Google docs bug -- the author revokes permission to the document, Google docs, continues to make that same file available.

    8. Re:Access after you revoked permissions = a copy by mysidia · · Score: 2

      Sorry, but those are the breaks. Unless, as you say, you're going to DRM everything, you're not going to be able to control copies of anything published

      This is nonsense. Publishers have control, it's called copyright.

      If the viewer didn't go to the effort to ensure they made a copy, revokation of the permission should make it impossible for them to get a new copy of the old text.

    9. Re:Access after you revoked permissions = a copy by John+Hasler · · Score: 1

      > Except it's not really like that at all because once they've had access to the document
      > they can make a copy of that version and staple it to a powerpole for all the control
      > you have of copies of your document.

      Sometimes, when you ask someone not to make a copy of something, you can actually trust them not to do so. They may even be authorized and trusted to make copies and keep them confidential.

      > Heck, maybe they have an eidetic memory. How are you expecting to expunge their
      > memorised copy ?

      "Expunge"? The friend (or business associate) can be trusted with the contents of the document. It is the criminals who made off with his Google password that the secrets must be protected from by removing the friend's access.

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    10. Re:Access after you revoked permissions = a copy by Curunir_wolf · · Score: 4, Insightful

      Sorry, but those are the breaks. Unless, as you say, you're going to DRM everything, you're not going to be able to control copies of anything published

      This is nonsense. Publishers have control, it's called copyright.

      If the viewer didn't go to the effort to ensure they made a copy, revokation of the permission should make it impossible for them to get a new copy of the old text.

      Is this meant to be a troll? copyright has nothing to do with permission to access. If you give someone a copy of something, copyright means they are not allowed to copy it, not that you can take away their copy at a later time.

      I mean, what are you trying to say?

      --
      "Somebody has to do something. It's just incredibly pathetic it has to be us."
      --- Jerry Garcia
    11. Re:Access after you revoked permissions = a copy by Kaboom13 · · Score: 2, Informative

      So do you make a copy of every document you are given, on the chance your access might be revoked? Consider this scenario:

      I hire a new contractor. To do his job, he requires access to confidential company documents. I give him that access, along with an agreement that the information he can access is confidential, and should not be copied or shared. Now he CAN break that agreement at any time, and I probably would never find out. But it would be highly unprofessional to do so, and since our financial interests at least in theory align (good news for the company is generally good news for the employees, even if they don't see a direct benefit) he has no real reason to violate that policy.

      Now lets say I have to fire him cause he keeps slapping the secretary on the butt. Now he's pissed off at me, and the company, and probably looking for a job with my competitors. Now he is much more likely to violate that policy, and I have fewer avenues of redress if he does. After all, before he risked losing a job he already had, as well as guaranteeing a bad reference from me. So if he didn't make a copy before, he is going to now.

      It's true that if you give them access at one time, and can revoke it later, they have a window of opportunity to copy that information. But if that window closes, and they didn't seize the opportunity, that's one less person with your data.

      It's true there is no way to stop someone from keeping your data once they have access to it. But it doesn't happen automatically, they have to take the steps to do it. If you hire someone that's out to steal your data from the start, you are screwed. But chances are that's not the case.

    12. Re:Access after you revoked permissions = a copy by mysidia · · Score: 2, Interesting

      Is this meant to be a troll? copyright has nothing to do with permission to access.

      Copyright has everything to do with controlling when new copies can be made and distributed, which is the most common and likely way that information ever gets distributed.

      You may have the document containing the info, but copyright control means another company can't go into the business of distributing the document, without you having recourse, and possible criminal charges (depending on the circumstances).

      That's a pretty darn good deterrant and powerful control over the flow of information.

    13. Re:Access after you revoked permissions = a copy by stephanruby · · Score: 1

      Yeah, hopefully that contractor didn't click on the "Offline" link on google docs -- because that would have kept a local fresh copy of them on his computer, or if you gave him a work email address -- hopefully you didn't give him POP access to it on his own private computer.

  3. It's nothing, Shroedinger's logarithm beats that by Enleth · · Score: 5, Interesting

    Open a new spreadsheet, type in those formulas:

    A1: "=log10(1000)", format for two decimals - equals 3.00
    A2: "=trunc(3.00)", format for two decimals - equals 3.00
    A3: "=trunc(log10(1000))", format for two decimals - equals... *drumbeat* 2.00, that is, TWO POINT OH OH. Uh, oh.

    I decided to call it "Schroedinger's logarithm".

    A report on the Google Docs' technical support forum went unanswered...

    --
    This is Slashdot. Common sense is futile. You will be modded down.
  4. Re:It's nothing, Shroedinger's logarithm beats tha by TheRealMindChild · · Score: 4, Informative

    While I agree, this is a bug, I think underneath it is the 60 year old "representing floats in binary" issue. Chances are, underneath, log10(1000) ends up being 2.999999999999999, but with some workarounds/fixes that translate the result to 3.00. But in the case of trunc(log10(1000)), trunc is operating on 2.999999999999 before said workaround/fix kicks in, so it ends up being 2.00.

    Of course, this is just speculation.

    --

    "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
  5. Google's Right by John+Hasler · · Score: 5, Insightful

    Since nothing on the Web is secure anyway, what's the problem? If it's an important secret keep it off the Web.

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    1. Re:Google's Right by nurb432 · · Score: 1

      Or just don't rely on free services and host your own apps.

      --
      ---- Booth was a patriot ----
    2. Re:Google's Right by LO0G · · Score: 1

      When your corporation decides to move it's data processing to Google Apps, there is an expectation that your company's data remains private.

    3. Re:Google's Right by John+Hasler · · Score: 1

      And what penalties does Google agree to pay when your data do not remain private?

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    4. Re:Google's Right by Anonymous Coward · · Score: 1, Funny

      Hey, good point! And did you ever notice how many people send emails they don't want to become public, too?

      Not me anymore, though, nosiree! In fact, I'm gonna take my entire email system offline right now.

      Oh, wait...

    5. Re:Google's Right by basementman · · Score: 1

      In that case please email me your slashdot password.

    6. Re:Google's Right by theshowmecanuck · · Score: 4, Insightful

      I was thinking exactly the same thing. You put your stuff on somebody else's machine, in an environment that is by design exposed to the wild, wild Internet, and better yet the server URIs are advertised to the world because it is your hosts business model to advertise where the documents are (who could use them if they couldn't find them)... If people want to trust others with their important documents in that sort of a model, then it is business Darwinianism if critical documentation are leaked. And another thing, who knows if their personnel look through peoples documents for a laugh or just being nosey. Heck, government employees risk getting fired looking up personal data of prominent people when they run for office. If government employees will do that, why wouldn't people in data centres.

      Personally, I don't trust any of my documents to others to take care of. I like my stuff behind firewalls and not sitting directly on the on ramp to the Internet (had to get a car metaphor in somewhere). Mind you, I think this type of model will continue at least for a while if not forever, no matter what happens. People growing up now-a-days don't think as much about what personal information they post on the Internet, why would they care if their personal documents are managed by someone else that they don't know (other than a corporate logo).

      --
      -- I ignore anonymous replies to my comments and postings.
    7. Re:Google's Right by Anonymous Coward · · Score: 0

      http://www.google.com/apps/intl/en/business/details.html

      "When you trust your company's information to Google, you can be confident that your critical information is safe and secure."

    8. Re:Google's Right by John+Hasler · · Score: 1

      > In that case please email me your slashdot password.

      Just grab it off the Slashdot site.

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    9. Re:Google's Right by WCguru42 · · Score: 1

      "When you trust your company's information to Google, you can be confident that your critical information is safe and secure."

      Safe and Secure can mean many things. Maybe they're safe and secure from being lost forever in a harddrive crash. Maybe they're safe and secure for viewing anywhere with an internet connection. Marketing quotes don't mean all that much when it comes to technical specs.

      --
      "Educate the mind but never at the expense of the soul."~Blessed Basil Moreau
    10. Re:Google's Right by tassii · · Score: 4, Insightful

      Then your corporation is an idiot. Nothing on the web is private. At the very least, Google retains the rights to those documents. Anyone who puts their trust in corporate documents to a third party application gets everything they deserve.

      --
      "I drank what?" - Socrates
    11. Re:Google's Right by iminplaya · · Score: 1

      If you put anything on the net, that expectation is futile. Regardless of any written policy. It is simply impossible to verify. On the internet, there will always be the matter of trust.

      --
      What?
    12. Re:Google's Right by Anonymous Coward · · Score: 0

      It's be really cool if your "matter of trust" link went to a rick roll...

    13. Re:Google's Right by Demonantis · · Score: 1

      I agree to you point that the web is insecure. Google needs to inform people using Google Docs of this issue because some people will think its secure. Saying it does "not pose a significant security risk", suggests it is safe enough for people to use in all situations when it is not.

    14. Re:Google's Right by glenstar · · Score: 1

      The last company I worked with insisted on using GoogleDocs and Basecamp for all sorts of critical customer information, over my very loud protests. Considering the industry they are in (read: one with some pretty heavy regulation) I was absolutely baffled at this decision. Alas I was over-ruled because it was "cheaper" and "pretty secure". Then again this is a company where the CEO kept a list of passwords on their monitor and never, ever, ever locked their workstation (usually with Outlook prominently displayed and sitting un-watched on a conference table).

      I don't have a problem with GoogleDocs (or even, begrudgingly, Basecamp) per se... but it makes me crazy when companies put proprietary and/or sensitive information out on the cloud and don't even consider the security ramifications.

    15. Re:Google's Right by Anonymous Coward · · Score: 0

      I am always amazed at how easily management can choose to ignore security concerns even when it could mean loss of reputation, legal consequences, and even loss of the business.

      Easy and cheaper are what matters to them. It's a great short-term strategy but terrible if they plan on being in business after their house of cards crashes.

      I've seen it too many times and it bugs the hell out of me.

    16. Re:Google's Right by MobileTatsu-NJG · · Score: 1

      Since nothing on the Web is secure anyway, what's the problem?

      To use a car analogy: Anybody can break the window of your car, so why bother locking it?

      There's insecure and then there's insecure because of a stupid oversight. The problem is that it's easily fixed and should be.

      --

      "I like to lick butts!" by MobileTatsu-NJG (#32700246) (Score:5, Informative)

    17. Re:Google's Right by glenstar · · Score: 1

      The 'easier' part really bugs me. For example, a common scenario for using something like using GoogleDocs is when creating an RFP. The company will say that since many people will have their hands in the document that it makes sense for it to be in a collaborative environment. To which I say, maybe you don't NEED 10 people editing the document? Maybe what you need is a workflow that actually works and a document keeper who is charge of slipstreaming all changes. I can't even begin to count the number of times I have had hours of work wiped out by someone on my "team" who made edits in a section of the document they had no business editing.

    18. Re:Google's Right by Lordnerdzrool · · Score: 1

      While I agree that just about nothing on the web should have expected privacy, the statement on third party software is entirely baseless. Almost every corporation on the planet relies on third-party applications in some form, as I'm almost certain that the Mexican food restaurant not far from my house didn't write their own operating system for the computers they use and just did a very very good job at making it look like Windows XP. Rather, that probably is Windows XP, third-party software made by a third-party company related to the Mexican food restaurant only in the form of a software use license.

      They have reason to expect their privacy is protected by the writer of the software they use, and could easily raise a legal case in the event that the company, Microsoft, violates it.

    19. Re:Google's Right by TheRaven64 · · Score: 1

      When your corporation decides to move its data processing to Google Apps, there is an expectation that they will be sued for violating the data protection act, or its local equivalent.

      --
      I am TheRaven on Soylent News
    20. Re:Google's Right by whoop · · Score: 1

      This same "argument" comes up with every Google story on here. I really want to know just how many companies are out there that have this super-secret information that they turn over to some Web 2.0 company?

      Then again, it's probably just another Slashdot meme with no basis in reality. A company doing such a thing (too cheap to spend a few bucks for their own Google Apps box) deserves whatever becomes public.

  6. Here's how Gogle should respond by bogaboga · · Score: 2, Interesting

    My submission is that Google should respond in a classic Linux/KDE/Gnome format as follows:

    "While we acknowledge receipt of your concerns, the points raised are a feature of our product(s) and not bugs. Google takes security and privacy seriously and are committed to ensuring that all our users continue to enjoy products and services we provide."

    Or even better, they should label these so called security feature with a tag: "Won't fix." I know I will tagged a "troll" but I must say this: The "Won't fix" label, though not unusual in both the KDE and GNOME worlds, it is more common in the GNOME world than KDE. What it does not tell is whether there is lack of expertise or resources to fix it on both teams or it's because of incompetence, some other factor(s) or both.

    I know because I counted them the (Won't fixes) on the 19th of March this year: GNOME score: 121, KDE score: 43. You do the math.

    Now you go ahead and mod me down.

    1. Re:Here's how Gogle should respond by AceofSpades19 · · Score: 1

      Isn't Microsoft the one that calls bugs, features?

    2. Re:Here's how Gogle should respond by John+Hasler · · Score: 1

      > My submission is that Google should respond in a classic Linux/KDE/Gnome format...
      > ...
      > GNOME score: 121, KDE score: 43.

      Where are your numbers for Linux?

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    3. Re:Here's how Gogle should respond by Chlorine+Trifluoride · · Score: 0

      No, they are the ones that refuse to acknowledge the existence of the bugs.

    4. Re:Here's how Gogle should respond by rbcd · · Score: 1

      Why are you griping about GNOME and KDE here?

      The "wontfix" tag is generally taken to mean that the bug is not a problem that needs to be fixed. This might arise because the submitter has been misled by poor documentation. More often it is because the submitter wants the software to behave differently from what it does at the moment (eg. "the flight simulator in OpenOffice Spreadsheet doesn't work").

      If there is a lack of expertise, usually a "help"-type tag is used, never "wontfix". If "help" is unavailable or there is a lack of resources then the bug is generally just left open.

      This is standard stuff in FOSS development.

      If "wontfix" is being used entirely correctly, then all the number of "wontfix" bugs will do is reflect the number of bug submitters who are submitting bugs that aren't bugs in the first place. Thus, counting "wontfix" bugs tells you nothing useful; perhaps just the numbers of submitters who aren't paying attention.

      Therefore nothing can really be concluded by comparing GNOME and KDE "wontfix" bugs.

      A philosophy behind GNOME is that features are not added at the cost of usability. This is based on the idea that less complex software is easier to use. This will result in more "wontfix" bugs as developers decline to add new features. You are welcome to disagree with this philosophy. However, you can't draw any other conclusion about the quality of GNOME or KDE nor the attitude of their respective developers from this.

      I do think you should be modded down: because you are offtopic, you don't understand what "wontfix" means, you draw flawed conclusions because of this and because your gripe is therefore entirely unfounded.

    5. Re:Here's how Gogle should respond by Anonymous Coward · · Score: 0

      Are you sure you're not trolling? What I mean is you seem to be bending the issue at hand to give you a platform to bitch about quite another that happens to be your personal peeve.

      We're discussing security issues with Google Docs. That's a sub-sect of Bugs, not all Bugs. The bug-is-feature argument doesn't work as well when restricted to that sub-sect, though is entirely plausible outside of it.

      Linux/KDE/Gnome "Won't Fix" classifications are hard to defend for security issues, but how many of these are security issues? Again, security issues are a sub-sect of Bugs, not all Bugs. For example S3 UniChrome can't do 3D on Linux. And it probably never will because it'll be an enormous amount of work to fix it, while proportional demand for the fix just isn't there. That onboard-video chip has a finite lifespan. Most of those desktop users have moved to a dedicated video card, leaving only a handful of laptops stuck without 3D. By the time this bug could be fixed, nearly none of those laptops will be in use, so this is an entirely reasonable bug to tag "Won't Fix".

      Do you see what I mean? The simple existence of "Won't Fix" tags doesn't provide a foundation to cast aspersions like "What it does not tell is whether there is lack of expertise or resources to fix it on both teams or it's because of incompetence, some other factor(s) or both."

      It's also presumption to think Google doesn't use "Won't Fix" tags. They're closed source; they most probably do use "Won't Fix" tags on issues like the above that'll be fixed quicker by time, we simply don't get to see that level of detail. Whereas Linux/KDE/Gnome is developed naked.

      You seem to be trying to infer there's a double-standard in 'Linux people' complaining about security issues in Google Docs, and I'm suggesting you've reached too far to successfully support it.

    6. Re:Here's how Gogle should respond by shentino · · Score: 2, Informative

      FYI, "wontfix" is used on a routine basis for fedora.

      They also have "notabug" "notourbug" and "worksforme"

    7. Re:Here's how Gogle should respond by Anonymous Coward · · Score: 0

      That was Mozilla FYI.

    8. Re:Here's how Gogle should respond by Anonymous Coward · · Score: 0

      Linux/KDE/Gnome is developed naked.

      Thanks for that mental image :(

  7. Re:It's nothing, Shroedinger's logarithm beats tha by John+Hasler · · Score: 4, Funny

    You sure that isn't just an Excel compatibility feature?

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
  8. lol by Anonymous Coward · · Score: 0

    Security issues?
    You mean putting my documents on a public server that I don't even own could be unsafe?

    NO FUCKIN WAY

  9. Re:It's nothing, Shroedinger's logarithm beats tha by Enleth · · Score: 3, Insightful

    Just about any other application I checked this with (I recall trying OOo, Excel, KSpread, Gnumeric, python, Matlab [which purposely does not do any floating point error correction when not asked to] and Maxima) got it right, so I'm not really convinced that it's something common and hard to avoid. Well, maybe it is common if not corrected for, but definitely not hard to avoid and unheard of. Besides, other multiplies of 10 up to 10E+20 were fine, as were logarithms for several different bases and sets of values.

    --
    This is Slashdot. Common sense is futile. You will be modded down.
  10. Re:It's nothing, Shroedinger's logarithm beats tha by morgan_greywolf · · Score: 3, Informative

    Probably right. In 32-bit Python:

    math.log(1000,10)
    2.9999999999999996

    However, carrying out his example on OpenOffice.org Calc 2.2 results in 3.00. So while it's likely a binary representation problem, it's also probably a bug.

  11. Re:It's nothing, Shroedinger's logarithm beats tha by Anonymous Coward · · Score: 0

    The key is "format for two decimals". When you do that, 2.99999... becomes 3.00 naturally. Working with finite precision decimal numbers is tricky and you can always construct edge cases which "don't work right." To "avoid" the problem at a low level, you have to keep track of the precision of all functions and the accumulated error margin in the calculation. That's quite complicated to do and users wouldn't like a result of 2.999999 (+0.000005|-0.000004) anyway. The trunc() function amplifies the error range, so you would get something like 2.00 (+1.00|-0.00). In practice the person writing the functions just has to know about the problem and deal with it in an application specific manner.

  12. Re:fp by Anonymous Coward · · Score: 0

    fp = fag post?

  13. Re:It's nothing, Shroedinger's logarithm beats tha by morgan_greywolf · · Score: 1

    I agree with you in principle, but in actuality users expect things to behave in certain ways due to the proliferation of applications that have always handled in that way.

    he trunc() function amplifies the error range, so you would get something like 2.00 (+1.00|-0.00). In practice the person writing the functions just has to know about the problem and deal with it in an application specific manner.

    The trunc() function on Google Spreadsheet amplifies the error range, but it doesn't on OpenOffice.org Calc, and I would wager that it also doesn't on Excel.

  14. Google's own position on this by adrianmsmith · · Score: 4, Informative
    1. Re:Google's own position on this by Zarel · · Score: 3, Funny

      ...that's the third link in the summary.

      Oh! We're attempting to get people to RTFA by reposting it in the commentary and pretending it isn't TFA, are we? ;)

      --
      Want a high quality FOSS RTS game? Try Warzone 2100!
    2. Re:Google's own position on this by TheRaven64 · · Score: 1

      I suggest you may find this discussion informative on the issue.

      --
      I am TheRaven on Soylent News
  15. Re:It's nothing, Shroedinger's logarithm beats tha by Anonymous Coward · · Score: 0

    I'm sure that trunc() does have the very same "bug" in every other application which doesn't give error ranges. It's just a matter of finding the right edge case. Applications may have special code for certain common edge cases (like log10(10^x)), but generally the program simply can't know which side of the decision is the right one: Due to the limited precision and the error range, the result lies on both sides.

  16. Re:It's nothing, Shroedinger's logarithm beats tha by Enleth · · Score: 1

    No, it isn't. It was just for the visual effect of having the ".00" added, but the same thing happens with no forced formatting. Actually, I think that number formatting is not taken into account by Google Apps when doing actual calculations, not just displaying numbers.

    --
    This is Slashdot. Common sense is futile. You will be modded down.
  17. Re:It's nothing, Shroedinger's logarithm beats tha by Anonymous Coward · · Score: 0

    This works correctly in Excel... plus my file is securely not sitting in a public web server..oh! zing!

  18. Re:It's nothing, Shroedinger's logarithm beats tha by Anonymous Coward · · Score: 0

    This is why we should all switch to fixed point.

  19. Re:It's nothing, Shroedinger's logarithm beats tha by Anonymous Coward · · Score: 0

    Example edge case in OOo Calc: LOG(1000)/LOG(10+0,0000000000009/21) = 3.000000...
    TRUNC(...; 0) = 2.000000...

  20. Re:It's nothing, Shroedinger's logarithm beats tha by cdrguru · · Score: 1

    I believe the answer of 2.0 is correct.

    trunc() is not int(), it is more like floor(). It truncates the value to not the nearest but the lower integer value. Therefore, trunc(2.999999999) is 2 (integer), not 2.0. OK, you want to format it with decimal places, the answer is 2.00.

    I believe int(2.999999) will result in 3 as it is documented as a rounding operation.

    Note: I have no idea what the specifications for Google spreadsheets might be. However, if they are compatible with the implementation of int, trunc and floor in other languages, this is the result I would expect.

  21. Natural vs. decadic logarithm by Bananenrepublik · · Score: 1

    log(1000) / log(10) gives 2.99999999999999956 in double precision, i.e. google probably doesn't use the decadic log function (i.e. log10) in its implementation, but the natural logarithm instead.

  22. Business Security by StormReaver · · Score: 3, Insightful

    If anyone hosts anything more important than their grocery list on someone else's servers, then they deserve the inevitable security breaches that will follow. The entire nature of Google Docs (hosting your data on someone else's servers) is a security concern.

    The only way Google Docs isn't the dumbest thing your business can do is if your business uses the software on your own LAN/VPN, and hosts your own data on the same.

    There should be a Darwin Award for businesses, if there isn't already.

    1. Re:Business Security by RAMMS+EIN · · Score: 2, Insightful

      ``If anyone hosts anything more important than their grocery list on someone else's servers, then they deserve the inevitable security breaches that will follow. The entire nature of Google Docs (hosting your data on someone else's servers) is a security concern.''

      This is true, but that doesn't mean it's actually a bad idea. The thing you have to ask yourself as a decision maker is: how much control do I have over my own company's computers, how competent are my admins, etc. etc. Then you ask the same questions about a hosted service. And then you make your choice.

      If you have competent admins who you trust, the best choice may be to keep everything inside your company. However, it may well be that you don't have and/or cannot afford the necessary hardware and admins. At some point on the spectrum, hosting your documents elsewhere becomes the better choice.

      Remember, you never get absolute security. Your documents are at risk when you host them inside your company, and they are at risk when you host them outside your company. Like with all other risks, you have to account for this risk. Eventually, it becomes part of the cost-benefit analysis. And the cost-benefit analysis could swing either way: hosting internally or hosting externally.

      --
      Please correct me if I got my facts wrong.
    2. Re:Business Security by TheRaven64 · · Score: 4, Interesting

      I did some consulting a while ago for a company which had a senior manager (I can't remember his actual title; the boss / owner's second in command) who kept the customer database on a USB flash drive. This was stored as an Access database and was completely secure, because it was always carried with him and only inserted into a computer when someone needed to access it.

      Completely secure, of course, until he decided to go into business by himself, and emailed all of the company's customers with a quote for their business at a slightly lower rate than they were currently paying, and some quite unprofessional comments about his former employer.

      You can't have absolute security, but it seems a lot of people are very bad at working out exactly how much security they really do have. In many cases, it's a lot less than they think.

      --
      I am TheRaven on Soylent News
    3. Re:Business Security by noidentity · · Score: 1

      If anyone hosts anything more important than their grocery list on someone else's servers, then they deserve the inevitable security breaches that will follow.

      That's why we always host our sensitive documents on our own servers, with a robots.txt to ensure no search engines index them. Just wanted to show my agreement with your excellent advice!

    4. Re:Business Security by ekhben · · Score: 1

      From Google Apps terms of service:

      * 7.1 Obligations. Each party will: (a) protect the other party's Confidential Information with the same standard of care it uses to protect its own Confidential Information; and (b) not disclose the Confidential Information, except to affiliates, employees and agents who need to know it and who have agreed in writing to keep it confidential. Each party (and any affiliates, employees and agents to whom it has disclosed Confidential Information) may use Confidential Information only to exercise rights and fulfill obligations under this Agreement, while using reasonable care to protect it. Each party is responsible for any actions of its affiliates, employees and agents in violation of this Section.

      Google claims they are obliged to protect your data hosted through their premium service with the same standard of care they apply to their own confidential information.

      The decision to go with Google Apps or self-hosting should come down to three factors: (a) how well can you care for the data in-house; (b) how reliable do you think Google are at holding to their terms of service; and (c) how well do you think you'd fare in court if you had to challenge their obligations?

      For most small businesses, outsourcing email and document stores is a big win. There's a security risk inherent in putting data onto a server no matter where it's hosted, but if you do it yourself the overhead costs are very large -- you need a backup strategy, system maintenance, and technical support. Ask an aggregate provider to do it and the overhead costs are quite low.

  23. Re:It's nothing, Shroedinger's logarithm beats tha by Enleth · · Score: 1

    It would be all correct and perfect in the context of a programmer's work and when I'm programming (especially at a low level, with no access to arbitrary-precision math libraries etc.), I do indeed expect such results. But when I'm using a spreadsheet, I expect it to take care of such details, because they're irrelevant in this context and must not ever be exposed to the user.

    Now, I noticed that even in Python log(1000,10) does return 2.(9) - but log10(1000) returns 3. For a programming language, intended for use by programmers well aware of such quirks, this is exceptionally thoughtful and convinient, although Python programmers would do just fine without . For a spreadsheet, making log10(x) just an alias of log(x,10) without any additional logic that ensures a "sensible" result is just sloppiness.

    Even worse - Python at least tells me, that the result of log(1000,10) is 2.(9), while Google Docs shows it as 3.0. The exact same 3.0 as if I just typed it in. As far as I can see, there's no way to force it to display the real value of 2.(9). There's no warning, no give-away for the imminent calculation error for the user to see and act accordingly. Yet, the error happens. Good luck tracking it down then - it seems almost impossible to find such a quirk in a complicated formula in Google Docs because you cannot really take a peek at what numbers it's actually working with. They tried to hide the binary representation problem and failed, but that's something you either do properly, or not at all. This definitely is a bug.

    --
    This is Slashdot. Common sense is futile. You will be modded down.
  24. Re:It's nothing, Shroedinger's logarithm beats tha by Anonymous Coward · · Score: 0

    But when I'm using a spreadsheet, I expect it to take care of such details, because they're irrelevant in this context and must not ever be exposed to the user.

    What you're suggesting is actually to never use standard floating point arithmetic such as IEEE 754. Best of luck to you in implementing a spreadsheet that does everything in infinite precision.

    If you know your floating point arithmetic you're well aware of the fact that it works differently from what you learnt in school. For instance it's not at all strange that associativity, a*(b*c) == (a*b)*c or a+(b+c) == (a+b)+c, doesn't always hold.

    On the other hand, if you don't know your floating point arithmetic, then why on earth are you trying to truncate something to a specific number of decimal integers? Keep it as exact as possible all the way and do the rounding (not truncation!) for display purposes only.

    Sorry, but it's an operator error.

  25. Re:It's nothing, Shroedinger's logarithm beats tha by RAMMS+EIN · · Score: 1

    Of course it's a bug. log10(1000) is 3, so truncating it should yield 3. Unless, of course, the specification very clearly states that operations are implemented using some kind of arithmetic that produces a different result. But, in that case, I don't want to use the software.

    --
    Please correct me if I got my facts wrong.
  26. I really want to see password protected documents by AbRASiON · · Score: 4, Insightful

    Yeah I know you need my google account to compromise the document in the first place but that's only one level of security, considering some of the things I have on google docs a second level really would be appreciated.

  27. Re:It's nothing, Shroedinger's logarithm beats tha by elmartinos · · Score: 1

    The problem is that due to floating point inaccuracies, log10(1000) is actually 2.999999999 and not exactly 3. It is rounded and shown as 3, but when you truncate it, you get 2.

    moral of the story: Don't use trunc.

  28. Re:It's nothing, Shroedinger's logarithm beats tha by Anonymous Coward · · Score: 0

    Part of the solution to most of the floating point precision problems is to do calculations with full precision internally, but use a slightly lower precision for display purposes and round when going from the internal representation to the display representation. This usually hides the precision problems by rounding to the correct number. The "bug" you're seeing happens because the trunc function truncates the internal representation (which is slightly less than 3), then the result 2.0 (plus/minus a very small error) is rounded to 2.00000... for display purposes. Without the trunc function, the internal representation (2.9999...) is rounded to 3.00000... for display purposes.

  29. Re:It's nothing, Shroedinger's logarithm beats tha by Enleth · · Score: 1

    I'll repeat what I said in another reply: I am aware of the floating point representation problem, but Google Docs doesn't give any clues on what the problem is and where it is, it shows two "3.00"s that trunc() to a different value, not a "2.999999..." or "2.(9)" or whatever else might be appropriate there. Basically, it claims that the value of an expression is X, but still treats it as Y, silently. While that was a simple and somewhat obvious example (I mean, for us - it's more than enough to confuse the hell out of normal people), tripping over this bug in the middle of some monster equation would be no fun, because it would be extremely hard to track this down. Other applications either alter the intermediate value so that it's correct (where the definition of being correct is determined by the working context and purpose of the calculation, not some innate characteristics of the hardware) and actually do the math using the same numbers that are shown to the user, or do no correction at all and show everything as it is stored in the memory. Doing the former in a half-arsed way and coming up with results calculated as if the latter was done is a bug.

    --
    This is Slashdot. Common sense is futile. You will be modded down.
  30. Re:It's nothing, Shroedinger's logarithm beats tha by MushMouth · · Score: 1

    Uh, isn't that technically correct behavior?

    if your display can only display n digits but you have n digits of 9 and the n+1 digit is higher than 5 it should round up the entire line. However trunc does not care about what is being displayed so it should simply drop the fractional.

    in other words if n (number of digits after the decimal displayed) is 3 and internally the number stored is 2.99999 then the display should display 3.000 but trunc() should display 2.000

  31. Re:It's nothing, Shroedinger's logarithm beats tha by morgan_greywolf · · Score: 1

    Of course it's a bug. log10(1000) is 3, so truncating it should yield 3.

    Oh, there he goes again, making sense!

  32. Re:It's nothing, Shroedinger's logarithm beats tha by Tony+Hoyle · · Score: 1

    Not a bug - trunk always rounds down, so can be .999999 out easily. log(1000) is 2.999999 recurring on most spreadsheets, so it's doing what you're telling it.

    For more accuracy round don't truncate.. or even better don't do either and let the formatting handle it.

  33. Re:It's nothing, Shroedinger's logarithm beats tha by Enleth · · Score: 1

    I'm afraid there are some real use cases where a properly calculated, truncated logarithm value is actually needed as an intermediate step in a more complex expression, so the formatting isn't going to help. And most spreadsheets handle this situation much better, feel free to read my other replies in this thread to see why and how.

    --
    This is Slashdot. Common sense is futile. You will be modded down.
  34. Re:Completely secure? by Anonymous Coward · · Score: 0

    Apart from the secenario you mention, there is always the famous "run over by a bus" problem, and the variations on it....house fire, car crash, lost the wallet with the flash card, and so on. People are not always very good at assessing risks, especially relatively low probability ones.

    Funnily enough, his ploy might well have worked better without the unprofessional comments. When you are doing something that might be seen as unprofessional, it would probably pay not to get peoples minds thinking along those lines. They might start to think "if he will rip off his former employer, will he rip me off too?".

  35. Re:It's nothing, Shroedinger's logarithm beats tha by Anonymous Coward · · Score: 0

    You can show numbers with up to 20 decimals in OOo Calc. The precision is lower than that: 1.00000000000009 is the last number without rounding. If you enter 1.000000000000009, it is rounded to 1.00000000000001. The edge case proves that there is a difference between what OOo Calc shows you and what it uses internally for calculations, even when there is enough room for digits. There is no mathematical reason to round the number up: The application simply does not know if the next digit is higher than 4, therefore it rounds to the n-1 digit to avoid these off-by-0.000something floating point effects which seem to irritate users so much. Internally doing the same would only increase the error, so Calc keeps using the full precision number.

    Anyway, I would argue that it is still expected behaviour. That's the point, isn't it? There is no way to always get it right. The best you can do is to keep track of the error margin, but that would freak out people even more.

    A simpler OOo Calc example, again with the number format set to 20 decimals: trunk(2.99999999999999+4E-15; 0) is 2.000..., but (2.99999999999999+4E-15) is 3.000.... It is not the processor which does the rounding. Calc knows that the result is not 3 (hence the trunk result). It rounds the number before displaying it, but due to precision problems, it rounds up, even though 2.99999999999999 is more correct than 3. Just because the applications shows you a flat 3 as an end result doesn't mean that trunking it when it appears as an intermediate result gives you a 3. It is not a bug, just the inevitable effects of floating point arithmetic combined with precisely the heuristic which is supposed to hide the effects of floating point arithmetic.

  36. Existence of the document? by JakartaDean · · Score: 2, Funny

    allowing anyone who knows or guesses it to see the image regardless of permissions or even the existence of the document

    Wow, that's pretty cool really. If I guess the URL I can see images that don't even exist?

    --
    The subject who is truly loyal to the Chief Magistrate will neither advise nor submit to arbitrary measures (Junius)
  37. Re:It's nothing, Shroedinger's logarithm beats tha by noidentity · · Score: 1

    If you're printing 2.999999... with only two decimals, then you should see 3.00. You ALWAYS have to remember that what you see is an approximation. If you truncate the fraction of something which displays as 3.00, you should not expect 3 as the result. If you want to find the NEAREST integer, then use some sort of rounding function, so that the greatest error magnitude is 0.5, rather than nearly 1.0 as with truncate. This mis-expectation comes up often when students are learning programming languages. They think that printing a floating-point value shows its exact value, rather than just an approximation, and then are suprised that their 1.0 compares less than 1.0 in an if statement.

  38. Copyright isn't control by RudeIota · · Score: 1

    That's a pretty darn good deterrant and powerful control over the flow of information.

    As the RIAA has found out - no it is not. I don't like the RIAA, but I think their inability to control 'the flow of information' despite their desperate attempts proves this point unlike any other entity can.

    Copyright offers no 'control' -- It only offers recourse. DRM is almost entirely preventative. Copyright infringement these days happens on an International stage and data moves at light speed. It's quite impossible to enforce IP anymore and short of randomly suing people to scare (some) people, you have little recourse.

    In short, you can't sue everyone in the world and everyone in the world knows that. And copyright doesn't prevent the material from being copied. How is it a powerful way to control the flow of information?

    --
    Fact: Everything I say is fiction.
  39. The main commandment when dealing with FP by Anonymous Coward · · Score: 0

    "Thou shalt never rely on the low-order bits of a FP number!"

    Rounding relies on the low-order bits. If you do rounding in FP you need to allow for +/-1 error. Of course, the underlying representation doesn't have to be FP ...

    You just gave me a candidate filtering question ;)

  40. Re:It's nothing, Shroedinger's logarithm beats tha by ricelid · · Score: 1

    Google docs had a pretty crippling bug while I was using Google docs to be interviewed by Google. The bug was really bad, and it and a few other bugs have made me think that most of Google's products deserve to keep their eternal beta status. I guess waaay more security vulnerabilities have probably been found in MS Office than in google docs, but there are some inherent security vulnerabilities in keeping your data on a remote server.

  41. Re:I really want to see password protected documen by cerberusss · · Score: 1

    Why not encrypt them in the usual way, then upload/download them?

    --
    8 of 13 people found this answer helpful. Did you?
  42. It is nothing like that at all by brunes69 · · Score: 1
    You have fallen into the media industries IP trap.

    It is more like loaning a book to your friend to read, then a week later asking for it back, and also telling him to forget everything he ever read.

    Intellectual property is not the same thing as physical property and should not be treated as such.