https://bz.apache.org/bugzilla/show_bug.cgi?id=58755

            Bug ID: 58755
           Summary: POI can't encode hyperlink relation is not valid
                    java.util.URI
           Product: POI
           Version: 3.13-FINAL
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: OPC
          Assignee: dev@poi.apache.org
          Reporter: andrey.bardashev...@gmail.com

poi can't encode following hyperlink #'Прайс-лист'!A1

issue is in org.apache.poi.openxml4j.opc.PackagingURIHelper#isUnsafe

fix:

instead of ch > 0x80 should be ch >= 0x80

e.g.

private static boolean isUnsafe(int ch) {
    return ch >= 0x80 || Character.isWhitespace(ch) || ch == '\u00A0';
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to