wxURL can't download file with a path
|Reported by:||kervala||Owned by:|
In wxURL, m_path member is full of garbage characters so GetInputStream fails.
The first method which returns a bad path is wxURI::ParsePath and inside this method, the code responsible for bad conversion seems to be :
Normalize(theBuffer, true); line 655 from src/common/uri.cpp
I don't understand the goal of this method so my temporary fix is to not normalize the path.
To reproduce this bug, I simply use :
wxURL data(_T("http://www.kervala.net/index.htm")); any URL with a path has the same problem
wxInputStream *input = data.GetInputStream(); <- crash
Thanks a lot for fixing this.
Change History (16)
Changed 8 years ago by kervala
comment:11 Changed 8 years ago by kervala
- Keywords wxURI added
- Milestone set to 2.9.0
- Patch set
- Priority changed from normal to high
- Version set to 2.9-svn
comment:14 Changed 8 years ago by vadz
- Resolution set to fixed
- Status changed from confirmed to closed