Commit Graph

985 Commits

Author SHA1 Message Date
Colin Finck
8fefd2e1e1 [FORUM] Add a RosLogin extension for phpBB 3.2.2 to authenticate phpBB users using RosLogin Single-Sign-On. 2018-06-18 15:15:54 +02:00
Colin Finck
35486b7945 [FORUM] Update phpBB configuration for phpBB 3.2.2. 2018-06-18 15:14:30 +02:00
Colin Finck
85f0b07a38 [FORUM] Remove our heavily patched phpBB 3.0.x from the repository and update the instruction text.
The RosLogin integration will be realized as a proper extension instead of code changes spread over hundreds of phpBB core files.
This finally enables us to move to the latest phpBB release and makes further upgrades straightforward.
2018-06-18 14:59:08 +02:00
Colin Finck
da6c642a47 [DRUPAL] [WIKI] Update instruction texts. 2018-06-18 14:56:14 +02:00
Colin Finck
c7482b8d5e [ROSLOGIN] Fix a variable name typo. 2018-06-18 14:24:29 +02:00
Colin Finck
6c84aed164 [TESTMAN] Use git.reactos.org instead of GitHub for the source code links and fix the search URLs to decide between apitests and winetests.
git.reactos.org is under our own control and its URLs are guaranteed to remain stable.
Furthermore, the web server can access it much faster, which is important for the get_headers() call.
2018-05-16 18:01:01 +00:00
Yaroslav Veremenko
4324bb55b8 [GETBUILDS] Disable MSVC builds filter by default ONLINE-772 2018-05-16 18:35:14 +02:00
Yaroslav Veremenko
a427a02ed4 [DRUPAL] Display year in news/blog/article pages ONLINE-568 2018-05-16 18:33:57 +02:00
Yaroslav Veremenko
93f7171744 [TESTMAN] Point to GitHub instead of old SVN ONLINE-773 2018-05-16 18:30:40 +02:00
Colin Finck
80948864d5 [DRUPAL] [ROSLOGIN] Add a Drupal 7.x module to authenticate using RosLogin Single-Sign-On.
This one is much simpler than any other SSO module for Drupal, because:
* it replaces the Drupal login methods instead of offering an additional way of logging in, and
* it redirects Drupal forms (e.g. account registration, password reset) to RosLogin pages instead of capturing input from Drupal and calling SSO functions.

Consequently, an inline login box (like ours at the bottom page) needs to be replaced by a link to /roslogin/?p=login
2018-05-15 12:06:17 +02:00
Colin Finck
83078e5615 [ROSLOGIN] Remove all special characters during username normalization instead of replacing them by a single underscore.
There is no reason to allow an account "ColinFinck" when "Colin Finck" already exists.
2018-05-15 12:01:41 +02:00
Colin Finck
c9f98c0d69 [WIKI] Port our ReactOS customizations to the unmodified Vector skin of MediaWiki 1.30.0. 2018-05-14 19:00:31 +02:00
Colin Finck
14b3d8964a [WIKI] Commit the parts we will customize of the unmodified Vector skin of MediaWiki 1.30.0 and remove our customized MediaWiki 1.23.x skin. 2018-05-14 18:42:19 +02:00
Colin Finck
ff063944e3 [ROSLOGIN] Fixes based on Code Review by Mark Jansen
- Redirect to the "username_sent" message also when no such E-Mail address exists in the directory.
  This prevents disclosing the existence of a particular E-Mail address when using the SendUsername feature.
- Remove unused globals.
- Use uppercase boolean values consistently.
2018-05-08 16:28:25 +02:00
Colin Finck
9ebc516a7a [ROSLOGIN] [WIKI] Add a "RosLogin" MediaWiki extension based on the SessionManager framework introduced in MediaWiki 1.27.
Much simpler than the unmaintained AuthDrupal extension and - unlike that - needs no additional component on the CMS side.
2018-04-30 17:47:11 +02:00
Colin Finck
280f50e251 [WIKI] Update LocalSettings.php and the associated wiki-config.php for MediaWiki 1.30.0 and remove the unmaintained AuthDrupal extension. 2018-04-30 17:42:00 +02:00
Colin Finck
8c5fa454fa [ROSLOGIN] A simple Self-Service and Single-Sign-On around an LDAP user directory
RosLogin is a simple user Self-Service and Single-Sign-On system for a single site
(such as *.reactos.org) written in PHP and licensed under AGPLv3 or later.

In contrast to CAS, OAuth, SAML or Shibboleth-based solutions, RosLogin is much more
lightweight due to its focus on a single site.
Each login sets a site-wide cookie, which is sufficient to identify a user on every
page of the domain and subdomains.
No Public-Key-Infrastructure or XML message passing needs to be set up for this.

While many Single-Sign-On solutions only provide Login and Logout functionality,
RosLogin also comes with a Self-Service that handles registrations, user data changes,
and forgotten credentials.

Finally, PHP web applications like MediaWiki are first-class citizens for RosLogin.
They can easily get information about the currently logged in user by instantiating
`RosLogin` and calling the `isLoggedIn` and `getUserInformation` methods, thereby
implementing SSO functionality.
RosLogin also takes care to only allow user names that do not conflict with the user
name constraints of popular PHP applications.

By managing the entire user information in an LDAP directory (inetOrgPerson schema),
RosLogin additionally allows a basic integration of applications without writing any
custom code.

The migration to RosLogin will decouple our user database from the CMS, easing a later
migration to any other CMS, and put an end to weirdnesses such as the 30 minute delay
for account changes in JIRA.
2018-04-30 17:04:43 +02:00
Colin Finck
012098ffda [TESTMAN] Don't count the reboot into 3rd stage twice and clarify that only *re*boots are counted.
That means, the first "Running stage 1" line is never counted and an ideal result would only report 2 reboots (into stage 2 and stage 3).
This gets the logic back to what we had in SVN times.

svn path=/trunk/; revision=1012
2017-10-29 10:30:55 +00:00
Colin Finck
967bbfb9cf [TESTMAN] Get the long revision hash from the enhanced KDIO log message instead of using GitInfo. Fixes getting the long hash for revisions outside the master branch (e.g. when testing Pull Requests).
Also output more useful error messages.

svn path=/trunk/; revision=1011
2017-10-16 08:40:27 +00:00
Colin Finck
9ef582774a [TESTMAN] Fix number of tests selected when clicking "Search" another time.
Thanks to Victor for reporting and explaining!
ONLINE-638


svn path=/trunk/; revision=1010
2017-10-06 16:42:28 +00:00
Colin Finck
01f4266127 [ROSWEB] Escape special XML characters in commit messages when outputting them in ajax-gitinfo.php.
svn path=/trunk/; revision=1009
2017-10-05 10:50:33 +00:00
Colin Finck
c25a651da4 [GITINFO] Creating the table with DEFAULT CURRENT_TIMESTAMP removes the "on update CURRENT_TIMESTAMP" at least.
This is still not really what I want, but less of a hack and causes no harm if we ever migrate the database to another server.

svn path=/trunk/; revision=1008
2017-10-05 10:39:04 +00:00
Colin Finck
f512b673da [GITINFO] MySQL always creates timestamp columns with a default value and "on update CURRENT_TIMESTAMP". I have to alter the table afterwards to get rid of these unwanted extras again.
I consider this a bug given that even mysqldump is now unable to identically export and reimport this table..
At least, the people at Stackoverflow have found this way around it: https://stackoverflow.com/a/31865524

svn path=/trunk/; revision=1007
2017-10-05 10:33:37 +00:00
Colin Finck
751ecabdce [ROSWEB] Add missing "break;"
svn path=/trunk/; revision=1006
2017-10-05 09:48:44 +00:00
Colin Finck
22fe6ef0f2 [GETBUILDS] [TESTMAN] Fix SVN pattern.
svn path=/trunk/; revision=1005
2017-10-05 09:46:30 +00:00
Colin Finck
dcb1eb5de8 [GETBUILDS] Update the Previous and Next buttons every time you perform a search and add support for old SVN revisions to them.
svn path=/trunk/; revision=1004
2017-10-05 09:36:18 +00:00
Colin Finck
27508ed4f4 [TESTMAN] Use short hashes where appropriate.
svn path=/trunk/; revision=1003
2017-10-03 16:59:53 +00:00
Colin Finck
6dfa4b1a7d [TESTMAN] Check for the following things in order to properly split up the log into results for each test:
- EOF after looking for a new test
- The completion line "Test XXX completed in #.## seconds"
- SYSREG_CHECKPOINT:THIRDBOOT_COMPLETE

svn path=/trunk/; revision=1002
2017-10-03 16:52:32 +00:00
Colin Finck
9375299190 [TESTMAN] Looks like this line escaped refactoring.. Fix that!
svn path=/trunk/; revision=1001
2017-10-03 16:17:11 +00:00
Colin Finck
7f2af339ad [GETBUILDS] Curly braces along with a variable name are interpreted by PHP inside a string, so I have to concatenate the variable outside.
svn path=/trunk/; revision=1000
2017-10-03 16:07:21 +00:00
Colin Finck
e08f821a1e [GETBUILDS] [TESTMAN] is_numeric also returns TRUE if the revision begins with a number. This can happen for both SVN and Git revisions, so this method is unsuitable to detect a SVN revision number. Use a regular expression instead.
Also fix a warning in ajax-getfiles-provider.php.

svn path=/trunk/; revision=999
2017-10-03 15:58:21 +00:00
Colin Finck
9d3d739b0d [TESTMAN] Revamp Testman for the Git migration, the new Exception handling, and a consistent coding style to make it hackable again!
- Use GitInfo to get latest revisions, revision ranges, and translate between long and short hashes.
  Old results of SVN builds continue to be accessible.
- Support the new WINDOWS_NT_BANNER style in buildbot_aggregator.php.
- Use HTML5 Local Storage for storing all settings throughout the code instead of a mix of cookies and local storage.
- Get rid of the PHP-preprocessed index.js.php and make it a simple index.js again.
- Drop the Test interface. This was an idea to support styles other than WineTests, but it has been superseded by all tests outputting their information in the Wine format.
- Rename WineTest_ResultReader to WineTest_Reader and WineTest to WineTest_Writer.
- Disable the status_check.php script while it is unmaintained.
- Drop support for IE < 8.

svn path=/trunk/; revision=998
2017-09-21 12:32:24 +00:00
Colin Finck
e3b69932cc [GETBUILDS] Implement the new exception handling, use the new shared strings, and make the code consistent with the rest of RosWeb and what is about to come for Testman.
svn path=/trunk/; revision=997
2017-09-21 11:42:38 +00:00
Colin Finck
17986242e0 [ROSWEB] Improve Exception handling and rename GitInfo's DB Settings to not clash with other subsystem's DB Settings.
- An ErrorMessageException shall now be thrown when you want to display an error message to the user.
  Every exception handler shall output its message unmodified.
- A RuntimeException shall be thrown for every other error.
  Every exception handler shall output its message with additional file and line information.


