Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008477TestLinkGeneralpublic2018-11-15 15:542018-11-24 09:58
Assigned Tofman 
PlatformWinOSWindows 10OS Version
Product Version1.9.18 (2018 Q3) 
Fixed in Version1.9.19 (2019 Q1) 
Summary0008477: TestLink are not setting headers because of problem with translation loading
DescriptionHello everyone,

I found a problem with TestLink that is problematic for Polish users.
If you'll set Polish language as main it will cause that TestLink will be unable to send in response any proper header back to server.

It happening because file with Polish translation \locale\pl_PL\strings.txt is saved incorrectly as UTF-8 with BOM (should be UTF-8 without BOM) witch causing problem for method require() to parse it properly. It is parsed without any error but that BOM from settings.txt causing output to be polluted.

Because of that method header() not working at all, because it have to be called before anything else, witch causing more problems.
Steps To Reproduce1. Install TestLink
2. Change language to Polish (pl_PL)
3. Add any file as attachment
4. Try to download it in Chrome

it will cause flushing a file into browser window because header is set to text/html.
Any header added in lib\attachments\attachmentdownload.php is ignored.
Additional InformationPlease remove BOM from polish translation file in next release.
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL57
PHP Version7.1
QA Team - Task Workflow StatusTBD
Attached Filestxt file icon strings.txt [^] (190,559 bytes) 2018-11-19 13:24 [Show Content]

- Relationships
child of 0008397closedfman Availables hot-fixes for 1.9.18 & How To get full fixed package from GitHub 

-  Notes
fman (administrator)
2018-11-17 08:31

would you mind to provide the file with right coding ?
lordsqn (reporter)
2018-11-19 13:25

Here you go. File is from official 1.9.18 version with correct encoding.
fman (administrator)
2018-11-24 09:03 [^]

- Issue History
Date Modified Username Field Change
2018-11-15 15:54 lordsqn New Issue
2018-11-16 11:04 fman QA Team - Task Workflow Status => TBD
2018-11-16 11:04 fman Priority high => normal
2018-11-17 08:31 fman Note Added: 0028245
2018-11-17 08:32 fman Assigned To => fman
2018-11-17 08:32 fman Status new => feedback
2018-11-19 13:24 lordsqn File Added: strings.txt
2018-11-19 13:25 lordsqn Note Added: 0028248
2018-11-19 13:25 lordsqn Status feedback => assigned
2018-11-24 09:03 fman Note Added: 0028266
2018-11-24 09:03 fman Fixed in Version => 1.9.19 (2019 Q1)
2018-11-24 09:03 fman Relationship added child of 0008397
2018-11-24 09:58 fman Status assigned => resolved
2018-11-24 09:58 fman Resolution open => fixed

Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker