问题
i encounter the bug EMM-686 and i've seen the answer by Nira pointing to the jira and the github, but i don' find how i can apply the fix on my production (downloaded binaries from the website), is there a documentation for that ? I don't understand why the binaries on the website don't include an up to date version of wso2-emm is there somewhere where i can found that ?
Obvisiously i already tried to apply manually the changes in the 2 files mentioned, and restart the server but no luck.
回答1:
This is how you apply the update they included in the patch attached to EMM-686:
Open an explorer window and nagivate to [EMM_HOME]\repository\deployment\server\jaggeryapps\publisher\themes\mobileapp. There are two files we will need to modify in different folders found in this directory.
In \js\mobileapp, open create.mobileapp.js in your text editor of choice. Notepad++ is my preference.
Find this line of code: $("#txtOSHidden").val($("#txtOS").val());
Now, create an empty line directly after it and paste this: $("#version").val($("#txtVersion").val());
Now go back to \mobileapp and navigate to the \partials folder. In your text editor, open add-mobileapp.hbs.
Find the following line of code and delete it: <input type="hidden" name="version" value="1.0">
In its place, add this line: <input type="hidden" id="version" name="version" value="1.0">
You should now be able to upload new versions of your apps without issue.
回答2:
WSO2 provides official patches only for paid customers through WSO2 support portal, You either have to wait for the next release (in your case, it's 1.2.0) or have to manually apply the patch yourself.
The patch diff attached may be taken from the development branch in the middle of the development for 1.2.0, so, you might not be able apply it directly to EMM 1.1.0
来源:https://stackoverflow.com/questions/32370213/wso2-emm-app-management-version-bug