•  
      request #1546 Login to post a new thread
    Infos
    #1546
    Manon Midy (mmidy)
    2013-04-29 12:44
    2012-10-02 11:21
    677
    Details
    Login to post a new thread
    From soon, it is possible to browse mailing list archives for anonymous. Great. For anonymous i.e people who have not yet logged in, it could be interesting to have "Login to post a new thread" instead of "Post a new thread" at the top left.

    It could be also good to change the error message we have when we click on"post a new thread: "Error-You are not granted sufficient permission to perform this operation." by "The best way to post a new thread is to login or create a new account if you don't have one yet. Alternatively, send an email to tuleap-devel@tuleap.com. Thanks."
    Mailing lists
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Biswajit Das (Biswajit)
    New
    Empty
    Attachments
    Empty
    References
    Referencing request #1546
    Referenced by request #1546

    Artifact

    art #1868

    Follow-ups

    User avatar
    Manon Midy (mmidy)2013-04-29 12:44
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    • Platform set to
    • Is an Enhancement or an internal improvement? set to
    User avatar
    last edited by: Manuel Vacelet (vaceletm) 2012-12-07 14:22
    Great!

    I would be perfect if you could update the developer guide to add the informations you wanted to have 2 days ago when you starting struggling with this issue
    User avatar
    Biswajit Das (Biswajit)2012-12-07 14:18
    The local unit test completed successfully finally :)

    I have pushed the necessary changes, right now my development setup is perfect as i am able to test successfully.

    Thanks a lot Nicolas and Manuel, It was your constant support which helped me get out of the issues.
    User avatar
    Ok I see the point.

    Assuming that both folders (/home/centos/tuleap/dev and /usr/share/codendi) are on the same host, please run the following commands:
    $ mv /usr/share/codendi /usr/share/codendi_rpm
    $ ln -s /home/centos/tuleap/dev/ /usr/share/codendi

    This 1) backups the codendi folder installed by the rpm and 2) links codendi to your development folder. That way you don't have to copy/paste every time your changes.
    User avatar
    Biswajit Das (Biswajit)2012-12-07 10:18
    Initially the tests folder was missing under /usr/share/codendi/plugins folder, so i copied it from my git's branch which is under /home/centos/tuleap/dev/ folder(my .git is present here only, ie the git repository)

    I push and pull from here only and then copy the changes from here to /usr/share/codendi/ path which is mapped to my localhost.
    User avatar
    Biswajit Das (Biswajit)2012-12-07 10:11
    cat /usr/share/codendi/VERSION
    gives
    5.5.99.3
    --------------------------------
    ls -l /usr/share/codendi/src/common
    gives
    -rwxrwxrwx 1 root centos 1692 Aug 14 18:06 autoload_zend.php
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 backend
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 chart
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 collection
    drwxrwxrwx 3 root centos 4096 Oct 9 19:00 dao
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 date
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 error
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 event
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 filter
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 frs
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 html
    drwxrwxrwx 3 root centos 4096 Oct 9 19:00 include
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 language
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 layout
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 mail
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 mailing_list
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 mvc
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 mvc2
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 password
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 permission
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 plugin
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 project
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 reference
    drwxrwxrwx 3 root centos 4096 Oct 9 19:00 rss
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 server
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 session
    drwxrwxrwx 3 root centos 4096 Oct 9 19:00 soap
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 survey
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 svn
    drwxrwxrwx 3 root centos 4096 Oct 9 19:00 system_event
    drwxrwxrwx 3 root centos 4096 Oct 9 19:00 templating
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 tracker
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 TreeNode
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 user
    drwxrwxrwx 2 root centos 4096 Oct 9 19:00 valid
    drwxrwxrwx 2 root centos 4096 Nov 28 22:06 widget
    drwxrwxrwx 6 root centos 4096 Oct 9 19:00 wiki
    ----------------------------------------------------------------------------
    uname -a
    gives
    Linux tuleapalm.somnath.loc 2.6.18-308.16.1.el5 #1 SMP Tue Oct 2 22:01:37 EDT 2012 i686 i686 i386 GNU/Linux
    ----------------------------------------------------------------------------
    rpm -qa | grep release
    gives
    centos-release-notes-5.8-0
    centos-release-5-8.el5.centos
    ----------------------------------------------------------------------------
    php -v
    gives
    PHP 5.1.6 (cli) (built: Jun 27 2012 12:21:16)
    Copyright (c) 1997-2006 The PHP Group
    Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
    User avatar
    What is the result of those commands?

    $ cat /usr/share/codendi/VERSION
    $ ls -l /usr/share/codendi/src/common
    $ uname -a
    $ rpm -qa | grep release
    $ php -v
    User avatar
    Biswajit Das (Biswajit)2012-12-07 09:41
    last edited by: Biswajit Das (Biswajit) 2012-12-07 10:28
    Nicolas,
    I am able to test it now, it requires https:// instead of http:// in my case.
    Running the test locally gives the following result(ie. by running plugins/tests/ url):

    Warning: require_once(common/autoload.php) [function.require-once]: failed to open stream: No such file or directory in /usr/share/codendi/plugins/tests/www/tests_common.php on line 39

    Fatal error: require_once() [function.require]: Failed opening required 'common/autoload.php' (include_path='/usr/share/pear/:/usr/share/codendi/src/www/include:/usr/share/codendi/src:.:/usr/share/codendi/src:/usr/share/codendi/src/www/include:/usr/share/htmlpurifier:/usr/share/jpgraph') in /usr/share/codendi/plugins/tests/www/tests_common.php on line 39
    User avatar
    What the logs are saying when you hit the plugins/tests/ url? access_log ? error_log ?
    User avatar
    Biswajit Das (Biswajit)2012-12-07 09:35
    Running:
    ls -dl /usr/share/codendi/plugins/tests
    gives
    drwxrwxr-x 7 centos centos 4096 Dec 7 11:25 /usr/share/codendi/plugins/tests

    Running:
    ls -dl /usr/share/codendi
    gives
    drwxrwxrwx 10 root centos 4096 Dec 7 10:11 /usr/share/codendi
    User avatar
    What is the results of those commands?

    $ ls -dl /usr/share/codendi/plugins/tests
    $ ls -dl /usr/share/codendi
    User avatar
    Biswajit Das (Biswajit)2012-12-06 12:58
    The browser says it is unable to resolve the hostname in my local set up for this http://tuleap.example.com/plugins/tests/.

    My only error is as follows:
    Error Message
    tests/simpletest/LanguageFilesTest.php

    Stacktrace
    TuleapTestSuite -> tests/simpletest/LanguageFilesTest.php

    Fail at [/data/jenkins/jobs/1926_login_to_post_a_new_thread/workspace/sources/tests/simpletest/LanguageFilesTest.php line 20]
    Kindly let me know the possible reason for this error and how to do a unit test for this.
    User avatar
    Biswajit Das (Biswajit)2012-12-06 11:55
    last edited by: Biswajit Das (Biswajit) 2012-12-06 12:16
    As per the developer guide,
    To run tests we can either use:

    the web interface available at http://localhost/plugins/tests (given localhost is your development server)
    or
    the CLI interface: make tests (at the root of the sources)
    You can run a file or a directory: php tests/bin/simpletest plugins/docman

    Kindly help me out as this is the first time am testing.
    User avatar
    Biswajit Das (Biswajit)2012-12-06 08:43
    Manuel,

    The job is still failing as I can see.

    Actually I clicked the Add button below after modifying "!!!!BRANCHNAME" before saving the job. So the fault was that I was not supposed to click the Add button right?
    User avatar
    Biswajit,

    Your job was failling every minutes for 3 hours and sent 90 emails to tuleap-events ML (you should subscribe BTW).
    I had to delete your job and create it again and now it works.

    Your job was failing because you added "Branch identifier: **" as parameter.

    Please only modify "!!!!BRANCHNAME" value when you create a job

    • Assigned to changed from None to Biswajit Das (Biswajit)
    User avatar
    Biswajit Das (Biswajit)2012-12-06 07:06
    In Jenkins. ut_1926_login_to_post_a_new_thread job build is failing. Can i get a log for the reason of the failure?
    User avatar
    Biswajit Das (Biswajit)2012-12-06 05:56
    Thanks Manuel,

    Created a job under the name ut_1926_login_to_post_a_new_thread.
    User avatar
    Biswajit Das (Biswajit)2012-12-05 11:16
    Hi Manuel,

    I have pushed the changes under branch name "1926_login_to_post_a_new_thread".

    Is it necessary to Create a CI job for that branch?
    I have an account in jenkins under user id bistub1986 but don't have any job creation permission there.