Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The system is not recognized the format of the file when you upload a .docx #1929

Closed
bryanboza opened this issue Jan 24, 2013 · 4 comments
Closed
Assignees
Milestone

Comments

@bryanboza
Copy link
Contributor

The system is showing a lot of strange characters when you try to edit an uploaded .docx file

Steps
1- Login
2- Upload a .docx file in the site browser tab
3- Go to edit this file and then click to edit text button

Obtained result
The system is showin a lot of strange characters

Expected result
The system should be show the text of the file

Testing Info
Platform: W7
dotCMS version: 2.5 Master
Browser(s): Chrome // IE9

http://screencast.com/t/FWSZ7k9rLJ

@DeanGonzalez
Copy link

I tested on MacOSx using office for Mac and got this error on uploading the docx file:

[24/01/13 12:52:06:363 EST] ERROR ajax.ContentletAjax: java.lang.NoSuchMethodError: org.apache.poi.openxml4j.opc.PackagePart.getRelatedPart(Lorg/apache/poi/openxml4j/opc/PackageRelationship;)Lorg/apache/poi/openxml4j/opc/PackagePart;

http://screencast.com/t/eOUbbJ4OhVyn

@bryanboza
Copy link
Contributor Author

Some errors in the log file on Windows https://gist.github.com/e97d2d429b2ced4322df

@jtesser
Copy link
Contributor

jtesser commented Jan 25, 2013

Brent I bet this is the same classpath issue we already solved. Maybe there is one more.

@brentgriffin
Copy link
Contributor

The issue here was two fold.

First, in the list of the files, the files with docx extension had the unknown icon with a "?". Fixed this by adding a docx.png icon file.

Second, the new office documents (i.e. xlsx and docx) were being treated like text files and the "Edit Text" button was present. Based on how .doc files are handled, this button should not be available. Now, xlsx and docx files will not display the "Edit text" button.

jtesser pushed a commit that referenced this issue Jan 31, 2013
…ized

fixes #1929 - ensures that docx and xlsx files are handled correctly whe...
brentgriffin pushed a commit that referenced this issue Feb 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants