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 229814 - REST Java Client wizard generates uncompilable code - SSL and BASIC authentication
Summary: REST Java Client wizard generates uncompilable code - SSL and BASIC authentic...
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 7.3.1
Hardware: All All
: P2 normal (vote)
Assignee: issues@webservices
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-16 02:22 UTC by David Konecny
Modified: 2013-06-04 02:38 UTC (History)
2 users (show)

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 David Konecny 2013-05-16 02:22:32 UTC
Using "REST Java Client" wizard and ticking SSL or choosing BASIC authentication results into code which is not compilable because it is uses Jersey specific API.

SSL options generates:

  client.setProperty(
    org.glassfish.jersey.client.ClientProperties.SSL_CONFIG,
    new org.glassfish.jersey.client.SslConfig(
      getHostnameVerifier(), getSSLContext()));

BASIC authentication generates:

  client.register(
    new org.glassfish.jersey.client.filter.HTTPBasicAuthFilter(
      username, password));
Comment 1 Petr Jiricka 2013-05-28 08:38:11 UTC
Waiving this bug for 7.3.1.
Comment 2 David Konecny 2013-06-04 02:38:22 UTC
This should be solved by issue 229897.