Opened 3 years ago

Last modified 20 months ago

#18872 new defect

In LinkDialog, Unable to create file link if first folder contain underscore(-)

Reported by: jitendranalwaya Owned by:
Priority: undecided Milestone: 1.14
Component: Dijit Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:

Description

Problem Description: In dijit/_editor/plugins/LinkDialog, URL input is validated, so unable to create file link if first folder contain underscore(-). Its showing error "The value entered is not valid". Steps to reproduce -

  1. Open https://dojotoolkit.org/reference-guide/1.10/dijit/_editor/plugins/LinkDialog.html
  2. Click on Run button (Under Examples section)
  3. Click the link icon to open the Link Properties dialog.
  4. In the URL field, attempt to type "file:///C:/abc_test/xyz.txt"
  5. It shows the warning message 'The value entered is not valid'.
  6. You cannot create the link.

Validation passed for below links-

file://localhost/C:/abc_test/xyz.txt

file://localhost/C:/abc/xyz.txt

file:///C:/abc/xyz.txt

Validation failed for below link-

file:///C:/abc_test/xyz.txt

Expected behavior: The validation of the url should accept the underscore

Actual behavior: The url cannot be saved because of an validation error "The value entered is not valid"

If dojo permitted file://localhost/C:/abc_test/xyz.txt then, Why not permitted to file:///C:/abc_test/xyz.txt ?

Attachments (1)

LinkDialogIssue.png (24.0 KB) - added by jitendranalwaya 3 years ago.
Link Dialog

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by jitendranalwaya

Attachment: LinkDialogIssue.png added

Link Dialog

comment:1 Changed 3 years ago by dylan

Milestone: tbd1.13

comment:2 Changed 20 months ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.