Published forked app on marketplace (guidance needed)

Nice move! Thanks a lot! Feel free to upload the app to the marketplace - let me know if you need any guidance!

1 Like

I need guidance.

I use owncloud for some time, but until now I was never involved in the community. I would love to upload the app to the marketplace if you give me some guidance.

Let me know if you need more information - I'm happy to help!

2 Likes

On the missing tags in info.xml: Summary? you sure? Do you have a link to documentation or example? I did not find the summary tag in the gallery apps info.xml

summary is quite new - see https://github.com/owncloud/contacts/blob/master/appinfo/info.xml#L5

https://doc.owncloud.org/server/latest/developer_manual/app/info.html for all tags we use/support

2 Likes

There is an issue.
From https://doc.owncloud.org/server/10.0/developer_manual/app/code_signing.html#how-to-get-your-app-signed :
"Post the CSR at https://github.com/owncloud/appstore-issues, and configure your GitHub account to show your mail address in your profile."

I don't know what is meant with "Post the CSR..." - Should I open a new issue and paste it there? Or what is expected from me?

Also: " configure your GitHub account to show your mail address in your profile." , No, I won't?! Why is this necessary?

I made a new email that I set to public in my github profile and opened an issue with the certificate to sign: https://github.com/owncloud/appstore-issues/issues/101

I find the signing process description pretty vague (even for experienced developers like me) I would volunteer to optimise it for newbs, if somehow possible.

Your certificate is there - https://github.com/owncloud/appstore-issues/issues/101#issuecomment-320209556

You are welcome to adjust the docs - https://github.com/owncloud/documentation/blob/master/developer_manual/app/code_signing.rst

Let me know if you need any further support.

1 Like

What I have done so far:
cloned owncloud/core to my local machine

installed packages: php7.0 php-mbstring php-curl php-zip php-gd
edited php.ini to activate curl and mbstring

run make in owncoud core directory -> was successful
now I run ./occ and get following errors:

./occ integrity:sign-app --privateKey=/home/tim/gitprojects/bookmarks/bookmarks.key --certificate=/home/tim/gitprojects/bookmarks/bookmarks.crt --path=/home/tim/gitprojects/bookmarks
PHP Warning: Module 'curl' already loaded in Unknown on line 0
PHP Warning: Module 'mbstring' already loaded in Unknown on line 0
ownCloud is not installed - only a limited number of commands are available
No database drivers (sqlite, mysql, or postgresql) installed.

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /home/tim/gitprojects/core/lib/private/Console/Application.php:134
Stack trace:
#0 /home/tim/gitprojects/core/console.php(98): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /home/tim/gitprojects/core/occ(11): require_once('/home/tim/gitpr...')
#2 {main}{"reqId":"83gB1yU5L7zSEu2Nq0QD","level":3,"time":"2017-08-04T10:54:54+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/tim\/gitprojects\/core\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}

I am pretty unsure what is wrong and how to fix this.

Also the signing process is awkward and pretty messed up. Why do I need a full install, of OC to perform signing? Why is PHP needed to perform signing? Why do I need Symphony for signing? This looks pretty messed up and not neccessary to me.

At the moment the signing tool is a part of owncloud itself and giving the fact that an app developer anyhow needs a working owncloud instance this setup is not that messed up.

OK, but what about the errors I got?

Do they mean, I need to configure and install owncloud within my OS apache and php?

I hate spending time configuring ubuntus lampp stack and just use xampp, which works out of the box, but seems not to be compatible with ownclouds console tools, since they depend on /usr/env/bin php.

I just had a second look and the command can be executed without having owncloud installed ...

It should work once the two missing modules are installed

PHP Warning: Module 'curl' already loaded in Unknown on line 0
PHP Warning: Module 'mbstring' already loaded in Unknown on line 0

It is just a Warning I included the extension twice.
I removed them and basically same error:

./occ integrity:sign-app --privateKey=/home/tim/gitprojects/bookmarks/bookmarks.key --certificate=/home/tim/gitprojects/bookmarks/bookmarks.crt --path=/home/tim/gitprojects/bookmarks
ownCloud is not installed - only a limited number of commands are available
No database drivers (sqlite, mysql, or postgresql) installed.

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /home/tim/gitprojects/core/lib/private/Console/Application.php:134
Stack trace:
#0 /home/tim/gitprojects/core/console.php(98): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /home/tim/gitprojects/core/occ(11): require_once('/home/tim/gitpr...')
#2 {main}{"reqId":"zUfjoYiSWSzhKOia9Bqj","level":3,"time":"2017-08-04T12:03:01+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/tim\/gitprojects\/core\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}

I found the output "ownCloud is not installed - only a limited number of commands are available" in Application.php. It is basically shown when there is no config and ownCloud is not installedand no actions are performed.

sigh I will be back when I had time to install and configure my lamp stack and configured and installed owncloud locally. I basically don't have time for this, but I finish what I have begun. It just may take a few days or weeks.

as explained above - this is not necessary to call the signing command.

So this is the issue - please install the php sqlite module and we should be fine ....

You are my man. installed php-sqlite3, run ./occ again and now:

Successfully signed "/home/tim/gitprojects/bookmarks"

Now I just have to move the key and certificate out of the app folder, sign again and package for upload :blush:

Thanks for your guidance, I think I can go alone now.
I might be back for guidance on the documentation part.

Have a nice Weekend. :sunny:

2 Likes

I have problems with the marketplace upload now.

I created screenshots and added one to the info.xml, since it is required.
When uploading to marketplace I get this notice:

"There was an error while processing your file:
Could not load image: https://raw.githubusercontent.com/mondjunge/bookmarks/master/screenshots/main.png "

but the URL is perfectly accessible?! What should I do now? Try endless image hosting plattform, until one works?

No - you already did the right thing: talk to us :wink:

We will take care. THX

1 Like

Alrighty then. Please drop me a line, when I can try to upload again.

you will hear from us asap

1 Like

Hello mondjunge,

sorry to hear that you are currently experiencing some troubles with the app upload.

In the past we also experienced issues with hosting the images on github. Sometimes the connection for retrieving images would just fail from the marketplace - even though github seems perfectly reachable. We are checking how we can improve upon this.

For now I kindly ask you to try it again if it fails.

1 Like