wso2-emm应用程序管理版本错误 [英] wso2-emm app management version bug
问题描述
我遇到了 EMM-686 的错误,我也看到了Nira的答案指向jira和github,但我不知道如何将修复应用于我的制作(从网站下载的二进制文件),有没有文档?
我不明白为什么网站上的二进制文件不包含wso2-emm的最新版本,有什么地方可以找到它?
很明显,我已经尝试手动应用所提及的2个文件中的更改,并重新启动服务器,但没有运气。 解决方案
这就是您如何应用它们包含在 EMM-686 中的补丁中的更新:
打开一个资源管理器窗口并放弃至 [EMM_HOME] \ \\ repository \ deployment \ server \jaggeryapps \publisher\themes\mobileapp < STRONG>。我们需要在此目录中的不同文件夹中修改两个文件。
在 \js\mobileapp 中,打开 create.mobileapp.js 在您选择的文本编辑器中。 Notepad ++是我的首选。
找到这行代码: $(#txtOSHidden).val($(#txtOS))。 val());
现在,直接在它后面创建一个空行并粘贴: $(#version)。val($(#txtVersion)。val ());
现在回到 \mobileapp 并导航到 \partials 文件夹。在您的文本编辑器中,打开 add-mobileapp.hbs 。
找到以下代码行并将其删除: < input type =hiddenname =versionvalue =1.0>
取而代之的是: < input type =hiddenid =versionname =versionvalue =1.0>
您现在应该可以毫无问题地上传应用的新版本。
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.
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.
这篇关于wso2-emm应用程序管理版本错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!