Petals ESB Container

Unable to install a component using the Autoloader if the installation directory name contains a space character

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 4.2.3
  • Fix Version/s: 4.2.4, 5.0.0
  • Component/s: Autoloader
  • Security Level: Public
  • Description:
    Hide

    Set the server property petals.data.basedir to a directory name containing a space character: /tmp/dir with space.
    When you try to install a component copying its archive in the directory /tmp/dir with space/install, I get the following error:

    sample-0 2015/01/23 10:09:27,650 GMT+0100 WARNING [Petals.Extensions.AutoLoaderService.InstallDirectoryScannerImpl] : Unable to read a JBI descriptor
    java.io.FileNotFoundException: /tmp/dir%20with%20space/install/petals-bc-filetransfer-3.2.2.zip (Aucun fichier ou dossier de ce type)
    	at java.util.zip.ZipFile.open(Native Method)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:215)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:145)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:116)
    	at org.ow2.petals.microkernel.api.jbi.management.PackageHelper.loadDescriptor(PackageHelper.java:120)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.getJBIArchives(InstallDirectoryScanningTask.java:255)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.install(InstallDirectoryScanningTask.java:125)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.run(InstallDirectoryScanningTask.java:106)
    	at java.util.TimerThread.mainLoop(Timer.java:555)
    	at java.util.TimerThread.run(Timer.java:505)
    sample-0 2015/01/23 10:09:27,653 GMT+0100 WARNING [Petals.Extensions.AutoLoaderService.InstallDirectoryScannerImpl] : Unable to read a JBI descriptor
    java.io.FileNotFoundException: /tmp/dir%20with%20space/install/petals-bc-filetransfer-3.2.2.zip (Aucun fichier ou dossier de ce type)
    	at java.util.zip.ZipFile.open(Native Method)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:215)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:145)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:116)
    	at org.ow2.petals.microkernel.api.jbi.management.PackageHelper.loadDescriptor(PackageHelper.java:120)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.getJBIArchives(InstallDirectoryScanningTask.java:255)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.install(InstallDirectoryScanningTask.java:142)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.run(InstallDirectoryScanningTask.java:106)
    	at java.util.TimerThread.mainLoop(Timer.java:555)
    	at java.util.TimerThread.run(Timer.java:505)
    sample-0 2015/01/23 10:09:27,656 GMT+0100 WARNING [Petals.Extensions.AutoLoaderService.InstallDirectoryScannerImpl] : Unable to read a JBI descriptor
    java.io.FileNotFoundException: /tmp/dir%20with%20space/install/petals-bc-filetransfer-3.2.2.zip (Aucun fichier ou dossier de ce type)
    	at java.util.zip.ZipFile.open(Native Method)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:215)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:145)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:116)
    	at org.ow2.petals.microkernel.api.jbi.management.PackageHelper.loadDescriptor(PackageHelper.java:120)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.getJBIArchives(InstallDirectoryScanningTask.java:255)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.install(InstallDirectoryScanningTask.java:158)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.run(InstallDirectoryScanningTask.java:106)
    	at java.util.TimerThread.mainLoop(Timer.java:555)
    	at java.util.TimerThread.run(Timer.java:505)
    sample-0 2015/01/23 10:09:27,659 GMT+0100 WARNING [Petals.Extensions.AutoLoaderService.InstallDirectoryScannerImpl] : The archive 'petals-bc-filetransfer-3.2.2.zip' remains in the install list. PEtALS deletes it
    Show
    Set the server property petals.data.basedir to a directory name containing a space character: /tmp/dir with space. When you try to install a component copying its archive in the directory /tmp/dir with space/install, I get the following error:
    sample-0 2015/01/23 10:09:27,650 GMT+0100 WARNING [Petals.Extensions.AutoLoaderService.InstallDirectoryScannerImpl] : Unable to read a JBI descriptor
    java.io.FileNotFoundException: /tmp/dir%20with%20space/install/petals-bc-filetransfer-3.2.2.zip (Aucun fichier ou dossier de ce type)
    	at java.util.zip.ZipFile.open(Native Method)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:215)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:145)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:116)
    	at org.ow2.petals.microkernel.api.jbi.management.PackageHelper.loadDescriptor(PackageHelper.java:120)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.getJBIArchives(InstallDirectoryScanningTask.java:255)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.install(InstallDirectoryScanningTask.java:125)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.run(InstallDirectoryScanningTask.java:106)
    	at java.util.TimerThread.mainLoop(Timer.java:555)
    	at java.util.TimerThread.run(Timer.java:505)
    sample-0 2015/01/23 10:09:27,653 GMT+0100 WARNING [Petals.Extensions.AutoLoaderService.InstallDirectoryScannerImpl] : Unable to read a JBI descriptor
    java.io.FileNotFoundException: /tmp/dir%20with%20space/install/petals-bc-filetransfer-3.2.2.zip (Aucun fichier ou dossier de ce type)
    	at java.util.zip.ZipFile.open(Native Method)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:215)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:145)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:116)
    	at org.ow2.petals.microkernel.api.jbi.management.PackageHelper.loadDescriptor(PackageHelper.java:120)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.getJBIArchives(InstallDirectoryScanningTask.java:255)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.install(InstallDirectoryScanningTask.java:142)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.run(InstallDirectoryScanningTask.java:106)
    	at java.util.TimerThread.mainLoop(Timer.java:555)
    	at java.util.TimerThread.run(Timer.java:505)
    sample-0 2015/01/23 10:09:27,656 GMT+0100 WARNING [Petals.Extensions.AutoLoaderService.InstallDirectoryScannerImpl] : Unable to read a JBI descriptor
    java.io.FileNotFoundException: /tmp/dir%20with%20space/install/petals-bc-filetransfer-3.2.2.zip (Aucun fichier ou dossier de ce type)
    	at java.util.zip.ZipFile.open(Native Method)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:215)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:145)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:116)
    	at org.ow2.petals.microkernel.api.jbi.management.PackageHelper.loadDescriptor(PackageHelper.java:120)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.getJBIArchives(InstallDirectoryScanningTask.java:255)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.install(InstallDirectoryScanningTask.java:158)
    	at org.ow2.petals.extension.autoloader.InstallDirectoryScanningTask.run(InstallDirectoryScanningTask.java:106)
    	at java.util.TimerThread.mainLoop(Timer.java:555)
    	at java.util.TimerThread.run(Timer.java:505)
    sample-0 2015/01/23 10:09:27,659 GMT+0100 WARNING [Petals.Extensions.AutoLoaderService.InstallDirectoryScannerImpl] : The archive 'petals-bc-filetransfer-3.2.2.zip' remains in the install list. PEtALS deletes it
  • Environment:
    -

Issue Links

Activity

Hide
Christophe DENEUX added a comment - Fri, 23 Jan 2015 - 10:10:58 +0100 - edited

The problem seems to be due to "%20" that replace space in directory name. "%20" is the value of a space encoded for URL/URI.

Show
Christophe DENEUX added a comment - Fri, 23 Jan 2015 - 10:10:58 +0100 - edited The problem seems to be due to "%20" that replace space in directory name. "%20" is the value of a space encoded for URL/URI.
Christophe DENEUX made changes - Fri, 23 Jan 2015 - 10:10:58 +0100
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Christophe DENEUX made changes - Fri, 23 Jan 2015 - 12:37:11 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Fri, 23 Jan 2015 - 14:49:35 +0100

Fix in branch petals-enterprise-4.2.x

Show
Christophe DENEUX added a comment - Fri, 23 Jan 2015 - 14:49:35 +0100 Fix in branch petals-enterprise-4.2.x
Christophe DENEUX made changes - Fri, 23 Jan 2015 - 14:49:35 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 4.2.4 [ 10503 ]
Resolution Fixed [ 1 ]
Hide
Christophe DENEUX added a comment - Fri, 23 Jan 2015 - 14:49:48 +0100

Reopen to be merged in trunk

Show
Christophe DENEUX added a comment - Fri, 23 Jan 2015 - 14:49:48 +0100 Reopen to be merged in trunk
Christophe DENEUX made changes - Fri, 23 Jan 2015 - 14:49:48 +0100
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Fri, 23 Jan 2015 - 17:09:14 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Fri, 23 Jan 2015 - 17:09:28 +0100

Merged in trunk

Show
Christophe DENEUX added a comment - Fri, 23 Jan 2015 - 17:09:28 +0100 Merged in trunk
Christophe DENEUX made changes - Fri, 23 Jan 2015 - 17:09:28 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 4.3.0 [ 10413 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Fri, 23 Jan 2015 - 17:10:02 +0100
Link This issue blocks PETALSESBCONT-316 [ PETALSESBCONT-316 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
1m 8s
1
Christophe DENEUX
Fri, 23 Jan 2015 - 10:10:58 +0100
Open Open In Progress In Progress
2h 26m
1
Christophe DENEUX
Fri, 23 Jan 2015 - 12:37:11 +0100
In Progress In Progress Resolved Resolved
2h 12m
1
Christophe DENEUX
Fri, 23 Jan 2015 - 14:49:35 +0100
Resolved Resolved Open Open
13s
1
Christophe DENEUX
Fri, 23 Jan 2015 - 14:49:48 +0100
Open Open In Progress In Progress
2h 19m
1
Christophe DENEUX
Fri, 23 Jan 2015 - 17:09:14 +0100
In Progress In Progress Resolved Resolved
14s
1
Christophe DENEUX
Fri, 23 Jan 2015 - 17:09:28 +0100



People

Dates

  • Created:
    Fri, 23 Jan 2015 - 10:09:50 +0100
    Updated:
    Mon, 5 Oct 2015 - 11:18:06 +0200
    Resolved:
    Fri, 23 Jan 2015 - 17:09:28 +0100