[Solved] Can't open .docx files sent via email

Writing a book, Automating Document Production - Discuss your special needs here

[Solved] Can't open .docx files sent via email

Postby clmaack » Tue Jan 21, 2020 6:31 pm

I'm using Apache Open Office 4.1.7 on Windows 10. When receiving an email with an attached document, the document will not open; OpenOffice displays this message: C:\users\username\AppData\Local\Temp
January does not exist, where "January" is the first word of the file I'm trying to open. Having set Windows Explorer to show hidden files I see that the AppData\Local\Temp is there, but - of course - the file name that I'm trying to open is not. Why should it be? I'm trying to open it for the first time! This same thing happens with any .docx file from any sender that I try to open: it tells me that that file under AppData\Local\Temp does not exist, therefore it can do nothing. And I can do nothing except hit OK, even though it's definitely NOT OK!

Further information which may help: About two months ago we purchased a new computer. We downloaded the latest version of OpenOffice (which is the same version we had on our old computer). We had Windows 10 on the old machine, and Windows 10 on the new machine. At first everything worked fine, and opening downloaded files posed no problem. Then, for no reason we can figure out, it simply stopped working. We have no idea what we might have done to cause this, but we'd be happy to fix it if someone could tell us what to do.

Please help.

Thanks in advance!
Last edited by Hagar Delest on Wed Jan 22, 2020 9:08 am, edited 1 time in total.
Reason: tagged solved
OpenOffice 4.17 on windows 10
clmaack
 
Posts: 4
Joined: Tue Jan 21, 2020 3:15 pm

Re: Can't open .docx files sent via email

Postby FJCC » Tue Jan 21, 2020 7:12 pm

Can you open the file if you save it to your desktop or your Downloads folder?
Windows 10 and Linux Mint, since 2017
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
FJCC
Moderator
 
Posts: 8126
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Can't open .docx files sent via email

Postby clmaack » Tue Jan 21, 2020 11:23 pm

Yes! Just tried that (again!) and it worked this time.

In the process I discovered something else. If the file name has a space in it [January 12.docx] it breaks up that file name and says first that it can't find "\\AppData\Local\Temp\January", then it sends up another message saying that it can't find "\\AppData\Local\Temp\12.docx". However, if the file name is changed to remove that space [january12.docx], then it opens fine. This is definitely a new wrinkle, because I've been receiving and opening files with spaces in them for . . . well, for as long as I've been receiving files! What's the change?

Thanks in advance!
OpenOffice 4.17 on windows 10
clmaack
 
Posts: 4
Joined: Tue Jan 21, 2020 3:15 pm

Re: Can't open .docx files sent via email

Postby John_Ha » Tue Jan 21, 2020 11:33 pm

I don't think this is an AOO problem - I think things have changed with your email and it now has a bug where it does not handle files properly if they have spaces in their names.

Can you please answer these three questions below so we can diagnose whether it is a problem with the email provider, the email client, the browser or with AOO.

1. What email provider are you using? Is is gmail? yahoo? or what?

2. What email client are you using? Is it Thunderbird? Windows Mail? Outlook? or what?

3. Or are you not using a client but you are logging onto the email provider's website and accessing webmail through your browser? If so, which browser are you using? Firefox? Edge? Safari? Chrome?

Be very careful because when you open a file still attached to an email it opens in ...\AppData\Local\Temp which is a temporary files location. If you edit and save the file there it will be deleted when you close your email client. Always detach a file to your desktop before editing it.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 8391
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Can't open .docx files sent via email

Postby clmaack » Wed Jan 22, 2020 5:09 am

My email provider is AOL
Client - sorry, but I'm not quite sure what you mean, but it is not Thunderbird, Windows Mail, or Outlook
I log directly onto the AOL website with Firefox.

My wife and I have two other email accounts which we access through Firefox as well. Neither the Hotmail account or the Gmail have shown any signs of this problem.

Thank you again for your help. And thanks for the warning about trying to edit and save a file in Temp. While I've never done it, I didn't realize it would have been a problem.
OpenOffice 4.17 on windows 10
clmaack
 
Posts: 4
Joined: Tue Jan 21, 2020 3:15 pm

Re: Can't open .docx files sent via email

Postby Zizi64 » Wed Jan 22, 2020 7:43 am

Same problem in similar environment - webmail (Open in Browser) within Firefox Browserth webmail /AOO 4.1.7, Windows 10/:
viewtopic.php?f=7&t=100814
Tibor Kovacs, Hungary; LO6.1.6, 6.4.7 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.1.1;AOO4.1.9
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9843
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: [Solved] Can't open .docx files sent via email

