Menu

Can't submit patches and report bugs

Help
2008-05-15
2013-04-29
  • Harald Böhme

    Harald Böhme - 2008-05-15

    Hi

    First thanks for your great work.
    While using your software I have observed one problem with content type writing.
    The content type is lowercased while registering and that leads to a problem in writing this
    information out again, because content is case sensitive.

    in org.openxml4j.opc.internal.ContentTypeManager

    Old:
        private void addDefaultContentType(String extension, String contentType) {
            this.defaultContentType.put(extension.toLowerCase(), contentType.toLowerCase());
        }
    New:
        private void addDefaultContentType(String extension, String contentType) {
            this.defaultContentType.put(extension.toLowerCase(), contentType);
        }

    Regards,
    Harald

     
    • Julien CHABLE

      Julien CHABLE - 2008-08-04

      Hi Harald,
      I investigate your problem and find that we add the .toLowerCase() due to some errors when it was missing. I keep the point (with the modification) for further testing and if I have more trouble with the lower case than without I'll make the correction.

      Huge thanks for your feedback.

      Julien

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.