Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1489785
Summary: | [WIN] When applying CP from deep directory structure an The directory name is too long err is thrown | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Filip Brychta <fbrychta> | ||||
Component: | Launch Scripts | Assignee: | Josejulio Martínez <jmartine> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Mike Foley <mfoley> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | JON 3.3.9 | CC: | jmartine | ||||
Target Milestone: | --- | ||||||
Target Release: | JON 3.3.11 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-04-19 14:49:22 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
It seems that the errors are given by the following command: dir /a-r /s /b "%PATCH_HOME%\jon-server-updates" The output of this command is used to verify if we have write permissions on the files and halt the updates if any file doesn't have write permission. This bug removes that capability for files that are about 260+ characters (I read somewhere 256). So if the PATCH_HOME is 260 characters long, it would skip that check for all the files. I'm not aware of any alternatives for `dir`, our only alternative would be detecting if the `dir` command failed and create a custom (java) application to output the files. Still, need to check if the commands to check if the file is writable don't fail (they might do), if so, the custom java application might need to take care of that check too. Calling ATTRIB on a "too long" directory or any of its contents, yields: Parameter format not correct - Will migrate the whole write check to java Triage: Larry, Simeon, Filip - not a customer issue, fix could be risky -> closing as won't fix |
Created attachment 1323697 [details] update log Description of problem: Following error is thrown when applying patch from deep directory structure like c:\Program Files\reeeeeeeeeealy-very-long-path\jon-server-3.3.0.GA-update-09>app ly-updates.bat The directory name c:\Program Files\reeeeeeeeeealy-very-long-path\jon-server-3.3 .0.GA-update-09\jon-server-updates\modules\org\rhq\server-startup\main\deploymen ts\rhq.ear\rhq-portal.war\WEB-INF\classes\org\rhq\enterprise\gui\legacy\action\r esource\common\monitor\alerts\config\condition is too long. Version-Release number of selected component (if applicable): JON 3.3.9.DR01 but very probably in previous versions as well How reproducible: Always Steps to Reproduce: 1. extract jon server to e.g. c:\jon-server-3.3.0.GA\ 2. extract CP9 to c:\Program Files\reeeeeeeeeealy-very-long-path\jon-server-3.3 .0.GA-update-09\ 3. apply the patch: apply-updates.bat c:\jon-server-3.3.0.GA\jon-server-3.3.0.GA Actual results: c:\Program Files\reeeeeeeeeealy-very-long-path\jon-server-3.3.0.GA-update-09>app ly-updates.bat c:\jon-server-3.3.0.GA\jon-server-3.3.0.GA [Fri 09/08/2017 11:09:43.17] Starting Update Detected 'jon-server-updates.zip' has not yet been unpacked. Extracting. This ma y take a few moments... Successfully detected server to update [c:\jon-server-3.3.0.GA\jon-server-3.3. 0.GA] Proceeding with application of patch [09] to [c:\jon-server-3.3.0.GA\jon-serve r-3.3.0.GA] Did not detect agent to update at [c:\jon-server-3.3.0.GA\jon-server-3.3.0.GA\ ..\rhq-agent] Assessing permissions needed during update process.... The directory name c:\Program Files\reeeeeeeeeealy-very-long-path\jon-server-3.3 .0.GA-update-09\jon-server-updates\modules\org\rhq\server-startup\main\deploymen ts\rhq.ear\rhq-portal.war\WEB-INF\classes\org\rhq\enterprise\gui\legacy\action\r esource\common\monitor\alerts\config\condition is too long. No installed JON Server was found. Bypassing shut down check. Certain patch files can not be overwritten due to name changes. These files are being archived. Archived server files will be moved to [c:\jon-server-3.3.0.GA\jon-server-3.3. 0.GA\.patched\090817110943\.old]. See c:\jon-server-3.3.0.GA\jon-server-3.3.0.GA\.patched\090817110943\update.lo g for more archive details. Applying JON Server updates... Applying additional JON Server updates... We detected a 'JON server' that had not yet been initialized/installed. You have successfully extracted updated installation contents into the 'JON se rver'. You should now proceed with installation/upgrade of JON servers as is appropri ate. Expected results: No errors Additional info: The patch was applied successfully and installation of jon server afterwards was successful as well. update.log is attached Have not checked yet but it's probably not a regression and the issue is there for a long time.