Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-450

make subject attributes work correctly (upper/lower case etc)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • HEAD
    • HEAD
    • subject API
    • None

    Description

      Hey,

      So the issue with this test seems to be that if you use Oracle, the loginid attribute is expected to be uppercase.

      gsh 1% Subject subject =
      SubjectFinder.findById(SubjectTestHelper.SUBJ0_ID, true); gsh 2% subject
      subject: id='test.subject.0' type='person' source='jdbc' name='my name is test.subject.0'
      gsh 4%
      gsh 5%
      gsh 6% subject.getAttributeValue("loginid")
      gsh 7% subject.getAttributeValue("LOGINID")
      id.test.subject.0
      gsh 8%

      So with Oracle, ResultSet.getMetadata() apparently returns uppercase column names while others like postgres do not. Should I just adjust the test to check both cases? Or are attribute names expected to be case insensitive and the fix should be within the subject code?

      Thanks!

      – Shilen

      On 6/9/10 8:23 AM, Shilen Patel wrote:
      > 2)
      > testFilter(edu.internet2.middleware.grouper.changeLog.esb.consumer.EsbConsumerTest)junit.framework.AssertionFailedError:
      > null
      > at
      > edu.internet2.middleware.grouper.changeLog.esb.consumer.EsbConsumerTes
      > t.testFilter(EsbConsumerTest.java:61)
      > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
      > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
      > ava:39)
      > at
      > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
      > orImpl.java:25) at
      > edu.internet2.middleware.grouper.AllTests.main(AllTests.java:136)
      > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
      > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
      > ava:39)
      > at
      > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
      > orImpl.java:25)
      > at
      > edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCas
      > e(GrouperShell.java:188)
      > at
      > edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShel
      > l.java:128)
      > at
      > edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(Grou
      > perShellWrapper.java:16)
      >
      >

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: