I try to upload assets via the Upload API. When I use the API_KEY of a user that is not in the Administrator group, the upload fails:
<?xml version="1.0" encoding="UTF-8"?>
1
Login not valid! Check user API Key and ensure with your administrator that the user has appropriate permissions for access.
The folder where I try to upload has read/write permission for “Everybody” and I can manually upload images into the folder with this user. It just fails if I upload via the API.
I just found another bug when calling an API without Administrator permission. When I call “groups - getall” with a user that is not in the Administrator group, I get this result:
{“COLUMNS”:[“responsecode”,“message”],“DATA”:[[“1”,“No permissible data or action found for user! If you believe this is a mistake then please check with your administrator to ensure that you have appropriate permissions for access.”]]}
But the user is in a group, so I should get his group as result.
As already mentioned: When I upload images with the API key of an Administrator user, the upload works fine. But I don’t want to use API keys of Administrator users, I want to use the API key of a “normal” user that has the right to upload images to a folder.
I don’t see what kind of version of Razuna you are running or are you on the hosted edition? In any case, upload should work with any user, but the user needs to have at least write permission to the folder.
Usually when people have an issue it boils down to a wrong folder or permissions being used.
responseCode=1, message=Login not valid! Check user API Key and ensure with your administrator that the user has appropriate permissions for access., assetId=null, fileType=null, comingFrom=null
When I add the user to the Administrator group, the upload works fine. But I don’t want to give Administrator permissions to the API users.
Actually on closer look, I see that we did a patch update that fixes this issue for 1.8.2. You somehow much be running once without that patch. I’m sorry that I did not catch this earlier.
However, we just release Razuna 1.8.5 which brings an approval process to Razuna. In addition, this issue is also included in the release.
You can download the new version from http://razuna.org/download now. Once again, apologies for not seeing this earlier.
Unfortunately I’m not able to upgrade to 18.5. I made a database backup (H2) with the old instance. I copied all backup files to the new admin/backup directory. When starting the new instance, the backup cannot be found and therefore not restored.
There are a lot of folders that are created during setup of 1.8.5: /Users/nitai/Downloads/razuna_tomcat_1_8_5/tomcat/webapps/razuna/
I don’t think these folders are correct. Maybe a bug in 1.8.5?
Much better. The folders are gone now. But I can’t see my backup from the 1.8.2.
I copied all files from admin/backup to the admin/backup folder of the new razuna instance. I also copied all raz#-folders as described in the wiki. But I can’t see the backup when going through the setup process.
The two files that I copied are razuna_backup.mv.db and razuna_backup.trace.db. This differs from the description in the wiki, but that’s all that was created when I made the backup.