This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 146531 - The monitor doesn't work with php project
Summary: The monitor doesn't work with php project
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: HTTP Monitor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Sonali Kochar
URL:
Keywords:
Depends on: 148436
Blocks:
  Show dependency tree
 
Reported: 2008-09-08 16:25 UTC by Petr Pisl
Modified: 2008-09-30 00:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The example php project (2.88 KB, application/x-compressed)
2008-09-09 14:12 UTC, Petr Pisl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2008-09-08 16:25:55 UTC
Product Version: NetBeans IDE Dev (Build 080908)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b12
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)

I have simple php project with one php file. When I have started the javascript debugger session and open the monitor,
the monitor shows only the first request on the page. When I reload the page, then the monitor shows only the first one.
Comment 1 Sonali Kochar 2008-09-08 20:39:24 UTC
Can you please attach the project? it will help debug..
Comment 2 Petr Pisl 2008-09-09 14:12:56 UTC
Created attachment 69405 [details]
The example php project
Comment 3 Petr Pisl 2008-09-09 14:34:07 UTC
Steps what I do:

1) start today's php build with clean userdir
2) open attached project or create new one and just replace the index.php from the attached project.
3) open the client-site http monitor
4) press debug the project button - FireFox is started and in the ide is opened the idnex.php[r/o] file
No record in the editor 
Error 1: shouldn't be the editor started by default?
5) Press the Start/Stop HTTP Monitor button (green round button in the monitor) nothing happen. The button is still green.
6) Reload the page in the browser. 
Error 2: It looks like the HTTTP Monitor is not still started. Still nothing recorded. 
7) Press the Start/Stop HTTP Monitor button again. Finally - the button is changed to the red square. 
Still Error2 because you have to press the Start/Stop HTTP Monitor button twice to get it run. 
8) Reload the page in the browser.
Finally I have a record in the monitor. 
9) Select the record and open the Body tab
Error 3: the body tab is empty. Why?
10) Reload the page in the browser.
Error 4: the monitor shows only the first record, it doesn't show the new one.
11) Open index.php and change the content. For example on line 39 the parameter of the changeTitle function 
12) Save the index.php and reload the page in the browser.
Still Error 4: the monitor shows only the first record.  
Comment 4 _ krystyna 2008-09-10 21:16:09 UTC
I see the empty file url (r/o) object, with/without involving the 
monitor. First passing to Quy.

There is an open bug for the monitor being in stopped state, #146425.
Comment 5 _ krystyna 2008-09-10 22:37:35 UTC
Assigning back to Sonali. Empty file url was my mistake. I do see that there is
only one GET produced despite continuous refresh. 
Comment 6 Quy Nguyen 2008-09-25 04:40:06 UTC
Changesets: 8d580b40f1bc e4186f3f4dc7 27567087e716 577791f1aff4

I believe most of the issues have been fixed by these changesets, other than:

1) Blank response body tab - being worked on by sonali
2) Page GET requests not stacking - this is by design, I believe.  Whenever the page changes (or is refreshed), the list
is cleared.  It should work much more consistently now.  Requests coming from the same page will stack, though.
Comment 7 Quality Engineering 2008-09-25 17:54:41 UTC
Integrated into 'main-golden', will be available in build *200809251401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8d580b40f1bc
User: Quy Nguyen <quynguyen@netbeans.org>
Log: #146531 - Fix page GET requests
Comment 8 Sonali Kochar 2008-09-25 23:50:03 UTC
The response body is blank because the JEditorPane is trying to render the HTML page and runs into issue with
php/js..Setting the editor kit of JEditorPane to HTMLKit for "text/html" solves this issue. We get the response source
code and not the rendering. To use HTMLKit, we need to add client.tools.impl as friend to html.editor. Please see bug 148436

http://www.netbeans.org/issues/show_bug.cgi?id=148436
Comment 9 Sonali Kochar 2008-09-26 20:10:40 UTC
Fixed
author	sonali@netbeans.org
Fri Sep 26 12:08:45 2008 -0700 (86 seconds ago)
changeset 104156	a860b18ea044
Comment 10 Quality Engineering 2008-09-27 05:40:54 UTC
Integrated into 'main-golden', will be available in build *200809270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a860b18ea044
User: sonali@netbeans.org
Log: Fix for issue#146531 The monitor doesn't work with php project
Comment 11 _ krystyna 2008-09-30 00:07:00 UTC
Verified in NetBeans IDE Dev (Build 20080929142249)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1