Skip to content

Upon deletion request, notification should be sent to uploader, not author #3147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Perhelion opened this issue Sep 5, 2019 · 8 comments · Fixed by #3232
Closed

Upon deletion request, notification should be sent to uploader, not author #3147

Perhelion opened this issue Sep 5, 2019 · 8 comments · Fixed by #3232

Comments

@Perhelion
Copy link

Perhelion commented Sep 5, 2019

As I can't find this in the documentation (but now here on Issues on a screenshot) I reported here: https://phabricator.wikimedia.org/T232142 (closed because of this).

Edit: The relevant code seems here:

"User_Talk:" + media.getCreator(), summary);

It seems very false to take the creator of the file (but I don't get the code on

As a maintainer of the desktop version, I can say there is an Api request needed to get the list of uploaders (here it seems there is only taken a single user/string, but I don't understand Java really).

@Achim55
Copy link

Achim55 commented Sep 10, 2019

During the past 2 weeks I noticed a malfunction that might be a bug of this app: If a user creates a deletion request the notification is not sent to the uploader as it should be but to the name the 'author' field contains. If author and uploader are the same that doesn't matter but if the author (for example an author name imported from flickr) doesn't have a user account on Commons the notification fails. One of several examples can be seen here: https://commons.wikimedia.org/wiki/User_talk:David_W._Carmichael --Achim55
Next hit as of today: https://commons.wikimedia.org/wiki/User_talk:%D0%9C%D0%BE%D0%BD%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%81%D1%82_g.K.

@nicolas-raoul: This bug is a real problem. I don't like to fix almost daily the bad results on Commons. Best, Achim55 (Sysop on Commons)

Next hit: https://commons.wikimedia.org/wiki/User_talk:Luigi_Novi
Next hit: https://commons.wikimedia.org/wiki/User_talk:Amazon
Next hit: https://commons.wikimedia.org/wiki/User_talk:Chris_Wonderly
Should we disable Android access to Commons temporarily? Achim.

Next hit: https://commons.wikimedia.org/wiki/User_talk:D%C3%A9partement_des_Hauts-de-Seine
Next hit: https://commons.wikimedia.org/wiki/User_talk:Original:_Unknown,_foto%C4%9Fraf:_Rachmat04
Next hit: https://commons.wikimedia.org/wiki/User_talk:Tadeusz_Mieczy%C5%84ski
Next hit: https://commons.wikimedia.org/wiki/User_talk:Meodipt_(talk)
Next hit: https://commons.wikimedia.org/wiki/User_talk:Cobus_Rademeyer
Next hit: https://commons.wikimedia.org/wiki/User_talk:Warner_Bros.
@misaochan : Is there a real chance to get this issue solved?

@Perhelion Perhelion changed the title This app can do deletion requests? Bug: This app can do deletion requests? Sep 16, 2019
@Perhelion Perhelion changed the title Bug: This app can do deletion requests? Bug: This app can do deletion requests! Sep 27, 2019
@misaochan misaochan changed the title Bug: This app can do deletion requests! Upon deletion request, notification should be sent to uploader, not author Oct 9, 2019
@misaochan
Copy link
Member

misaochan commented Oct 9, 2019

Sorry, seems like we missed this (I was only notified of the ping today). Yes, we should be able to fix this shortly. Just to be clear what is needed - for instance, for https://commons.wikimedia.org/wiki/File:8.1.19VaughanChiangByLuigiNovi30.jpg we should send the notification to User:Nightscream, correct?

@Achim55
Copy link

Achim55 commented Oct 9, 2019

Correct, thank you.

@misaochan
Copy link
Member

Thanks for the confirmation, this will be included in the next release.

@IgnacioGarcia198
Copy link
Contributor

Hello I found this lines

.append("|author=[[User:").append(creator).append("|").append(creator).append("]]\n");

The previous line belongs to the method called in this line:

Initially called from here
private void uploadContribution(Contribution contribution) {

which looks kind of fishy. I mean, if we are providing the creator value to the user field by default.
In the response from the API one can see something like this:
<a href="http://commons.wikimedia.org/wiki/User:Sanjay_ach" title="User:Sanjay ach">Sanjay ach</a>

@maskaravivek
Copy link
Member

Can someone help in summarising the issue for me?

I am confused because of @IgnacioGarcia198's comment. Is there an issue while uploading the picture or is there an issue while nominating a file for deletion?

Based on the initial comments posted on this issue thread, my understanding is that for https://commons.wikimedia.org/wiki/File:8.1.19VaughanChiangByLuigiNovi30.jpg, the app should try to notify, User:Nightscream instead of trying to send a notification to Luigi Novi.

As of now, the app sees the following value and picks the text instead of title/user url.

<a href=\"//commons.wikimedia.org/wiki/User:Nightscream\" title=\"User:Nightscream\">Luigi Novi</a>

@misaochan @Perhelion

@IgnacioGarcia198
Copy link
Contributor

@maskaravivek I was checking in the master branch. Should I check a different one? Actually on master it seems the code in DeleteHelper has changed, the issue might be different now. The same line @Perhelion referred to is looking like this now:

return pageEditClient.appendEdit("User_Talk:" + username, userPageString + "\n", summary);

And after following for a while where the value of user variable was coming from, I ended up thinking it is coming from the backend so it might be the case the creator was saved as the user in the backend. (I do not know much about this backend so cannot say anything concluding).

@misaochan
Copy link
Member

misaochan commented Nov 27, 2019

Based on the initial comments posted on this issue thread, my understanding is that for https://commons.wikimedia.org/wiki/File:8.1.19VaughanChiangByLuigiNovi30.jpg, the app should try to notify, User:Nightscream instead of trying to send a notification to Luigi Novi.

Yes, this is correct according to @Achim55 's reply to me. So we should pick the title/user url, not the text.

Is there an issue while uploading the picture or is there an issue while nominating a file for deletion?

Nominating the file for deletion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants