Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Qt.io webservices
  4. Qt DevNet Web Service API
Qt 6.11 is out! See what's new in the release blog

Qt DevNet Web Service API

Scheduled Pinned Locked Moved Qt.io webservices
61 Posts 10 Posters 104.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #39

    [quote author="ZapB" date="1304333076"]Another piece of invalid xml is found on line 190: @ <div class="item"><a href="http://info.arcada.fi/sv/qtquick"><img src="http://www.arcada.fi/sites/www.arcada.fi/themes/arcada/media/separate_elements/main_navigation/logo.png"></a></div> @ The error is: @ Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:inputDocument, at line 190, column 180: Opening and ending tag mismatch. @ The img element is missing the empty tag specifier - ie it should have a "/" at the end of the img tag. Edit: This input tag on line 532 is also missing a closing "/" @ <input type="text" name="tag_search" id="tag_search_input" value=""> @[/quote]

    All possible above stuffs are fixed,
    for other fixes it has to wait for deployment in future. I will create a issue here and will try to do all possible fixes.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #40

      Hi Gurudutt. Thanks for the quick turnaround on those little fixes. Can you mark the task as a sub-task of "QTWEBSITE-220":http://bugreports.qt.nokia.com/browse/QTWEBSITE-220 please so that I can track it?

      I appreciate that the other fixes will require changes to some php code and so must be tested and verified. Is the code for QtDevNet open source and on Gitorious? If so, I don't mind taking a poke around to see if I can fix them up.

      Thanks again.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #41

        Hey ZapB, I'm on vacation atm but Gurudutt is all over it :)

        Looking forward to trying it on my N8 when I'm back!

        Edit: Didn't see the last few replies, edited a bit

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #42

          Hi Marius. No worries. Enjoy your holidays! I'm back at work today after having last week off. I've just registered with the Ovi store and once I test the current state of the app (when the API is re-enabled) I'll build it and publish it on Ovi (for free of course).

          I've set up the start of a drupal-based "website":http://www.zerotau.co.uk/ so that I could apply for the Qt Ambassador program on the back of this little project. My "plotting library":http://developer.qt.nokia.com/forums/viewthread/4209/ is still a little way off being ready for release yet and I want to keep the source code private until the first public release - just so as to make a nice surprise :-).

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #43

            Gurudutt, another problem today. Onthe front page again, line 226, col 181:

            @
            <div class="item"><img src="http://developer.qt.nokia.com/uploads/qt_quarterly/qt_ambassador_logo.png" alt="Qt Ambassador" width="150" height="201" alt="image" /></div>
            @

            the alt attribute is redefined leading to another error when using XQuery on that xhtml. Could you squash that bug too please? It looks like a simple static html one.

            Many thanks.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #44

              [quote author="ZapB" date="1304592956"]Gurudutt, another problem today. Onthe front page again, line 226, col 181:
              the alt attribute is redefined leading to another error when using XQuery on that xhtml. Could you squash that bug too please? It looks like a simple static html one.

              Many thanks.[/quote]

              It should be fixed now.

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #45

                Yup. Thanks for the swift turnaround.

                At the risk of telling you guys how to do your jobs it might be an idea to integrate a call to xmllint to catch these types of errors at source. Could be doen as part of your CMS' add new content function perhaps? Please don't take that as criticism, it's just a polite suggestion. I think you are all doign a great job. :-)

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #46

                  Hi ZapB

                  The way we have prepared Qt Developer Network,
                  in that some content's are added/edited by editors and some of them is fetched from mysql database via CMS api.

                  The things I have fixed for this issue, I am not sure if in future it will not occur again since some of our editors might not be that technical to think about all these standards.

                  About giving access to admin site, I am not sure if that is ideal, I guess there are some security concerns and many more.

                  We wish to make all Qt Developer Network source as open source one day but we want to evaluate all security concerns before doing it.

                  I guess for your concerns qtapi would be best in future, it is disabled for now, but we wish to open it as soon as we can.

                  In future we wish to have better solution for qtapi for better performance.

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #47

                    [quote author="Gurudutt" date="1304609532"]Hi ZapB
                    About giving access to admin site, I am not sure if that is ideal, I guess there are some security concerns and many more.
                    [/quote]

                    Although it might solve some problems, it should be fairly obvious that we can't do that. We're even carefully towards our own colleagues.

                    Just imagine someone accidentally hitting the "drop all tables" button. :P

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #48

                      Hi Gurudutt,

                      Oh I wasn't suggesting that we all have access to the admin side. I was just saying earlier that if the CMS happened to be open source I could take a look at adding functionality to properly escape xml entities. Since it is not, then no problem. I'll leave it to you guys and gals.

                      My previous message was just suggesting that to help non-technical content writers, running the submissions (well the page that would result from a submission) through xmllint or some other validator before accepting the submission might help catch these simple errors. Modern browsers will happily process xhtml even with such errors but an author could still potentially break the page with a bad submission.

                      I realise that long-term using QXmlQUery is not the best way to get info about QtDN and that the REST API is the way to go. But until it is updated or even better, opened up, then we are limited as to what we can do with it.

                      If the CMS code, and SQL scehema (but not auth details etc) were placed on gitorious we could even help develop the REST API too and make MR's for it. Then you trolls can test the MR's in a sand-boxed environment and merge them only when you are happy with them.

                      Maybe a topic for discussion at the contributers summit?

                      1 Reply Last reply
                      0
                      • ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #49

                        [quote author="Alexandra" date="1304609933"][quote author="Gurudutt" date="1304609532"]Hi ZapB
                        About giving access to admin site, I am not sure if that is ideal, I guess there are some security concerns and many more.
                        [/quote]

                        Although it might solve some problems, it should be fairly obvious that we can't do that. We're even carefully towards our own colleagues.

                        Just imagine someone accidentally hitting the "drop all tables" button. :P[/quote]

                        I never suggested having access to the admin side of the live site - only the source code of the CMS. ;-)

                        1 Reply Last reply
                        0
                        • ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #50

                          As for making the API faster, you could use mod_rewite or some other method to redirect the API requests to a dedicated box that runs a Qt/C++ mini-webserver process that uses all those lovely Qt modules to query and process the requests into a suitable json response. All we need to get that off the ground is some details of the database schema. We could open it up as a QtDevNet community project ;-)

                          1 Reply Last reply
                          0
                          • ? Offline
                            ? Offline
                            A Former User
                            wrote on last edited by
                            #51

                            [quote author="ZapB" date="1304592956"]Gurudutt, another problem today. Onthe front page again, line 226, col 181:

                            @
                            <div class="item"><img src="http://developer.qt.nokia.com/uploads/qt_quarterly/qt_ambassador_logo.png" alt="Qt Ambassador" width="150" height="201" alt="image" /></div>
                            @

                            the alt attribute is redefined leading to another error when using XQuery on that xhtml. Could you squash that bug too please? It looks like a simple static html one.

                            Many thanks.[/quote]

                            Hi ZapB,

                            Front page of Developer network follows XHTML 1.0 strict standards now.
                            Please confirm if it works as expected for your plug-in.

                            1 Reply Last reply
                            0
                            • ? Offline
                              ? Offline
                              A Former User
                              wrote on last edited by
                              #52

                              Hi Gurudutt.

                              Thanks for sorting out those issues. I am able to use QXmlQuery to scrape the gravatar info once again.

                              1 Reply Last reply
                              0
                              • ? Offline
                                ? Offline
                                A Former User
                                wrote on last edited by
                                #53

                                [quote author="ZapB" date="1304332586"]Marius, I wonder if you could help me with something please?[/quote]

                                Hey ZapB, I'm back, adding the gravatar info should be doable, I suggest it becomes part of the next version of the API. See "this post":http://developer.qt.nokia.com/forums/viewthread/5451/P15/#35854 for my motivation.

                                1 Reply Last reply
                                0
                                • ? Offline
                                  ? Offline
                                  A Former User
                                  wrote on last edited by
                                  #54

                                  Thanks Marius. From reading on gravatar I think the needed info is just the md5 hash of the registered email address so as you say this should be doable. At least I had a reason to learn about QXmlQuery ;-)

                                  1 Reply Last reply
                                  0
                                  • ? Offline
                                    ? Offline
                                    A Former User
                                    wrote on last edited by
                                    #55

                                    Gravatar hash and member ID will be part of the next release, like this:

                                    @"member_id":"7","gravatar_hash":"f1fad06bfc26dd4ad534c8d6e4d5965c"@

                                    added to the output from a "profile" API request.

                                    Our next release is in 14 days.

                                    1 Reply Last reply
                                    0
                                    • ? Offline
                                      ? Offline
                                      A Former User
                                      wrote on last edited by
                                      #56

                                      Cool. Thanks for that Marius. I'll start modifying my client when it is released. I'll be able to bin the large hack using XQuery then.

                                      1 Reply Last reply
                                      0
                                      • V Offline
                                        V Offline
                                        vsorokin
                                        wrote on last edited by
                                        #57

                                        @mariusg Yay! Cool. I will add this to my extension too.

                                        --
                                        Vasiliy

                                        1 Reply Last reply
                                        0
                                        • ? Offline
                                          ? Offline
                                          A Former User
                                          wrote on last edited by
                                          #58

                                          Nothing new but a few days ago we added the devnet API documentation with examples here:

                                          http://developer.qt.nokia.com/groups/devnet_meta/wiki/API_documentation

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved