This tool is used to fix URLs before using Confluence Cloud Migration Assistant (CCMA).
CCMA converts URLs inserted using Search/Recently Viewed/Files. Those links are relative links pointing to Confluence content. However CCMA does not convert URLs inserted using Web Link or Advanced. Those links are absolute links.
Configuration is stored in Config.json. See com.igsl.config.Config for explanation of each property.
- TODO
- Query Confluence database to retrieve latest version of all pages.
- For each page:
- Extract URLs (href="...") from content of each page.
- For each URL:
- For each handler configured, URL is checked for acceptance:
- Scheme (use default scheme if there is none)
- Domain
- Path or query parameter
- If URL is accepted by an handler, no other handlers will be invoked.
- Handler calculates a new URL.
- If performUpdate is true, new content body is saved to database.
- For each handler configured, URL is checked for acceptance: