Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-870

ContextURL: Incorrect parsing of containment navigation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • (Java) V4 4.1.0
    • None
    • None

    Description

      We have the context URL $metadata#A(1)/b(1)/c(1)/d where A is an entity set and b, c and d are containment navigation properties.

      Parsing this with org.apache.olingo.commons.api.data.ContextURL results in:
      entitySetOrSingletonOrType = A/b/c
      navOrPropertyPath = c(1)

      The result should be (at least what is expected but which might not be correct, see below*):
      entitySetOrSingletonOrType = A/b/c
      navOrPropertyPath = d

      This results in ODataBinderImpl finding the incorrect type for the returned entities.

      *Depending on your point of view
      entitySetOrSingletonOrType = A
      navOrPropertyPath = b(1)/c(1)/d

      or

      entitySetOrSingletonOrType = A(1)/b(1)/c(1)/d
      navOrPropertyPath =

      might be what you would expect as a result of the parsing but the current code wouldn't be able to handle such results.

      Attachments

        Activity

          People

            Unassigned Unassigned
            frederik.zimmer Frederik Zimmer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: