kvasilov48 / firephp

Automatically exported from code.google.com/p/firephp
0 stars 0 forks source link

Conflicting message headers #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I have (again) two modules (nette + dibi) and both uses Firephp. The sent 
headers are:

X-Wf-Protocol-nette http://meta.wildfirehq.org/Protocol/JsonStream/0.2
X-Wf-nette-Plugin-1 http://meta.firephp.org/Wildfire/Plugin/FirePHP/
Library-FirePHPCore/0.2.0
X-Wf-nette-Structure-1  http://meta.firephp.org/Wildfire/Structure/FirePHP/
FirebugConsole/0.1
X-Wf-nette-1-1-1    |[{"Type":"WARNING","Label":null},"any message"]|
X-Wf-nette-Index    1

X-Wf-Protocol-dibi  http://meta.wildfirehq.org/Protocol/JsonStream/0.2
X-Wf-dibi-Plugin-1  http://meta.firephp.org/Wildfire/Plugin/FirePHP/
Library-FirePHPCore/0.2.0
X-Wf-dibi-Structure-1   http://meta.firephp.org/Wildfire/Structure/FirePHP/
FirebugConsole/0.1
X-Wf-dibi-1-1-1 |[{"Type":...}]|
X-Wf-dibi-Index 1

There is problem with messages in different modules/namespaces and with 
same index (e.g. X-Wf-nette-1-1-1 and X-Wf-dibi-1-1-1). FirePHP is unable 
to handle them separately. Workaround is to use index-prefix in modules 
(for example X-Wf-nette-1-1-9001 and X-Wf-dibi-1-1-5001)

Original issue reported on code.google.com by davidgrudl on 29 Oct 2008 at 7:06

GoogleCodeExporter commented 9 years ago

Original comment by christ...@christophdorn.com on 29 Oct 2008 at 10:05

GoogleCodeExporter commented 9 years ago
Try using a different ID for the Plugin header:

X-Wf-Protocol-1 http://meta.wildfirehq.org/Protocol/JsonStream/0.2
X-Wf-1-Plugin-nette
http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.2.0
X-Wf-1-Structure-1  http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugCon
sole/0.1
X-Wf-1-1-nette-1    |[{"Type":"WARNING","Label":null},"any message"]|

X-Wf-1-Plugin-dibi
http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.2.0
X-Wf-1-1-dibi-1 |[{"Type":...}]|

You can also omit the "Index" header.

Original comment by christ...@christophdorn.com on 5 Nov 2008 at 11:30

GoogleCodeExporter commented 9 years ago

Original comment by christ...@christophdorn.com on 14 Apr 2009 at 5:54

GoogleCodeExporter commented 9 years ago

Original comment by christ...@christophdorn.com on 14 Apr 2009 at 6:04

GoogleCodeExporter commented 9 years ago

Original comment by christ...@christophdorn.com on 14 Apr 2009 at 6:07

GoogleCodeExporter commented 9 years ago
This should now work in FirePHP 1.0.

Original comment by christ...@christophdorn.com on 24 May 2011 at 11:36