Author Topic: [Bug] Wrong path separator in requesting download  (Read 3752 times)

payl

  • 68 Carbine
  • Posts: 365
[Bug] Wrong path separator in requesting download
« on: July 15, 2011, 02:06:06 PM »
Okay, i'm not sure how to name this bug, so follow these steps to reproduce:
You will need: 1. Windows server 2. Windows client (not in same directory as server)

1) Put some map in server maps SUBdirectory, which client DOESN'T have. It could be beta directory for example.
2) Run server and change map to this one which you copied.
3)Try to connect to this server from client which doesn't have this map, and it will try to download it.

Example result:
Client:
Code: [Select]
Connecting to 192.168.1.247:27920...
192.168.1.247:27920: challenge
192.168.1.247:27920: client_connect


 -----------------------------------


PGP-Train by JonnY

Requesting maps/beta\pgptrain_b4.bsp.
Server does not have this file or
refused download.
********************
ERROR: Couldn't load
maps/beta\pgptrain_b4.bsp.
********************
]condump test
Dumped console text to
./pball/test.txt.

Server:
Code: [Select]
noname2020 connected [192.168.1.247:7861]
Note this only occur at Windows server and Windows client. Not sure if on linux client or any other combination, but looks like linux server doesn't have this problem.

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: [Bug] Wrong path separator in requesting download
« Reply #1 on: July 15, 2011, 04:39:51 PM »
I can reproduce it.

Are there more than this 5 options to get it?
1. Use the wrong path separator with the newmap command.
2. Use the wrong path separator with the nextmap command.
3. Use the wrong path separator in the rotation file.
4. Add a map with the wrong path separator ingame to the rotation.
5. Vote for a map with the wrong path separator to add it to the rotation.

payl

  • 68 Carbine
  • Posts: 365
Re: [Bug] Wrong path separator in requesting download
« Reply #2 on: July 15, 2011, 04:56:09 PM »
Quote
Use the wrong path separator
It's right path separator in Windows. I didn't even heard about specification which says i should use / instead of \ while changing map in Paintball2. So i change map right, but Paintball handle it wrongly. :P

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: [Bug] Wrong path separator in requesting download
« Reply #3 on: February 08, 2012, 11:41:05 AM »
http://dplogin.com/dplogin/featurevote/feature.php?id=10286

Put this in the feature vote as a tweak so I don't forget about it.  It should be a quick fix, but I can't do it right now.

xrichardx

  • 68 Carbine
  • Posts: 295
Re: [Bug] Wrong path separator in requesting download
« Reply #4 on: May 23, 2015, 02:57:48 PM »
I uploaded a small clientside fix for this to the repository, the client will now always request files with the forward slash as path separator.