-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
application download from exide #1587
Comments
Hello Pietro, is your pre- or post-install.xql doing something to set permission? that would explain why a cleaned-up repo.xml gets overwritten on install |
I never opened those files at all... |
post-install I never had one there. |
I still don't understand if your pre-install.xql includes any functions that try to set-up permissions for your app. But your problem might be related to this ticket #1573, which contains a work around. |
it should not, I have done nothing to alter that file since it has been created by the application for me.
|
Ok so somewhere outside of pre and post install is trying to set permissions <permissions xmlns:repo="http://exist-db.org/xquery/repo" user="Pietro" group="dba" mode="rw-rw-r--" unknown="http://exist-db.org/xquery/repo" #unknown="http://exist-db.org/xquery/repo"/> The problem is that I can't reproduce the errors. I tried to generate a new app, with app-user permissions set via exide, download the xar, and then uninstall and redeploy. No errors, no superfluous namespaces before or after. Could it be that there is a rogue post- or pre-install file somewhere in the collection hierarchy that is trying to write the permissions into the repo? You can try to deploy the app in your instance if you wish. (its just an empty app template) |
@PietroLiuzzo @duncdrum is this still an open issue? |
no, with 3.6.1 I do not have this issue anymore |
What is the problem
I used application/download in eXide to get the xar of my app. I then deleted the app and added it back. the package manager reports an error in repo.xml.
I have decompressed the xar and in repo.xml I have this
<permissions xmlns:repo="http://exist-db.org/xquery/repo" user="Pietro" group="dba" mode="rw-rw-r--" unknown="http://exist-db.org/xquery/repo" #unknown="http://exist-db.org/xquery/repo"/>
removing the package so added is also a problem, and the package manager reports
I have tried to remove the package manually from
What did you expect
to upload smoothly the downloaded package, to be able also to remove it smoothly.
Describe how to reproduce or add a test
I am not sure this happens with all apps. it happens with all those in my exist installation. also if I install from the package repository the shakes app, dowload it as described and then try to upload it from that package.
I have also tried to rebuild the package with ant, removing #unknown="http://exist-db.org/xquery/repo" from permissions in repo.xml. The same happens with the package thus created.
Context information
Please always add the following information
The text was updated successfully, but these errors were encountered: