Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1932

Session.getAttributes( ) call always returns an empty array

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9, 1.0, 1.1, 1.2.1, 1.3, 1.4, 1.5, 1.5.2
    • Fix Version/s: 1.6
    • Component/s: jackrabbit-core
    • Labels:
      None

      Description

      Repository repository = new RMIRemoteRepository("//localhost:1099/jackrabbit.repository");
      SimpleCredentials c = new SimpleCredentials("alex","ok".toCharArray());
      c.setAttribute("anAttribute", "aValue");
      Session s = repository.login(c, "aWorkspace");
      String[]attr=s.getAttributeNames();

      array attr is empty.
      according to docs it should contains attributes from the SimpleCredentials object.

        Attachments

        1. bug.txt
          0.6 kB
          alessandro cosenza

          Activity

            People

            • Assignee:
              jukkaz Jukka Zitting
              Reporter:
              alex1985 alessandro cosenza
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: