Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

user-mapping seems broken #2

Closed
niklaas-0rbit opened this issue Sep 26, 2017 · 2 comments
Closed

user-mapping seems broken #2

niklaas-0rbit opened this issue Sep 26, 2017 · 2 comments
Assignees
Labels

Comments

@niklaas-0rbit
Copy link

Version: Confluence 6.4.1
Type: Bug


Description

user mapping from sender mail-addresses to confluence-users seems to be broken. pages only gets created as 'Anonymous'.

Steps to reproduce

  1. send email to configured mail-address
  2. check the created page
@gellweiler gellweiler self-assigned this Sep 27, 2017
@gellweiler gellweiler added the bug label Sep 27, 2017
@gellweiler
Copy link
Contributor

This is a confirmed bug with newer confluence versions.

MessageParser::getSender() will fail to get a valid user from e-mail, because userAccessor.getUsersByEmail() for some reason won't return a ConfluenceUser object. When saving the blog post one has to use an object of type ConfluenceUser. Verifying if the user is in a group will work with any User object tough, so sender verification will work.

Currently the following code in MessageToBlogPostProcessor::process()will set the user to anonymous (null) if the User object is not of type ConfluenceUser:

post.setCreator((sender instanceof ConfluenceUser) ? (ConfluenceUser)sender : null);

@gellweiler
Copy link
Contributor

Fixed in Version 1.1.

gellweiler added a commit that referenced this issue Sep 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants