Uploaded image for project: 'GeoServer'
  1. GEOS-8459

VersioningCommitAuthor set to anonymous when principal is not an instance of UserDetails

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.11.0
    • Fix Version/s: 2.11.4, 2.12.2, 2.13-beta
    • Component/s: None
    • Labels:
      None

      Description

      When doing feature creation and modification via WFS-T it looks like this workflow depends on Geoserver implicitly having the user account information outside of the WFS request.
      When using cookie authentication Geoserver does get the correct user metadata from Geonode, however when using OAuth the user metadata is not (or doesn't seem to be) available, and the Author name is set to Anonymous.

      While triaging this issue, it was identified that the code responsible for extracted the user principal expects it to be an instance of UserDetails and when using OAuth, the principal is set up as a String thus forcing Anonymous to be set as the VersioningCommitAuthor.

      This is currently only relevant to GeoGig backed layers.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cdavis Clarence Davis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Stride room