Postby John_Ha » Wed Jan 22, 2020 12:55 pm

Raise the problem with AOL Help Desk as it seems to be an AOL bug. I searched with aol attachment not downloading and got 274,000 hits.

It's not Firefox as I can manage attachments with spaces in their names on gmail. Also, it works for you on Hotmail and Gmail so it must be AOL!
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 8391
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Can't open .docx files sent via email

Postby clmaack » Thu Jan 23, 2020 12:10 am

Hello

Thanks so much for helping me with my problem! Your recommendations were great. As suggested, I will discuss the issue with AOL.
OpenOffice 4.17 on windows 10
clmaack
 
Posts: 4
Joined: Tue Jan 21, 2020 3:15 pm

Re: [Solved] Can't open .docx files sent via email

Postby robleyd » Thu Jan 23, 2020 12:22 am

It would seem Firefox is stricter in its handling of filenames with spaces than other browsers - http://kb.mozillazine.org/Filenames_wit ... n_download. The primary issue seems to be that some websites do not properly enclose filenames in double quotes.
Cheers
David
Apache OpenOffice 420m2(Build:9821) - Slackware 14.2 - 64 bit
LibreOffice 6.4.6.2 (SlackBuild for 6.4.6 by Eric Hameleers) - Slackware 14.2 - 64 bit
Apache OpenOffice 4.1.4 - Windows 7 Virtual machine
User avatar
robleyd
Moderator
 
Posts: 3959
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: [Solved] Can't open .docx files sent via email

Postby John_Ha » Thu Jan 23, 2020 12:34 am

To confirm it down load and try these two test files. One has a space in the file name and the other does not.

TestCase.odt
File without space in name
(11.76 KiB) Downloaded 102 times

Test Case.odt
File with space in name
(11.76 KiB) Downloaded 105 times
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 8391
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Can't open .docx files sent via email

Postby robleyd » Thu Jan 23, 2020 1:30 am

As I don't use Firefox, I can't help there :-) Palemoon handles it nicely though and it opens with soffice when I choose Open With....

 Edit: Of course, this would only show that this site properly handles - or not - quoting of file names :lol: 
Cheers
David
Apache OpenOffice 420m2(Build:9821) - Slackware 14.2 - 64 bit
LibreOffice 6.4.6.2 (SlackBuild for 6.4.6 by Eric Hameleers) - Slackware 14.2 - 64 bit
Apache OpenOffice 4.1.4 - Windows 7 Virtual machine
User avatar
robleyd
Moderator
 
Posts: 3959
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: [Solved] Can't open .docx files sent via email

Postby Zizi64 » Thu Jan 23, 2020 8:20 am

Both of John_Ha's the testfiles opens fine
with my Firefox 72.0.2 version,
on the recent version of my Hungarian Windows10 Prof x64,
with my LibreOffice 6.2.8.

I have not Apache OpenOffice installed permanently. I have only portable versions, and the file format is associated to the permanently installed LibreOffice.

Of course the documents (opened without downloading before) open as "read only", and the document opens (the LO starts) in an independent window, but not embedded inside the browser.

 Edit: And I just tried it with AOO 4.1.6 portable version (because there is not AOO 4.1.7 portable yet), and it works too in same environment 
Tibor Kovacs, Hungary; LO6.1.6, 6.4.7 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.1.1;AOO4.1.9
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9843
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: [Solved] Can't open .docx files sent via email

Postby John_Ha » Thu Jan 23, 2020 4:21 pm

See robleyed's post above at Re: [Solved] Can't open .docx files sent via email

If a file name on a website has a space (or non alpha-numeric character) in it then the web standards require that file name should be enclosed in quotes as "London Bridge.abc". Such a file works properly. The AOO web site includes quotes so all works OK.

However many web sites have incompetent programmers who ignore standards and do not enclose such file names in quotes. This is an error by the web site author. Such a file downloads OK but does not Open with ..., OK as only the characters up to the first space (or non alpha-numeric character) are recognised, so the file is thought to be called London and, of course, cannot be found.

The problem is not Firefox - it is incompetent web programmers who cannot or will not follow the agreed standards. What has probably happened is that the web page coding has recently been changed. Firefox has known of this problem for some years but does not want to make changes as it breaks the web rules and affects other things in Firefox, especially in other languages.

See Filenames with spaces are truncated upon download for a full explanation and for two extensions which can fix it - Content-Type Fixer and FixDisposition.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 8391
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK


Return to Advanced Uses

Who is online

Users browsing this forum: No registered users and 2 guests