[
https://issues.apache.org/jira/browse/JSPWIKI-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15848730#comment-15848730
]
Lance Bader commented on JSPWIKI-1049:
--------------------------------------
Maybe this is key.
Remember my browser's cookie jar contained two JSPWikiUserPrefs cookies for our
host, one with the path */MLIWiki* and one with the path */MLIWiki/* (note the
trailing slash).
I went searching for anything that contained that trailing slash. I found two
things.
# The bookmark that I used to navigate to the wiki contained a trailing slash.
# In the jspwiki-custom.properties file (saved in Tomcat's lib directory)
contained *jspwiki.baseURL=https\://tools.museslabs.us\:9443/MLIWiki/* which
included a trailing slash.
I removed the trailing slashes from these two places, I removed both of the
JSPWikiUserPrefs cookies from my browser, and I haven't been able to recreate
the problem. If I look in my browser cookie jar now, I note that there is only
one JSPWikiUserPrefs cookie and the path is */MLIWiki* (without the trailing
slash).
I speculate that there is somewhere in early JSPWiki profile processing where
it creates a mostly empty JSPWikiUserPrefs. If the path for that cookie
contains a trailing slash, user preferences can never be saved. I don't know
if that trailing slash came from the initial URL or from jspwiki.baseURL.
That's all I got.
> User preferences are not saved.
> -------------------------------
>
> Key: JSPWIKI-1049
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1049
> Project: JSPWiki
> Issue Type: Bug
> Components: Templates and UI
> Affects Versions: 2.10.2
> Environment: Amazon AWS Linux, yum installed OpenJDK 1.8.0, yum
> installed Tomcat 8.0.39, downloaded JSPWiki 2.10.2 with Haddock template,
> current Firefox browser
> Reporter: Lance Bader
>
> * Select User Preferences in user dropdown menu
> * Modify default editor to wysiwyg
> * Select section editing
> * Change Timezone to GMT-5
> * Click save
> Preferences are not saved. Returning to User Preferences shows defaults.
> Section editing icons are not present. Plain editor is the default.
> Browser has two cookies with the name JSPWikiUserPrefs, one with path
> /MLIWiki/ and one with path /MLIWiki . Both have the same content:
> %7B%22version%22%3A%22haddock02%22%7D
> The only hint I can find in jspwiki.log:
> 2017-01-30 19:58:37,815 [http-nio-9443-exec-2] INFO
> org.apache.wiki.util.PropertyReader MLIWiki:/MLIWiki/UserPreferences.jsp
> MLIWiki:https://tools.museslabs.us:9443/MLIWiki/UserPreferences.jsp - No
> jspwiki.custom.config defined for this context, looking for custom properties
> file with default name of: /jspwiki-custom.properties
> In my case, jspwiki-custom.properties is in /usr/share/tomcat8/lib with the
> owner:group root:root because, since there is no /home/tomcat, I had to
> supply overrides for properties that depend on a home directory in order to
> deploy the wiki and run Install.jsp.
> This JSPWiki has a customized jspwiki.policy and web.xml so only
> authenticated users can view or edit anything and all traffic is restricted
> to SSL connections.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)