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 156607 - [testclient] should not allow to call unsupported requests
Summary: [testclient] should not allow to call unsupported requests
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-12 12:13 UTC by Lukas Jungmann
Modified: 2014-07-22 02:33 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 Lukas Jungmann 2009-01-12 12:13:53 UTC
-have a customerDB sample
-run test rest action on the project
-select to customers -> {customerId}
-set customerID to '1' and MIME to 'text/xml'
-run test

=> server returns: "Status: 406 (Not Acceptable)" because no method in the resource produces "text/xml"

=> we should not show unsupported MIMEs in the test client - in this case text/* and image/* should not be shown/allowed
for selection
Comment 1 Denis Anisimov 2010-10-28 10:19:06 UTC
This big is still valid.
Comment 2 Denis Anisimov 2011-10-07 06:35:27 UTC
Minor issue actually.
It seems all available mimes are represented in the combobox.
But combobox should have only mimes that are allowed for currently chosen REST operation.
It means that combobox content should be changed dynamically based on context.
This is plain JS work and I'm not an expert in JS.
Postpone to the next release.
Comment 3 Milan Kuchtiak 2014-07-18 20:09:10 UTC
Fixed:

See:
http://hg.netbeans.org/web-main/rev/6e7b2ef449b8
Comment 4 Quality Engineering 2014-07-22 02:33:38 UTC
Integrated into 'main-silver', will be available in build *201407220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6e7b2ef449b8
User: Milan Kuchtiak <mkuchtiak@netbeans.org>
Log: #156607: Test RESTful Services JavaScript client - resolve correctly mime-types for sub-resources