Uploaded image for project: 'Opencast'
  1. MH-11719

When configuring LDAP with default file things are broken

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed and reviewed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 3.0
    • Labels:
      None
    • Severity:
      Incorrectly Functioning With Workaround
    • Steps to reproduce:
      Hide
      Steps to reproduce:
      1. Rename security_sample_ldap.xml-example to mh_default_org.xml
      2. Configure LDAP settings
      3. Access login page, looks like scripts and css are broken. (see file)
       
       Actual Results:
      The login page is broken, no css no info
       
       Expected Results:
       Beautiful login page
       
       Workaround (if any):
       I included the next lines on line 20 right URL security directive.
       <sec:http pattern="/lib/**" security="none" />
      <sec:http pattern="/admin-ng/scripts/**" security="none" />
       <sec:http pattern="/admin-ng/styles/**" security="none" />

      but I dont know what are the collateral effects of this. I got this from original mh_default_org.xml so I gues must be ok.

      Another thing that happened to me, maybe because I am a bit dumb and took me a ridiculous amount of time to realize was when removing the comment from line 384 and 394 then the line 387 and 389 has comments too and they are broken so they don't break the comment starting 384. I know you can't have nested comments on xml, but maybe it could be a solution to move notes on lines 387 and 389 above line 384. This last is more a suggestion, thought.

      This is my first ticket, so I am sorry if I have broken some rules or law :P please point me to the right way to do it.

      If my "solutions" are right I can make a pull request with the changes if that is ok.

      Thanks.




      Show
      Steps to reproduce: 1. Rename security_sample_ldap.xml-example to mh_default_org.xml 2. Configure LDAP settings 3. Access login page, looks like scripts and css are broken. (see file)    Actual Results: The login page is broken, no css no info    Expected Results:  Beautiful login page    Workaround (if any):  I included the next lines on line 20 right URL security directive.  <sec:http pattern="/lib/**" security="none" /> <sec:http pattern="/admin-ng/scripts/**" security="none" />  <sec:http pattern="/admin-ng/styles/**" security="none" /> but I dont know what are the collateral effects of this. I got this from original mh_default_org.xml so I gues must be ok. Another thing that happened to me, maybe because I am a bit dumb and took me a ridiculous amount of time to realize was when removing the comment from line 384 and 394 then the line 387 and 389 has comments too and they are broken so they don't break the comment starting 384. I know you can't have nested comments on xml, but maybe it could be a solution to move notes on lines 387 and 389 above line 384. This last is more a suggestion, thought. This is my first ticket, so I am sorry if I have broken some rules or law :P please point me to the right way to do it. If my "solutions" are right I can make a pull request with the changes if that is ok. Thanks.

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              ruben.perez Rubén Pérez
              Reporter:
              Juanmi Juan M. Jimenez
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases