My efforts ended in a full success.
I used (eventually) the following query to get all favicon and logo related application properties from the JIRA database:
SELECT pe.*, ps.`propertyvalue`
FROM `propertyentry` pe
JOIN `propertystring` ps ON pe.`ID` = ps.`ID`
WHERE 1 = 1
AND (
pe.`PROPERTY_KEY` LIKE 'com.atlassian.jira.lookandfeel%favicon%'
OR pe.`PROPERTY_KEY` LIKE 'com.atlassian.jira.lookandfeel%logo%'
OR pe.`PROPERTY_KEY` LIKE 'jira.lf%favicon%'
OR pe.`PROPERTY_KEY` LIKE 'jira.lf%logo%'
)
ORDER BY pe.`PROPERTY_KEY`
Then I compared values from both our production JIRA instance and an evaluation JIRA instance that I just set up to get the default values for these properties.
Then I created the necessary SQL statements to set all the properties in our production instance's database to the default values:
UPDATE `propertyentry` pe
JOIN `propertystring` ps ON pe.`ID` = ps.`ID`
SET ps.`propertyvalue` = 'JIRA'
WHERE 1 = 1
AND pe.`PROPERTY_KEY` IN ('com.atlassian.jira.lookandfeel.faviconChoice', 'com.atlassian.jira.lookandfeel.logoChoice');
UPDATE `propertyentry` pe
JOIN `propertystring` ps ON pe.`ID` = ps.`ID`
SET ps.`propertyvalue` = '64'
WHERE 1 = 1
AND pe.`PROPERTY_KEY` IN ('com.atlassian.jira.lookandfeel:faviconHeight', 'com.atlassian.jira.lookandfeel:faviconWidth');
UPDATE `propertyentry` pe
JOIN `propertystring` ps ON pe.`ID` = ps.`ID`
SET ps.`propertyvalue` = 'false'
WHERE 1 = 1
AND pe.`PROPERTY_KEY` IN ('com.atlassian.jira.lookandfeel:isDefaultFavicon', 'com.atlassian.jira.lookandfeel:usingCustomFavicon', 'com.atlassian.jira.lookandfeel:isDefaultLogo', 'com.atlassian.jira.lookandfeel:usingCustomLogo');
UPDATE `propertyentry` pe
JOIN `propertystring` ps ON pe.`ID` = ps.`ID`
SET ps.`propertyvalue` = '30'
WHERE 1 = 1
AND pe.`PROPERTY_KEY` IN ('com.atlassian.jira.lookandfeel:logoHeight', 'jira.lf.logo.height');
UPDATE `propertyentry` pe
JOIN `propertystring` ps ON pe.`ID` = ps.`ID`
SET ps.`propertyvalue` = '111'
WHERE 1 = 1
AND pe.`PROPERTY_KEY` IN ('com.atlassian.jira.lookandfeel:logoWidth', 'jira.lf.logo.width');
UPDATE `propertyentry` pe
JOIN `propertystring` ps ON pe.`ID` = ps.`ID`
SET ps.`propertyvalue` = '/images/jira111x30.png'
WHERE 1 = 1
AND pe.`PROPERTY_KEY` IN ('com.atlassian.jira.lookandfeel:DefaultlogoURL', 'jira.lf.logo.url');
UPDATE `propertyentry` pe
JOIN `propertystring` ps ON pe.`ID` = ps.`ID`
SET ps.`propertyvalue` = '/images/64jira.png'
WHERE 1 = 1
AND pe.`PROPERTY_KEY` IN ('com.atlassian.jira.lookandfeel:customDefaultFaviconHiresURL', 'jira.lf.favicon.hires.url');
UPDATE `propertyentry` pe
JOIN `propertystring` ps ON pe.`ID` = ps.`ID`
SET ps.`propertyvalue` = '/favicon.ico'
WHERE 1 = 1
AND pe.`PROPERTY_KEY` IN ('com.atlassian.jira.lookandfeel:customDefaultFaviconURL', 'jira.lf.favicon.url');
Of course I've created both an XML backup and separate database-level (MySQL) backup and a backup of the JIRA data directory prior to messing with JIRA's properties. And I've shut down JIRA too before running these updates.
Afterwards I've started up JIRA, went to the "Look and Feel" admin screen, clicked "Edit Configuration" and clicked "Reset Defaults". That did the trick.
To be sure, I also clicked the link in the "Refresh Client Resources" section and I executed a re-indexing of JIRA.
Now both the favicon and the logo are reset to their defaults and work just fine.
I consider this issue/ticket closed.
Recent comments
2 years 28 weeks ago
3 years 50 weeks ago
3 years 50 weeks ago
4 years 2 days ago
4 years 1 week ago
4 years 7 weeks ago
4 years 7 weeks ago
4 years 8 weeks ago
4 years 8 weeks ago
4 years 8 weeks ago