Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4200

IPAuthentication doesn't work with 128 as netmask/prefix length (IPv6)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.3, 5.10, 7.0
    • Fix Version/s: 7.0
    • Component/s: API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Not Required

      Description

      Using 128 as the prefix length in IPAuthentication (f.e. "::1/128") does not work:

       Caused by: java.lang.ArrayIndexOutOfBoundsException: 16
       at org.dspace.authenticate.IPMatcher.<init>(IPMatcher.java:95)
       at org.dspace.authenticate.IPAuthentication.addMatchers(IPAuthentication.java:128)
       at org.dspace.authenticate.IPAuthentication.<init>(IPAuthentication.java:96)
       at sun.reflect.GeneratedConstructorAccessor229.newInstance(Unknown Source)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
       at java.lang.Class.newInstance(Class.java:442)
       at org.dspace.core.LegacyPluginServiceImpl.getAnonymousPlugin(LegacyPluginServiceImpl.java:207)
       at org.dspace.core.LegacyPluginServiceImpl.getPluginSequence(LegacyPluginServiceImpl.java:194)
       at org.dspace.authenticate.AuthenticationServiceImpl.getAuthenticationMethodStack(AuthenticationServiceImpl.java:74)
       at org.dspace.authenticate.AuthenticationServiceImpl.getSpecialGroups(AuthenticationServiceImpl.java:236)
       at org.dspace.app.xmlui.utils.ContextUtil.obtainContext(ContextUtil.java:104)
       at org.dspace.app.xmlui.utils.ContextUtil.obtainContext(ContextUtil.java:59)
       at org.dspace.app.xmlui.cocoon.DSpaceLocaleAction.act(DSpaceLocaleAction.java:123)
       at org.apache.cocoon.sitemap.impl.DefaultExecutor.invokeAction(DefaultExecutor.java:55)
       at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:105)
       ... 65 more
       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            sulfrian Alexander Sulfrian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: