Hi! Our customer has reported that sometimes when she uploads an image her name doesn't show up as "Created by" of that image, I have checked and verified that this is the case.
Instead my name shows up, which is bound to the user which I installed the Umbraco package when we started to build the site.
Has anyone encountered this issue and/or is aware of why it's happening?
Hi Tobias - What is the exact version of Umbraco 7 being used? I'm not sure but it may be an issue with some cache not being cleared properly depending on version and scenario.
Ok - Not sure whether this is a bug in 7.4.3 somehow? Have you checked the issue tracker to see if anyone has reported any similar issues?
Is it when she uploads new images or is it when she uploads images to replace some of the already existing images, which may have initially been uploaded by you during the development fase?
This may well be impossible but could it be anything to do with syncing development and production databases related to the user id. Maybe the first user 'you' in development has the same id as her in live and some wires get crossed. Only a stab in the dark as many unexplained issues seem to relate to migration.
If you look at the mediaservice userid is an optional parameter
public IMedia CreateMedia(string name, int parentId, string mediaTypeAlias, int userId = 0)
Its not really an explanation for you 'why' its happening but if the media item as a userid of 0 than that explains how it 'could' display you as the creator as you are probably the default user from when you set the website up.
I would create an event handler to hook into the media save events to either debug , logging the current logged in userid, or to do an additional check and possibly force it to apply the corrrct creator.
Wrong creator on some images
Hi! Our customer has reported that sometimes when she uploads an image her name doesn't show up as "Created by" of that image, I have checked and verified that this is the case.
Instead my name shows up, which is bound to the user which I installed the Umbraco package when we started to build the site.
Has anyone encountered this issue and/or is aware of why it's happening?
Thanks in advance!
Hi Tobias - What is the exact version of Umbraco 7 being used? I'm not sure but it may be an issue with some cache not being cleared properly depending on version and scenario.
/Jan
Hi Jan! This is the exact version:
Umbraco version 7.4.3 assembly: 1.0.5948.18141
Hi Tobias
Ok - Not sure whether this is a bug in 7.4.3 somehow? Have you checked the issue tracker to see if anyone has reported any similar issues?
Is it when she uploads new images or is it when she uploads images to replace some of the already existing images, which may have initially been uploaded by you during the development fase?
/Jan
This may well be impossible but could it be anything to do with syncing development and production databases related to the user id. Maybe the first user 'you' in development has the same id as her in live and some wires get crossed. Only a stab in the dark as many unexplained issues seem to relate to migration.
If you look at the mediaservice userid is an optional parameter
Its not really an explanation for you 'why' its happening but if the media item as a userid of 0 than that explains how it 'could' display you as the creator as you are probably the default user from when you set the website up.
Thanks for the replies!
@Jan it is when she uploads new images.
@Ian so far we only have one instance of the database so that cannot be the problem.
If it happened all the time I think the userId = 0 would be an explanation but it only occurs some times.
Any other ideas?
I would create an event handler to hook into the media save events to either debug , logging the current logged in userid, or to do an additional check and possibly force it to apply the corrrct creator.
Thanks Ian for the suggestion.
I also created an issue for this http://issues.umbraco.org/issue/U4-8737
is working on a reply...