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 243984 - URL of documentation changed to HTTPS - no help for directives
Summary: URL of documentation changed to HTTPS - no help for directives
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-22 06:50 UTC by Vladimir Riha
Modified: 2014-04-27 12:49 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 Vladimir Riha 2014-04-22 06:50:42 UTC
To reproduce, start IDE with fresh user dir and cache dir, create a new HTML project and add e.g. ng-app="" to body element. Place cursor like 

ng-ap|p=""

and invoke cc. AngularJS documentation should start loading, however it was moved and help window shows "301 Moved Permanently" instead of proper documentation. The URL original

http://code.angularjs.org/1.2.12/docs/partials/api/ng.directive:ngApp.html

has changed to HTTPS

https://code.angularjs.org/1.2.12/docs/partials/api/ng.directive:ngApp.html

Browser can handle the redirect, but IDE cannot.
Comment 1 Vladimir Riha 2014-04-22 06:51:38 UTC
Too late for patch1 but possible patch candidate for later
Comment 2 Petr Pisl 2014-04-22 07:49:12 UTC
Fixed in web-main: http://hg.netbeans.org/web-main/rev/ffaeea96715a

The fix is not ok for me. The default version of documentation is sets to 1.2.16. The version can be also set through the system property nb.angular.doc.version, so user can set the version from command line -J-Dnb.angular.doc.version='1.2.17' for example or in netbeans.config file.

The format of the url was changed between 1.2.13 and 1.2.14. So the current implementation works from 1.2.14. 

IMHO the best solution would be to have the url property in the ui and should be per project.
Comment 3 Vladimir Riha 2014-04-22 12:35:47 UTC
Thanks for quick fix, verified

Product Version: NetBeans IDE Dev (Build web-main-749-on-20140422)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 4 Quality Engineering 2014-04-23 02:07:12 UTC
Integrated into 'main-silver', will be available in build *201404230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ffaeea96715a
User: Petr Pisl <ppisl@netbeans.org>
Log: #243984 - URL of documentation changed to HTTPS - no help for directives
Comment 5 Petr Pisl 2014-04-23 07:17:28 UTC
Transplanted to the releases/releas80. http://hg.netbeans.org/releases/rev/0fd133e23087
Comment 6 Quality Engineering 2014-04-24 02:14:50 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/0fd133e23087
User: Petr Pisl <ppisl@netbeans.org>
Log: #243984 - URL of documentation changed to HTTPS - no help for directives
Comment 7 Vladimir Riha 2014-04-27 12:49:12 UTC
verified in patch1

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1
Java: 1.7.0_55; Java HotSpot(TM) Client VM 24.55-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_55-b13
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)