[Geoserver-devel] [JIRA] (GEOS-8459) VersioningCommitAuthor set to anonymous when principal is not an instance of UserDetails

Clarence Davis created an issue

GeoServer / BugGEOS-8459

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

Issue Type:

BugBug

Affects Versions:

2.11.0

Assignee:

Unassigned

Attachments:

Anonymous author.png

Created:

01/Dec/17 9:14 PM

Priority:

MediumMedium

Reporter:

Clarence Davis

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.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100074-sha1:1ce2642)

Atlassian logo