Apache OpenOffice (AOO) Bugzilla – Issue 121343
Writer does not properly format hyperlink text on page
Last modified: 2014-04-13 20:08:41 UTC
Issue: OO Writer does not properly format hyperlink text on page if value for TARGET field under Hyperlink if is too long and above certain length. While testing, the field can accept up to 65534 characters. However, it will fail to display hyperlink on the page if the TARGET string is 65527 characters or longer Steps to Reproduce: In the Target field under Hyperlink, input a string with 65527 characters in length, then click on Apply Expected Behavior: Hyperlink will display properly formatted on page as http://<string>, where <string> is the inputted string in TARGET field Actual Behavior: Hyperlink does not display
Would it be possible to attach your test document, ideally one that shows 65526 characters working correctly and 65527 characters not working?
(In reply to comment #0) > Issue: > OO Writer does not properly format hyperlink text on page if value for > TARGET field under Hyperlink if is too long and above certain length. While > testing, the field can accept up to 65534 characters. This is one of the string classes used internally, it can hold only up to STRING_MAXLEN, defined in tools/inc/tools/string.hxx
Hello. I have been watching this bug reported and I created the file when your steps but the hyperlink is correct. The bug was checked in the platform W7 64BITS AOO 3.4.1 and I was not found it. Could you give the hyperlink that you used or attach a document?
Created attachment 81626 [details] Source document with 65527 characters used for testing I was able to reproduce this issue in certain scenarios. OpenOffice.org Writer 3.4.1 AOO341m1(Build:9593) - Rev. 1372282 Windows 7 Home Premium, Service Pack 1 1. Open Writer blank document 2. Click Hyperlink button on toolbar or click Insert-->Hyperlink from menu 3. Delete any value or whitespace in Target text box if there is any 4. Copy Target value from source document (my source document is attached, I used this document to change the Target value for the scenarios listed below) 5. Paste [value] into Target field (actual values I used listed below) 6. The Target text box shows as blank white, but the cursor location being at the end of the text box and ability to arrow left and right within the text box indicate that some value has been pasted. 7. Click Apply When the issue is reproduced, the program appears to do nothing and continues to display the Hyperlink box, so attaching a document that "doesn't work" is the same as attaching a blank document. Values that reproduced the issue (to be used in step 5 above): 1. 65527 character string of the repeating letter 'a' - Confirmed that repeating 'a' string of 65526 characters works as expected, although it does add a forward slash on the end, something it doesn't seem to do for scenarios 4 and 5 below [attached] 2. aaa-aaaaaaaaa... (same as #1 except fourth character is a dash) 3. aaa.aaaaaaaaa... (same as #1 except fourth character is a period) Values that did not reproduce the issue: 4. www.test.com/aaaaaa... ('a' is repeating to fill up 65527 total characters) - Result as expected: Link reading http://www.test.com/aaaaaa... 5. aaa/aaaaaaaaa... (same as #1 except fourth character is a forward slash) - Result as expected: Link reading http://aaa/aaaaaaaaa... Value that produced a different issue: 6. aaa?aaaaaaaaa... (fourth character is a question mark) [attached] - Result missing the 'http://': Link reading aaa?aaaaaaaa... While the HTTP protocol does not place a limit on the length of a URI (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html), there are many reasons why the majority of web URLs are not likely to be this lengthy, here’s a few (http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers): 1. Search giant Google will not index URLs over 2047 characters, and technically only 1855 characters results in a URL that works in Google search results (research from 2010) 2. Internet Explorer 10’s address bar will only accept and display 2083 characters, although you can still click a URL that is longer. 3. Servers and browsers have the ability to limit the acceptable length of the URL
Created attachment 81627 [details] Success case fpr 65526 character string
Created attachment 81628 [details] Success case for forward slash within 65527 long string
Created attachment 81629 [details] Success case for question mark within 65527 character string
Created attachment 81630 [details] Success case for typical web address format
Not a real life scenario.
(In reply to Edwin Sharp from comment #9) > Not a real life scenario. May be true. But I can happen. And MS Office and similar Apple products(Page, Word) don't have or exhibit this issue. I really encourage you to resolve this issue. Even if you think its not a "real life" scenario.
Please attach example.