<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>What takes priority, portal-ext.properties or the control panel ui</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114074918" />
  <subtitle>What takes priority, portal-ext.properties or the control panel ui</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114074918</id>
  <updated>2026-04-06T11:52:02Z</updated>
  <dc:date>2026-04-06T11:52:02Z</dc:date>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114107796" />
    <author>
      <name>William Gosse</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114107796</id>
    <updated>2019-06-24T18:30:43Z</updated>
    <published>2019-06-24T18:30:43Z</published>
    <summary type="html">Guys again thanks was able to resolve issue by modifying the values in the control panel instead the portal-ext.properties file. I&amp;#39;m not sure I like this but I can live with it.  </summary>
    <dc:creator>William Gosse</dc:creator>
    <dc:date>2019-06-24T18:30:43Z</dc:date>
  </entry>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114105381" />
    <author>
      <name>William Gosse</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114105381</id>
    <updated>2019-06-24T14:32:13Z</updated>
    <published>2019-06-24T14:32:13Z</published>
    <summary type="html">Thanks that is helpful.  So something like default.logout.page.path would have to be managed form the instance setting page in the control panel. I think this jives with what Olaf was saying as well.</summary>
    <dc:creator>William Gosse</dc:creator>
    <dc:date>2019-06-24T14:32:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114095781" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114095781</id>
    <updated>2019-06-22T02:03:57Z</updated>
    <published>2019-06-22T02:03:57Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;William Gosse:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;I was hoping that someone can explain what has the higher priority, portal-ext.properties or the control panel.&lt;br /&gt;I have company.default.home.url and default.landing.page.path set in my portal-ext.properties file. But there also values in the control panel&amp;#39;s Instance Settings page for Home URL and Default Landing Page fields.    Who win&amp;#39;s out? I want my portal-ext.properties file to win out. Do I need to leave the control panel fields blank or will they be overridden by the  portal-ext.properties file.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Who wins out? It is not always clear.&lt;br /&gt;&lt;br /&gt;Some portal-ext.properties settings are only used at first launch when the DB is being populated. Things like the default admin settings for example.&lt;br /&gt;&lt;br /&gt;Some settings control how the node functions and those will come only from portal-ext.properties, for example setting main.servlet.https.only. These kinds of settings will not be anywhere in the database and only affect the node itself.&lt;br /&gt;&lt;br /&gt;Rule of thumb, if you see a place to edit it in the control panel, you should edit it there.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-06-22T02:03:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114090741" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114090741</id>
    <updated>2019-06-21T14:04:46Z</updated>
    <published>2019-06-21T14:04:46Z</published>
    <summary type="html">I just found a good example to illustrate the case where data is read exactly once:&lt;br /&gt;The &lt;a href="https://docs.liferay.com/portal/7.2-ga1/propertiesdoc/portal.properties.html#Default%20Admin"&gt;default admin settings&lt;/a&gt; will be used to create the administrative account &lt;em&gt;upon first startup&lt;/em&gt;. On subsequent startups, this account is obviously no longer created - it would be quite unexpected if it were created repeatedly.&lt;br /&gt;It&amp;#39;d be great if these values were indicating when they&amp;#39;re read, and if they&amp;#39;re &lt;strong&gt;&lt;em&gt;used once&lt;/em&gt;&lt;/strong&gt; (like the admin account), &lt;strong&gt;&lt;em&gt;overridable through UI&lt;/em&gt;&lt;/strong&gt; (like many settings), or &lt;strong&gt;&lt;em&gt;used always&lt;/em&gt;&lt;/strong&gt; (like the database connection, which obviously can&amp;#39;t be stored in the database). But so far they aren&amp;#39;t, and you&amp;#39;d have to use your imagination to come up with a good explanation in case something displays unexpected behavior.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-06-21T14:04:46Z</dc:date>
  </entry>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114078214" />
    <author>
      <name>William Gosse</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114078214</id>
    <updated>2019-06-20T18:59:17Z</updated>
    <published>2019-06-20T18:59:17Z</published>
    <summary type="html">Ok thanks for your help on this Olaf. It&amp;#39;s always appreciated.</summary>
    <dc:creator>William Gosse</dc:creator>
    <dc:date>2019-06-20T18:59:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114077519" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114077519</id>
    <updated>2019-06-20T16:11:43Z</updated>
    <published>2019-06-20T16:11:43Z</published>
    <summary type="html">exactly &lt;br /&gt;&lt;br /&gt;(I&amp;#39;ve had my previous answer sitting unsubmitted in my browser for a while)</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-06-20T16:11:43Z</dc:date>
  </entry>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114077202" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114077202</id>
    <updated>2019-06-20T16:10:31Z</updated>
    <published>2019-06-20T16:10:31Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;William Gosse:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;I&amp;#39;m sorry this seems a little confusing. &amp;#34;And the original value will never be read again&amp;#34; What if I want to changes these values or am I missing the point on something here.&lt;/blockquote&gt;The &amp;#34;original value&amp;#34;, e.g. what you find in portal-ext.properties, is read once, on first startup and copied to the database.&lt;br /&gt;The database is updated through the UI. &lt;br /&gt;Thus, in order to change this value, you&amp;#39;ll need to go through the user interface.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-06-20T16:10:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114076884" />
    <author>
      <name>William Gosse</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114076884</id>
    <updated>2019-06-20T15:56:54Z</updated>
    <published>2019-06-20T15:56:54Z</published>
    <summary type="html">Does this mean these instance value can only be changed through the control panel at this point.</summary>
    <dc:creator>William Gosse</dc:creator>
    <dc:date>2019-06-20T15:56:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114076561" />
    <author>
      <name>William Gosse</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114076561</id>
    <updated>2019-06-20T15:41:41Z</updated>
    <published>2019-06-20T15:41:41Z</published>
    <summary type="html">I&amp;#39;m sorry this seems a little confusing. &amp;#34;And the original value will never be read again&amp;#34; What if I want to changes these values or am I missing the point on something here.</summary>
    <dc:creator>William Gosse</dc:creator>
    <dc:date>2019-06-20T15:41:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114076226" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114076226</id>
    <updated>2019-06-20T15:17:30Z</updated>
    <published>2019-06-20T15:17:30Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;William Gosse:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;The Control Panel / Server Administration / Properties / Portal Properties is telling me that company.default.home.url and default.landing.page.path are being sourced from the portal.properties file, or one of its extensions. This would seem to indicate that the  portal-ext.properties file is winning. Does that make sense?&lt;/blockquote&gt;It makes sense, because I&amp;#39;ve missed one aspect: Since the advent of more and more OSGi configuration, and with it the instance settings, a lot of the configuration infrastructure changed compared to before: For them, the portal-*.properties value is the default, which will initialize Liferay&amp;#39;s configuration (consequently the database) upon first start. Then, the portal.properties value might be configured, but will be completely ignored. Thus, you don&amp;#39;t even need to save anything in a configuration form - you just need to start up Liferay once, for the configuration to end up in the database. And the original value will never be read again (despite being available).&lt;br /&gt;I&amp;#39;ve stumbled over this too rarely to have it at the top of my mind.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-06-20T15:17:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114075889" />
    <author>
      <name>William Gosse</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114075889</id>
    <updated>2019-06-20T15:10:45Z</updated>
    <published>2019-06-20T15:10:45Z</published>
    <summary type="html">The Control Panel / Server Administration / Properties / Portal Properties is telling me that company.default.home.url and default.landing.page.path are being sourced from the portal.properties file, or one of its extensions. This would seem to indicate that the  portal-ext.properties file is winning. Does that make sense?</summary>
    <dc:creator>William Gosse</dc:creator>
    <dc:date>2019-06-20T15:10:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114075248" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114075248</id>
    <updated>2019-06-20T15:00:53Z</updated>
    <published>2019-06-20T15:00:53Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;William Gosse:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Who win&amp;#39;s out? I want my portal-ext.properties file to win out. &lt;br /&gt;&lt;/blockquote&gt;You&amp;#39;re out of luck, sorry: While the properties-files get read first (and even there is an order in which they&amp;#39;re applied), anything that&amp;#39;s configured in the database will override your precious portal-ext.properties defaults.&lt;br /&gt;This is actually a behavior that you probably want: Otherwise you could never configure (at runtime, without restart) any setting that you&amp;#39;ve defaulted in portal-ext.properties. Liferay will never write to the properties files, with the notable difference of portal-setup-wizard.properties once you fill out the required values. &lt;br /&gt;Not only will you have to &amp;#34;leave the control panel fields blank&amp;#34;, you&amp;#39;ll have to never submit a form with configuration values to the database.&lt;br /&gt;If you go to Control Panel / Server Administration / Properties, you can search for your desired properties value and see where it&amp;#39;s coming from: Database or properties file.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-06-20T15:00:53Z</dc:date>
  </entry>
  <entry>
    <title>What takes priority, portal-ext.properties or the control panel ui</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114074917" />
    <author>
      <name>William Gosse</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114074917</id>
    <updated>2019-06-20T14:50:14Z</updated>
    <published>2019-06-20T14:50:14Z</published>
    <summary type="html">I was hoping that someone can explain what has the higher priority, portal-ext.properties or the control panel.&lt;br /&gt;I have company.default.home.url and default.landing.page.path set in my portal-ext.properties file. But there also values in the control panel&amp;#39;s Instance Settings page for Home URL and Default Landing Page fields.    Who win&amp;#39;s out? I want my portal-ext.properties file to win out. Do I need to leave the control panel fields blank or will they be overridden by the  portal-ext.properties file.</summary>
    <dc:creator>William Gosse</dc:creator>
    <dc:date>2019-06-20T14:50:14Z</dc:date>
  </entry>
</feed>
