Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-115012

Duplicate IDs are reported in the browsers developer console when accessing the Documents and Media admin page

    Details

      Description

      Steps to reproduce
      1. Open the browsers developer console and clear any contents in it
      2. Navigate to the Documents and Media admin page

      Expected Result
      There are no duplicate IDs used within the HTML.

      Actual Result
      The browser reports the following warning about duplicate IDs (only seen in Chrome)

      :8080/group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_web_portlet_DLAdminPortlet&p_p_lifecycle=0&p_p_state=maximized&p_v_l_s_g_id=20122&p_p_auth=gur8LybO:1 [DOM] Found 2 elements with non-unique id #_com_liferay_document_library_web_portlet_DLAdminPortlet_webDavURL: (More info: https://goo.gl/9p2vKq) <input class=​"form-control form-text lfr-input-resource " id=​"_com_liferay_document_library_web_portlet_DLAdminPortlet_webDavURL" onclick=​"this.select()​;​" readonly=​"true" type=​"text" value=​"http:​/​/​localhost:​8080/​webdav/​guest/​document_library">​ <input class=​"form-control form-text lfr-input-resource " id=​"_com_liferay_document_library_web_portlet_DLAdminPortlet_webDavURL" onclick=​"this.select()​;​" readonly=​"true" type=​"text" value=​"http:​/​/​localhost:​8080/​webdav/​guest/​document_library">​
      :8080/group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_web_portlet_DLAdminPortlet&p_p_lifecycle=0&p_p_state=maximized&p_v_l_s_g_id=20122&p_p_auth=gur8LybO:1 [DOM] Found 2 elements with non-unique id #hrefFm: (More info: https://goo.gl/9p2vKq) <form action=​"#" aria-hidden=​"true" class=​"hide" id=​"hrefFm" method=​"post" name=​"hrefFm">​...​</form>​ <form action=​"#" aria-hidden=​"true" class=​"hide" id=​"hrefFm" method=​"post" name=​"hrefFm">​...​</form>​
      

      Viewing the page's source and searching for id="_com_liferay_document_library_web_portlet_DLAdminPortlet_webDavURL has two hits.

        Attachments

          Activity

            People

            Assignee:
            jeremy.chen Jeremy Chen
            Reporter:
            jonathan.mccann Jonathan McCann
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Jonathan McCann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              37 weeks, 6 days ago

                Packages

                Version Package
                7.1.10 DXP FP21
                7.1.X
                7.2.10 DXP FP7
                7.2.X
                7.3.3 CE GA4
                7.3.10 DXP GA1
                Master