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 217988 - Cannot modify record
Summary: Cannot modify record
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Web Services Client (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-07 11:36 UTC by Jiri Skrivanek
Modified: 2012-09-17 08:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-09-07 11:36:18 UTC
It is not possible to modify record. To reproduce:

- Create Web Project with GF as a target server (bug 217965 - register GlassFish in Services view)
- Use RESTful from Web Service from Database.
- Select MANUFACTURER table in the wizard.
- use Jersey specific features
- finish the wizard
- open new file wizard
- create "Web Services|Jersey Cross-Origin..."
- deploy project
- open new project wizard
- select "HTML/JavaScript|HTML 5 Application"
- finish the wizard with defaults
- right-click Site Root node and choose "New|RESTful JavaScript Client"
- click Browse to select "REST Project Resource"
- choose previously created web service
- select TableSorterUI and click Next
- click Finish
- run generated html file
- click some manufacturerid to show record
- change name to something different and click Save
- it fails with the following in Browser Log:

Failed to load resource: Connection refused: connect (12:33:38:574 | error, network)
  at http://localhost:8080/WebApplicationMFJersey/webresources/gg.manufacturer/
changing name from: Happy End Searching to: Happy End Searching1 (12:35:25:126)
  at public_html/RestClient.js:188
Uncaught TypeError: Cannot call method 'parent' of undefined (12:35:25:351 | error, javascript)
  caused by public_html/RestClient.js:205:31 (views.ModelView.Backbone.View.extend.save)
  http://code.jquery.com/jquery-1.7.2.min.js:3:4816 (f.event.dispatch)
  http://code.jquery.com/jquery-1.7.2.min.js:3:709 (f.event.add.h.handle.i)
Failed to load resource: the server responded with a status of 405 (Method Not Allowed) (12:35:25:670 | error, network)
  at http://localhost:8080/WebApplicationMFJersey/webresources/gg.manufacturer/19985678
Failed to load resource: the server responded with a status of 405 (Method Not Allowed) (12:35:25:671 | error, network)
  at http://localhost:8080/WebApplicationMFJersey/webresources/gg.manufacturer/19985678

--------------

  Product Version         = NetBeans IDE Dev (Build 201209070001) (#21bdda049506)
  Operating System        = Windows 7 version 6.1 running on amd64
  Java; VM; Vendor        = 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01; Oracle Corporation
Comment 1 Denis Anisimov 2012-09-13 13:54:36 UTC
web-main#e8e3edf38ef7
Comment 2 Quality Engineering 2012-09-14 02:09:54 UTC
Integrated into 'main-golden', will be available in build *201209140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e8e3edf38ef7
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#217988 - Cannot modify record
Comment 3 Jiri Skrivanek 2012-09-14 07:24:31 UTC
It still fails.

changing name from: Fast Boards to: Fast Boards9 (09:13:52:968)
  at public_html/r/RestClient.js:191
Uncaught TypeError: Cannot call method 'parent' of undefined (09:13:53:146 | error, javascript)
  caused by public_html/r/RestClient.js:208:31 (views.ModelView.Backbone.View.extend.save)
  http://code.jquery.com/jquery-1.7.2.min.js:3:4816 (f.event.dispatch)
  http://code.jquery.com/jquery-1.7.2.min.js:3:709 (f.event.add.h.handle.i)
Comment 4 Jiri Skrivanek 2012-09-14 08:02:06 UTC
I am sorry. It works. The record is successfully modified. I saw messages in browser log and thought it failed.
Comment 5 Denis Anisimov 2012-09-14 09:15:54 UTC
(In reply to comment #4)
> I am sorry. It works. The record is successfully modified. I saw messages in
> browser log and thought it failed.

So why it is still reopened ?
Comment 6 Jiri Skrivanek 2012-09-14 09:17:52 UTC
I thought you will comment what messages in browser log mean and possibly fix it.