question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom author name breaks when it's a template

See original GitHub issue

Summary:

The custom author name setting expects a username, unlike for example the similar field in UploadWizard. For example, when setting a custom author name that contains a template, it is wrapped in a User link.

For example, this revision contains:

|author=[[User:{{User:Samwilson/photographer|camera=g6}}|{{User:Samwilson/photographer|camera=g6}}]]

Steps to reproduce:

  1. Set a custom author name to a non-username string.
  2. Upload a photo.
  3. View the photo on Commons and look at the author= field.

It should only treat the custom author name as a username if it actually is. I’m not sure how UploadWizard does it, but the feature works well there.

Device and Android version:

  • LG G6

What make and model device (e.g., Samsung J7) did you encounter this on? What Android version (e.g., Android 4.0 Ice Cream Sandwich or Android 6.0 Marshmallow) are you running? Is it the stock version from the manufacturer or a custom ROM ?

Commons app version:

  • 2.11.0~93b948d20

Would you like to work on the issue?

No.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
samwilsoncommented, Mar 11, 2020

@misaochan thank you! that worked, now it’s uploading properly again! And no, the logs weren’t empty, but all they had for the current day was e.g. [file-logging-thread-1] [ContributionsSyncAdapter] : Received image File:2019-07-12 Fremantle Bowling Club, 4.jpg and nothing about uploading.

Anyway, the issue at hand still exists; custom author names can’t contain templates.

0reactions
samwilsoncommented, Mar 23, 2020

The string I get the bug with is {{User:Samwilson/photographer|camera=g6}}, i.e. anything that’s not a username, because the app then takes that string and puts it into [[User:x|x]] (where x is the string).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the default @author namein IntelliJ-IDEA ...
I'm searching a way to declare a template that can be shared by other project team members. It's important that the author name...
Read more >
WordPress Author Pages: How to Make Custom ... - ThemeIsle
Make and edit WordPress author pages with help from plugins, page builders, and custom code. We show you everything you must know about...
Read more >
How to Customize the Author's Page in WordPress
If you feel limited by your theme in creating a customized author's page in WordPress, here are three methods to create it.
Read more >
Create a custom template in Pages on Mac - Apple Support
In the template chooser, Control-click the template name, then choose Rename or Delete. If you're renaming, type a new name, then press Return....
Read more >
Custom Template Not Showing since v5.10.2 - WordPress.org
What is the name of the custom template file you've tried to use? It sounds like YARPP doesn't think it's valid and so...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found