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.
Summary: | The monitor doesn't work with php project | ||
---|---|---|---|
Product: | javaee | Reporter: | Petr Pisl <ppisl> |
Component: | HTTP Monitor | Assignee: | Sonali Kochar <sonali> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 148436 | ||
Bug Blocks: | |||
Attachments: | The example php project |
Description
Petr Pisl
2008-09-08 16:25:55 UTC
Can you please attach the project? it will help debug.. Created attachment 69405 [details]
The example php project
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. 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. Assigning back to Sonali. Empty file url was my mistake. I do see that there is only one GET produced despite continuous refresh. 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. 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 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 Fixed author sonali@netbeans.org Fri Sep 26 12:08:45 2008 -0700 (86 seconds ago) changeset 104156 a860b18ea044 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 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 |