-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #24737 Update code to support file assets with spaces The code has been updated to support file assets with spaces in the name and to encode/decode URIs accordingly. The gitignore file has been updated to ignore .war/ files. Changes were made in several locations including the RemoteTraversalServiceTest.java and LocationUtils.java files to improve the handling of files with spaces in their names. * #24737 Update test folder structure and API usage for handling spaces Refactored folder structure creation in tests to include a folder with a space in its name to verify the proper handling of such cases. Adjusted API calls in tests to use a new encodePath() method which handles spaces in folder and file names, ensuring a proper URL encoding. The change in the AssetsUtils was needed to handle any spaces in the asset names when creating the remote folder path. Also, updated references to URLDecoder to use the new encodePath() method, simplifying the process and ensuring consistency. This affects methods such as 'resolveAssetAndFolder' in 'AssetPathResolver.java'. These changes are necessary for ensuring proper test coverage for folders and files with spaces, and for improving code readability and maintainability. * Reverting changes * #24737 Improve tests for handling of assets and folders with spaces in names
- Loading branch information
1 parent
1e5fb4d
commit 09f9e1e
Showing
14 changed files
with
946 additions
and
592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.