svn path=/trunk/; revision=996
2017-09-21 11:37:19 +00:00
Colin Finck
7a8da8018d [ROSWEB] Prevent error log spam.
svn path=/trunk/; revision=995
2017-09-21 11:34:05 +00:00
Colin Finck
c12a0bb687 [ROSWEB] Add some more translations, which will be shared by GetBuilds and Testman.
svn path=/trunk/; revision=994
2017-09-21 11:32:26 +00:00
Colin Finck
0c9652f31e [ROSWEB] Drop compatibility for IE < 7 in my AJAX library and fix formatting.
svn path=/trunk/; revision=993
2017-09-21 11:10:10 +00:00
Colin Finck
0f19407b6e [TESTMAN] Update the php-diff library to the latest version (revision 3cb3f7c) from https://github.com/chrisboulton/php-diff for PHP7 compatibility.
svn path=/trunk/; revision=992
2017-09-21 11:06:12 +00:00
Colin Finck
874ac0b390 [GITINFO] Improve consistency here as well.
svn path=/trunk/; revision=991
2017-09-21 10:50:57 +00:00
Colin Finck
7b76843059 [TESTMAN] Change the "revision" field to varchar(40) to accommodate for Git hashes and add some keys to accelerate searches. Also make the SQL file consistent with the rest.
svn path=/trunk/; revision=990
2017-09-21 10:50:19 +00:00
Colin Finck
b8182fc34a [GETBUILDS] Adapt GetBuilds to the Git future while retaining full support for our existing SVN builds.
- Make use of the new GitInfo library.
- Report the directory in ajax-getfiles-provider.php instead of guessing it from the filename.
- Split up translations into PHP and JS translations.
  I didn't update anything other than English given that our website still doesn't do localization.
- Get rid of one of my "WTF ideas", namely PHP-preprocessed JavaScript files.
  getbuilds.js.php is now getbuilds.js again, which should increase readability and reduce load times.
- Many code simplifications and consistence with Testman.


svn path=/trunk/; revision=989
2017-09-19 16:58:45 +00:00
Colin Finck
c6c3fd8ae8 [ROSWEB] Introduce the GitInfo library, which can be used to query the gitinfo database.
Instead of providing just the known getLatestRevision from RosWeb, this adds getLatestRevisions, getLongHash, getNextRevision, getPreviousRevision, getRevisionInformation, getRevisionRange, and getShortHash.
They allow us to implement convenient features like the Previous/Next button in GetBuilds even though Git doesn't come with linear revision numbers.
It also gives us an easy translation between long and short hashes.

On top of that, ajax-gitinfo.php provides an AJAX interface around the GitInfo library.

svn path=/trunk/; revision=988
2017-09-19 16:48:25 +00:00
Colin Finck
07f15d1348 [ROSWEB] Fix a concurrency issue in my AJAX library and adapt it to the new license header style.
svn path=/trunk/; revision=987
2017-09-19 16:30:34 +00:00
Colin Finck
6e7ecedb14 [TESTMAN] Introduce a "comment" parameter to let "submit_result" provide an arbitrary comment instead of always generating it from the build number.
svn path=/trunk/; revision=986
2017-09-16 15:22:54 +00:00
Colin Finck
1756d7df38 [WIKI]
Enable members of the "Trusted" group to edit protected pages.
We can now protect pages without needing to hand over full sysop rights to all editors.

svn path=/trunk/; revision=985
2017-06-09 07:32:51 +00:00
Colin Finck
06a01c8fab [WIKI]
Disable uploading for normal users through user rights instead of blocking user accounts through Abuse Filter when they attempt to do so without knowing.
Uploading is limited to people of the "Trusted" group. Just drop me a line if you want to become a member.
Unfortunately, we need to disable uploads by default to combat spam.


svn path=/trunk/; revision=984
2017-03-02 11:37:27 +00:00
Kamil Hornicek
392e450866 [TESTMAN]
- highlight excessive machine reboots as requested by Thomas
ONLINE-641

svn path=/trunk/; revision=983
2016-10-18 17:26:12 +00:00
Colin Finck
8b8df06f4a [TESTMAN]
Remove Result_OnMouseOver and Result_OnMouseOut debug spam.

svn path=/trunk/; revision=982
2016-09-03 11:05:34 +00:00
Colin Finck
fa173dadb1 [TESTMAN]
Fix horizontal scrollbars when comparing test results.
Previous commit didn't fix it for me in Firefox at least.

ONLINE-639


svn path=/trunk/; revision=981
2016-09-03 10:43:55 +00:00
Victor Martinez
058a44a6ac [CSS/Testman]
- Show X scrollbar when the width of test columns is bigger than the screen.

svn path=/trunk/; revision=980
2016-09-02 10:49:29 +00:00