Last modified: 2014-04-10 00:44:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65386, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63386 - VisualEditor: Link does not get applied after concatenating a text to the existing link and reapplying the link
VisualEditor: Link does not get applied after concatenating a text to the exi...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2014-04-10
Assigned To: Ed Sanders
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-01 18:39 UTC by Rummana Yasmeen
Modified: 2014-04-10 00:44 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot (101.54 KB, image/png)
2014-04-01 18:39 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2014-04-01 18:39:38 UTC
Created attachment 14995 [details]
Screenshot

Steps to reproduce:

1.Open a page with VE

2.Insert a link

3.Now add a space and then a text next to it

4.Now delete the space and concatenate the text with the exiting link

5.Select the previous link and the text together

6.Re-apply the link 


Observed Result:
The new link does not get applied and "Save Page" button remains disabled 



See the screenshot attached


Test Environment: https://test2.wikipedia.org/
Browser: Chrome Version 26.0.1410.65 
OS: MAC OS X 10. 8. 5 
Page:https://test2.wikipedia.org/wiki/1staprilChrome?veaction=edit
Comment 1 Roan Kattouw 2014-04-02 23:54:38 UTC
So the problem is:

If you select text that is partially linked and partially not linked (in this specific case, the first part is linked and the second part isn't), then open the link inspector, we inspect the existing link but don't extend the link. If you then close the inspector without changing the target, nothing happens, but if you close the inspector with a changed target, the link is extended.

So I guess that on opening the link inspector, we should aggressively extend the link?
Comment 2 Rummana Yasmeen 2014-04-03 20:37:45 UTC
This happens even if you dont delete the space and just select both the link and the text and then re-apply a new link.
Comment 3 Gerrit Notification Bot 2014-04-04 20:54:03 UTC
Change 124006 had a related patch set uploaded by Esanders:
Apply annotations to partially annotated selections

https://gerrit.wikimedia.org/r/124006
Comment 4 Gerrit Notification Bot 2014-04-05 00:13:55 UTC
Change 124006 merged by jenkins-bot:
Apply annotations to partially annotated selections

https://gerrit.wikimedia.org/r/124006
Comment 5 Rummana Yasmeen 2014-04-08 23:41:49 UTC
I can still reproduce it on Betalabs.So, reopening it.
Comment 6 Rummana Yasmeen 2014-04-09 20:09:48 UTC
The fix is not working for the following cases:

Case 1:

Steps to reproduce:

1.Open a page with VE

2.Insert a link where the target is an existing page

3.Now add a space and then a text next to it

4.Save the page

5.Reopen the page

6.Now delete the space

7.Select the previous link and the text together

8.Re-apply the link where the link target is a new page


Case 2:

Steps to reproduce:

1.Open a page with VE

2.Insert a link where the link target is a new page

3.Now add a space and then a text next to it

4.Save the page

5.Reopen the page

6.Now delete the space

7.Select the previous link and the text together

8.Re-apply the link where the link target is a different new page

Case 3:

1.Open a page with VE

2.Insert a link where the target is a new page

3.Now add a space and then a text next to it

4.Save the page

5.Reopen the page

6.Now delete the space

7.Select the previous link and the text together

8.Re-apply the link where the link target is an exiting page

In all the above three cases , the link does not get applied to the concatenated text
Comment 7 Gerrit Notification Bot 2014-04-09 23:04:17 UTC
Change 125019 had a related patch set uploaded by Esanders:
Fix covering annotations logic

https://gerrit.wikimedia.org/r/125019
Comment 8 Gerrit Notification Bot 2014-04-09 23:06:55 UTC
Change 125019 merged by jenkins-bot:
Fix covering annotations logic

https://gerrit.wikimedia.org/r/125019

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links