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 248113 - Can not install twitter-bootstrap library
Summary: Can not install twitter-bootstrap library
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
: 248127 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-22 13:47 UTC by Petr Jiricka
Modified: 2014-10-23 09:05 UTC (History)
1 user (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 Petr Jiricka 2014-10-22 13:47:11 UTC
1. HTML5 project with bower unckecked.
2. In JavaScript Files in the customizer, tried to install twitter-bootstrap
3. Installation fails, the following exception is printed to the console:

INFO [org.netbeans.modules.javascript.cdnjs.LibraryCustomizer]: Installation of version 3.2.0 of library twitter-bootstrap failed!
java.io.IOException: Requested name contains invalid characters: css/bootstrap-theme
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:333)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:315)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:313)
	at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.runAsInconsistent(FileBasedFileSystem.java:122)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:318)
	at org.openide.filesystems.FileUtil.copyFileImpl(FileUtil.java:578)
	at org.openide.filesystems.FileObject.copy(FileObject.java:153)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.copy(BaseFileObj.java:263)
	at org.openide.filesystems.FileObject.move(FileObject.java:177)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.move(BaseFileObj.java:310)
	at org.openide.filesystems.FileUtil.moveFile(FileUtil.java:678)
	at org.netbeans.modules.javascript.cdnjs.LibraryCustomizer$StoreListener.installLibrary(LibraryCustomizer.java:301)
[catch] at org.netbeans.modules.javascript.cdnjs.LibraryCustomizer$StoreListener.updateLibraries(LibraryCustomizer.java:235)
	at org.netbeans.modules.javascript.cdnjs.LibraryCustomizer$StoreListener.run(LibraryCustomizer.java:142)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 1 Jan Stola 2014-10-22 14:03:44 UTC
Reproducible. This problem occurs for libraries that don't have all the files in the main directory (i.e. have some file in a sub-directory).
Comment 2 Jan Stola 2014-10-22 14:48:51 UTC
Fixed - the downloaded files are placed into correct sub-directories.

Modified file: https://hg.netbeans.org/web-main/rev/d3c695999a45
Comment 3 Vladimir Riha 2014-10-23 09:05:18 UTC
*** Bug 248127 has been marked as a duplicate of this bug. ***