[MC-9273] Whitelist is overwritten on start up to only have lowercase Created: 06/Feb/13  Updated: 04/Apr/16  Resolved: 22/Jan/14

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.7
Fix Version/s: None

Type: Bug
Reporter: Seppi Assignee: Unassigned
Resolution: Incomplete Votes: 1
Labels: None
Environment:

Ubuntu 12.04 32 bit
java version "1.6.0_37"


Issue Links:
Relates
relates to MC-100451 whitelist add command suggesting play... Resolved
relates to MC-3834 Whitelist requires lower case names t... Resolved
CHK:
Confirmation Status: Confirmed
Game Mode: Survival

 Description   

When the server starts up, the whitelist is reformatted to only contain lowercase names.

This is a problem when one is using http://www.minecraft.net/skin/<user>.png.

Either the whitelist should not be overwritten or minecraft.net/skin/<user>.png ought to lowercase the input.



 Comments   
Comment by Galaxy_2Alex [ 22/Jan/14 ]

This ticket is incomplete without the requested information, no response has been received within a reasonable time and we are assuming the issue has been resolved. If you are still experiencing this issue, we can reopen it at your request.
Please review the guidelines before reporting issues.

Comment by Tails [ 18/Mar/13 ]

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Seppi [ 07/Feb/13 ]

@Kumasasa

I misread the second half of your post.

This would be an excellent fix for both this ticket and MC-3834.

Comment by Seppi [ 06/Feb/13 ]

@Kumasasa Good point.

Would it be possible to have `minecraft.net/skin/<user>.png` convert to lowercase names then?

Comment by Seppi [ 06/Feb/13 ]

@CubeTheThird That would be a good workaround, but it is an excessive solution to a simple problem, especially considering that you would have to loop it.

Comment by Kumasasa [ 06/Feb/13 ]

The two issues are related:
MC-3834: The whitelist works only when the playernames are completely lowercased, the game does this for you -> This ticket.

But if the game a) would compare the lowercase(playernam) against lowercase(entries of whitelist.txt), there would be no need to rewrite it lowercased and thus b) this issue would be co-fixed.

Comment by [Mod] CubeTheThird [ 06/Feb/13 ]

I suppose that if the player hasn't logged in there isn't much one can do, but if they have you could do something like:

$player=`grep -i $player server.log | head -n 1`
Comment by Seppi [ 06/Feb/13 ]

That's a good idea for a workaround, but it doesn't include players who are on the white list that have not logged in, and then players that were removed from the white list but have logged in.

Also, this bug doesn't have anything to do with https://mojang.atlassian.net/browse/MC-3834, please remove the link.

Comment by [Mod] CubeTheThird [ 06/Feb/13 ]

Couldn't you just use the names in the server log? Those maintain their case.

Comment by Seppi [ 06/Feb/13 ]

For third party scripts that want to use the whitelist.

e.g.;

<?php
$players = explode(trim(file_get_contents("whitelist.txt")));
foreach($players as $player){
echo "<img src='http://www.minecraft.net/skin/$player.png' />\n";
}
?>

This only works for usernames that are lowercase.

Here's a working example as well;

https://github.com/josefnpat/minecraft_server/blob/master/www/index.php#L93

Comment by Kumasasa [ 06/Feb/13 ]

Of course does http://www.minecraft.net/skin/kumasasa.png not work, but http://www.minecraft.net/skin/Kumasasa.png does work, but what has this to do with the whitelist.txt ?

Generated at Sun Jan 12 12:20:32 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.