Mark server filesystem paths in SystemConfig transient

These should never be exposed to a client application, so marking
them transient prevents them from serializing out in a JSON API.

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2008-12-26 18:58:40 -08:00
parent fd95a0cd7b
commit 6748aabe9f

View File

@@ -64,7 +64,7 @@ public final class SystemConfig {
* @see HostPageServlet
*/
@Column(notNull = false)
public String sitePath;
public transient String sitePath;
/** Optional canonical URL for this application. */
@Column(notNull = false)
@@ -76,7 +76,7 @@ public final class SystemConfig {
/** Local filesystem loction all projects reside within. */
@Column(notNull = false)
public String gitBasePath;
public transient String gitBasePath;
/** Local TCP port number the embedded SSHD server binds onto. */
@Column