Open Bug 1325126 Opened 8 years ago Updated 7 years ago

Strange JSON parsing error on Windows

Categories

(Bugzilla :: Bugzilla-General, defect, P1)

x86_64
Windows 10
defect

Tracking

()

Bugzilla 6.0

People

(Reporter: h2014313059, Assigned: dylanAtHome)

Details

Attachments

(1 file)

Attached file params.json
Running Bugzilla on windows 10 gives this error
Error parsing C:\Users\Anamika\bugzilla/data/params.json: JSON text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this) at Bugzilla/Config.pm line 326.
I can confirm this in my windows 10 vm as well. I'll try to solve it this evening so you can get that install working.

It's really useful to have someone working on developing under Windows :-D
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: general → dylan
Priority: -- → P1
Target Milestone: --- → Bugzilla 6.0
thanks Dylan :D
It looks like this is a bug in JSON::XS, sort of. Something about unix-style newlines makes it think the file contains a non-reference (e.g. a literal string or number) value even when it doesn't. Cpanel::JSON::XS does not have this problem.
This only happens under Thrall at the moment.

Anamika: For the time being, just run bugzilla with "plackup" and no -s Thrall. It will be slower, but this particular error will not happen.
Flags: needinfo?(h2014313059)
Flags: needinfo?(h2014313059)
Assignee: dylan → dylan
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: