Your app deleted all my files. And my wallpaper too!

The program is Fast, the sales team is Furious, and their data is definitely not Expendable

On Call It's been a bit of a week hasn't it? Grab yourself a biscuit and settle down for another story from a brave Register reader who was only trying to help. Welcome to On Call.

Today's tale is from a reader Regomised as "Paul" and concerns his days as a programmer at a manufacturing plant in England. This was in the time of Windows 7, and Paul was an apprentice coder, keen to wedge his foot in the door of application development.

"I was tasked with developing a simple application for the Sales department," he told us. "This application would simplify the act of moving folders full of customer manufacturing data from the salesperson's Windows desktop to one of two network drives and folder trees for each customer and job number."

The current process was manual, time-consuming, and prone to error. With Paul's whizzy new application, all the salesperson needed to do was to point the app at the folders on their desktop. Processing would happen and data would be available to the engineers to do engineer-type stuff as well as being purged from the salesperson's PC.

Simple enough – just a bit of file transfer. What could possibly go wrong?

Paul coded up the app, it was tested and then rolled out. Happy with the completion of his task, he was looking forward to his next project when the inevitable call came in.

"Your app took ages to run!" came the trilling from a member of the sales team. "And then deleted my desktop!"

Unexpected deletion of data? Of course, that can happen with Microsoft. But this was back in the glory days of Windows 7. Paul was sure his code was OK – it should only have taken seconds to run and certainly not trashed the desktop.

"So I dutifully went to investigate," he told us.

"Low and behold their desktop is completely blank. This user was one of those users that used their desktop as a dump for all those important files. All neatly arranged around a low quality wallpaper image of a shirtless action actor rising out of a pool."

"I believe it was Jason Statham, but that's not overly relevant," he added.

What was relevant was that all of the user's files were indeed gone, as was the snap of a shirtless Statham. The desktop looked lovely and tidy, but the company's accounts would not be quite so handsome if the salesperson's files remained lost.

Paul asked around – nobody else had a problem. He peered into the recycle bin – no joy.

"On a whim, I checked the data they'd sent to the network drives, and was surprised to see it was considerably larger than the other folders on that drive..."

Aha. What had actually happened was that the user had misunderstood. Rather than direct the app to the folders on their desktop, they had actually directed the app to their desktop folder. The app had correctly transferred the contents to the network drive and then tidied up after itself.

The transporter had been transported to a server and off the desktop.

Thankfully the files were all intact so recovery was simply a case of copying the folder back to the salesperson's PC. Paul then made his excuses and left as the inevitable "but all my icons are in the wrong place" complaints began.

And the app? While it had worked exactly as designed, Paul swiftly added a patch "that made sure a user was unable to select their desktop folder."

"And named the function in honour of them."

Ever popped the name of a particularly annoying user into the source, only to come a bit unstuck at code review time? Or found yourself being whinged at when your app did exactly what it was supposed to do? Tell all with an email to On Call. ®

Similar topics

Other stories you might like

  • Despite 'key' partnership with AWS, Meta taps up Microsoft Azure for AI work
    Someone got Zuck'd

    Meta’s AI business unit set up shop in Microsoft Azure this week and announced a strategic partnership it says will advance PyTorch development on the public cloud.

    The deal [PDF] will see Mark Zuckerberg’s umbrella company deploy machine-learning workloads on thousands of Nvidia GPUs running in Azure. While a win for Microsoft, the partnership calls in to question just how strong Meta’s commitment to Amazon Web Services (AWS) really is.

    Back in those long-gone days of December, Meta named AWS as its “key long-term strategic cloud provider." As part of that, Meta promised that if it bought any companies that used AWS, it would continue to support their use of Amazon's cloud, rather than force them off into its own private datacenters. The pact also included a vow to expand Meta’s consumption of Amazon’s cloud-based compute, storage, database, and security services.

    Continue reading
  • Atos pushes out HPC cloud services based on Nimbix tech
    Moore's Law got you down? Throw everything at the problem! Quantum, AI, cloud...

    IT services biz Atos has introduced a suite of cloud-based high-performance computing (HPC) services, based around technology gained from its purchase of cloud provider Nimbix last year.

    The Nimbix Supercomputing Suite is described by Atos as a set of flexible and secure HPC solutions available as a service. It includes access to HPC, AI, and quantum computing resources, according to the services company.

    In addition to the existing Nimbix HPC products, the updated portfolio includes a new federated supercomputing-as-a-service platform and a dedicated bare-metal service based on Atos BullSequana supercomputer hardware.

    Continue reading
  • In record year for vulnerabilities, Microsoft actually had fewer
    Occasional gaping hole and overprivileged users still blight the Beast of Redmond

    Despite a record number of publicly disclosed security flaws in 2021, Microsoft managed to improve its stats, according to research from BeyondTrust.

    Figures from the National Vulnerability Database (NVD) of the US National Institute of Standards and Technology (NIST) show last year broke all records for security vulnerabilities. By December, according to pentester Redscan, 18,439 were recorded. That's an average of more than 50 flaws a day.

    However just 1,212 vulnerabilities were reported in Microsoft products last year, said BeyondTrust, a 5 percent drop on the previous year. In addition, critical vulnerabilities in the software (those with a CVSS score of 9 or more) plunged 47 percent, with the drop in Windows Server specifically down 50 percent. There was bad news for Internet Explorer and Edge vulnerabilities, though: they were up 280 percent on the prior year, with 349 flaws spotted in 2021.

    Continue reading
  • ServiceNow takes aim at procurement pain points
    Purchasing teams are a bit like help desks – always being asked to answer dumb or inappropriate questions

    ServiceNow's efforts to expand into more industries will soon include a Procurement Service Management product.

    This is not a dedicated application – ServiceNow has occasionally flirted with templates for its platform that come very close to being apps. Instead it stays close to the company's core of providing workflows that put the right jobs in the right hands, and make sure they get done. In this case, it will do so by tickling ERP and dedicated procurement applications, using tech ServiceNow acquired along with a company called Gekkobrain in 2021.

    The company believes it can play to its strengths with procurements via a single, centralized buying team.

    Continue reading
  • HPE, Cerebras build AI supercomputer for scientific research
    Wafer madness hits the LRZ in HPE Superdome supercomputer wrapper

    HPE and Cerebras Systems have built a new AI supercomputer in Munich, Germany, pairing a HPE Superdome Flex with the AI accelerator technology from Cerebras for use by the scientific and engineering community.

    The new system, created for the Leibniz Supercomputing Center (LRZ) in Munich, is being deployed to meet the current and expected future compute needs of researchers, including larger deep learning neural network models and the emergence of multi-modal problems that involve multiple data types such as images and speech, according to Laura Schulz, LRZ's head of Strategic Developments and Partnerships.

    "We're seeing an increase in large data volumes coming at us that need more and more processing, and models that are taking months to train, we want to be able to speed that up," Schulz said.

    Continue reading
  • We have bigger targets than beating Oracle, say open source DB pioneers
    Advocates for MySQL and PostgreSQL see broader future for movement they helped create

    MySQL pioneer Peter Zaitsev, an early employee of MySQL AB under the original open source database author Michael "Monty" Widenius, once found it easy to identify the enemy.

    "In the early days of MySQL AB, we were there to get Oracle's ass. Our CEO Mårten Mickos was always telling us how we were going to get out there and replace all those Oracle database installations," Zaitsev told The Register.

    Speaking at Percona Live, the open source database event hosted by the services company Zaitsev founded in 2006 and runs as chief exec, he said that situation had changed since Oracle ended up owning MySQL in 2010. This was as a consequence of its acquisition that year of Sun Microsystems, which had bought MySQL AB just two years earlier.

    Continue reading
  • Beijing needs the ability to 'destroy' Starlink, say Chinese researchers
    Paper authors warn Elon Musk's 2,400 machines could be used offensively

    An egghead at the Beijing Institute of Tracking and Telecommunications, writing in a peer-reviewed domestic journal, has advocated for Chinese military capability to take out Starlink satellites on the grounds of national security.

    According to the South China Morning Post, lead author Ren Yuanzhen and colleagues advocated in Modern Defence Technology not only for China to develop anti-satellite capabilities, but also to have a surveillance system that could monitor and track all satellites in Starlink's constellation.

    "A combination of soft and hard kill methods should be adopted to make some Starlink satellites lose their functions and destroy the constellation's operating system," the Chinese boffins reportedly said, estimating that data transmission speeds of stealth fighter jets and US military drones could increase by a factor of 100 through a Musk machine connection.

    Continue reading
  • How to explain what an API is – and why they matter
    Some of us have used them for decades, some are seeing them for the first time on marketing slides

    Systems Approach Explaining what an API is can be surprisingly difficult.

    It's striking to remember that they have been around for about as long as we've had programming languages, and that while the "API economy" might be a relatively recent term, APIs have been enabling innovation for decades. But how to best describe them to someone for whom application programming interfaces mean little or nothing?

    I like this short video from Martin Casado, embedded below, which starts with the analogy of building cars. In the very early days, car manufacturers were vertically integrated businesses, essentially starting from iron ore and coal to make steel all the way through to producing the parts and then the assembled vehicle. As the business matured and grew in size, car manufacturers were able to buy components built by others, and entire companies could be created around supplying just a single component, such as a spring.

    Continue reading

Biting the hand that feeds IT © 1998–2022