Commit Graph

812 Commits (019e976783e01b83d75f2605e57caa844aea9f9a)

Author SHA1 Message Date
Andras Iklody 019e976783 Removed the js title bubble for related events
- Removed javascripts based title bubble showing the event info in related
  events / attributes and in the search attribute view.

- Replaced it with values provided by extra cake queries as the delay for
  fetching the info field through a js rest request was annoyingly slow

- some coding standards
2013-03-08 13:16:02 +01:00
Andras Iklody 0e18aa099b Attribute and event access
- Updated the check for authorisation to view an event and attribute as
  the system hid some valid combinations (such as a server only attribute
  in a higher distribution level event).
2013-03-07 18:16:00 +01:00
Andras Iklody 3646bca059 Regexp validation
- an invalid regexp entry could block any event/attribute from being
  entered. Introduced a check on regexp entry to block faulty patterns.
2013-03-07 15:19:55 +01:00
Andras Iklody 83294820bf Changes to logs and some minor changes
- Regexp, blacklist, roles, whitelists now logged

- adminCRUD now sets ID (for the logging) on edit

- some minor UI changes (removal of empty action menues on the left menu
  bar)
2013-03-07 11:51:43 +01:00
Andras Iklody 13f2a274e8 Previous edit was an error 2013-03-06 14:07:37 +01:00
Andras Iklody e707d1eedb Error in a previous commit 2013-03-06 14:00:21 +01:00
Andras Iklody 3425a49c7c Enabled filename whitelisting for GFI sandbox uploads
- filename wasn't validated before exec() to unzip before
2013-03-06 13:48:02 +01:00
Andras Iklody b9d4ac9cba Subscription to alerts from contact reporter
- Users can now choose to subscribe to receive e-mails from the "Contact
  Reporter" feature.
2013-03-06 11:34:22 +01:00
Andras Iklody 8abe55dd91 Changed email alert
- It didn't respect private events and alerted everyone. Fixed.
2013-03-05 17:35:57 +01:00
Andras Iklody 5db23738c1 Removed sanitization of emails
- caused linebreaks to be sanitized, it's a plain text e-mail so
  sanitization isn't needed.
2013-03-05 17:04:02 +01:00
Andras Iklody 64f304da48 Tighter checks so users can't edit events of other orgs 2013-03-05 16:17:34 +01:00
Andras Iklody 32dc28adb9 Update to the admin privileges
- Changed the requirement for a lot of functions to be site admin as
  opposed to admin.
2013-03-05 15:19:58 +01:00
Andras Iklody 9dcb22562a Cleanup of some duplicate junk 2013-03-05 13:32:04 +01:00
Andras Iklody e38c7495b4 New regular expressions default values
- List of new values for the regexp table

- if the user_id for an event is not set, set it to that of the user with
  the e-mail address of 'cisprotection@ncirc.nato.int'.
2013-03-05 13:28:34 +01:00
Andras Iklody 4a368918eb Colouring of search terms works in links
- links now have proper colouring to make the found terms more visible
2013-03-04 18:05:17 +01:00
Andras Iklody 036308bc0e Some changes to the search
- changes to the validation of the results

- fixes an issue where the escaping of slashes showed up with a //

- made the found results more visible and case insensitive
2013-03-04 17:33:34 +01:00
Andras Iklody 581fc5e851 Slight update to the filename regex
- accept extensions from 2 to 4 characters in length
2013-03-04 15:42:16 +01:00
Andras Iklody a72503161b Fixed some regex issues and file name validation
- Fixed an issue that caused attribute values to be converted to 1 on
  save in case of an empty regexp table

- Filename validation now happens via whitelisting instead of filename
  sanitization
2013-03-04 14:53:52 +01:00
Andras Iklody b040ea3446 Checkbox / radio misalignment
- Fixed an issue with IE interpretting an unset padding value for
  checkboxes / radio selects as a good reason to give it some high value.
2013-03-04 10:06:12 +01:00
Andras Iklody d80ff67aa6 Previous edit was incorrect, fixed 2013-03-01 15:30:00 +01:00
Andras Iklody 047e71ebc4 Tiny Migration and UI edit
- updates to the migration SQL script

- small change in the new/edit roles UI to solve a misalignment
2013-03-01 15:25:49 +01:00
Andras Iklody dc37542be4 Typo... 2013-03-01 11:16:00 +01:00
Andras Iklody eb5de600b0 Case-sensitivity 2013-03-01 11:11:43 +01:00
Andras Iklody 9645f664dc SQL update 2013-03-01 10:17:44 +01:00
deresz 29191bdde1 Merge branch 'develop' of /home/git/cydefsig into develop 2013-03-01 09:42:28 +01:00
Andras Iklody 8e6852e037 Export distribution
- Export didn't take into account distribution rules, should be fixed

- Fixed a bug with editing attributes
2013-02-28 17:16:52 +01:00
Andras Iklody a0616558e9 Still issues with the attribute search
- should be ok now
2013-02-28 10:16:42 +01:00
Andras Iklody 5ab2de4824 Fix to the updated search attributes
- issue on the live server with the search field left empty, fixed
2013-02-28 09:57:43 +01:00
Andras Iklody 01649046c0 Several things (search, migration)
- Changes to the default setting for non private events after migration

- search attribute update to be able to exclude events
2013-02-27 17:15:09 +01:00
Andras Iklody a735822ca1 Updated the migration script (SQL)
- Script updated based on the issues during testing

- Changed the file upload/downoad mechanism.
2013-02-27 15:24:38 +01:00
Andras Iklody a7bb5c7767 Composite type change
- composite type's value not exploded if value1 already set (to hopefully
  fix issues with the migration tool)
2013-02-26 15:38:08 +01:00
Andras Iklody a8d997c01a Missing migration sql updates 2013-02-26 14:29:44 +01:00
Andras Iklody 9a92637a91 Regexp fixed
- Regexp replacement didn't actually change the data in the object. Fixed.
2013-02-26 13:45:54 +01:00
Andras Iklody 055d48b887 Update sql script to go from 1.0 -> 2.0
- First version of an SQL upgrade script
2013-02-26 10:43:51 +01:00
Andras Iklody ee485b5d22 Fixed a minor error
- comma at the end of line missing in SQL file
2013-02-26 09:08:46 +01:00
Andras Iklody 6dc73314bf Changes to the distribution handling of attributes
- Only the creating org of the event can change the distribution of
  attributes

- Attribute distribution setting are only pushed on edits if they were
  manually changed (so that the distribution level of events on the
  creating server doesn't get degraded by an edit and push of the event at
  a synced server when using connected community settings).

- slight change to the batch attribute search, the search terms are only
  echoed up to 9 terms to prevent the mass echoing of a long list
2013-02-25 16:38:04 +01:00
Andras Iklody 341814a1d4 Some updates to the migration script
- Getting it up to date
2013-02-22 14:42:22 +01:00
Andras Iklody 0969752dc5 Attribute edit fixed
- Editing attributes caused an error because the uuid was not passed back
  from the form (and it is used to find the attribute locally for rest)

- UUID is now used from the read attribute for non rest users. In the long
  run it would be cleaner to not allow non rest users to reach that part
  of the code.
2013-02-22 11:29:22 +01:00
Andras Iklody fad8e809ad Minor changes
- some changes to the access control

- re-renabled regexp and blacklists, will need a closer look though

- editing a role should update ACL

- some other minor things
2013-02-21 17:24:41 +01:00
Andras Iklody fcd91b1654 Previous commit was slightly off
Changed the placing of the unset, as it broke the push of attachments.
Should be fine now.
2013-02-21 10:55:49 +01:00
Andras Iklody b1174c3733 Major bug with attributes disappearing during sync
Found a bug where an instance that has a lower attribute count pushing to
another would cause the attributes with equal attribute ID to get
overwritten with the pushed ones. Unsetting the attribute ID before the
push fixes this.
2013-02-21 10:24:48 +01:00
Andras Iklody 07621afa2d Update to the menu
- minor cosmetic change
2013-02-19 17:29:35 +01:00
Andras Iklody 0f947085cb Reworked the sync / release control
- Fixed issues with the sync
	- Secondary publishes on remote servers failed
	- Introduced new fields in events to stop backward traverse of
	  edit information that lead to low performance and eroneous
	  distribution information updates when more than 2 servers were
	  linked
	- Deletion of an attribute now deletes on remote servers

- Changes to the event ownership
	- Original creator org now noted in the event itself
	- Only original creator org can change distribution
	- Events will show up with the original creator org for users
	  (admins can see both that and the owner of the event on the
	  local instance)
	- Server.organization now used in junction with the connecting
	  user's org and the instance's org (from the bootstrap) to
	  determine distribution flow control and access rights

- Lots of minor changes
2013-02-19 15:37:35 +01:00
Noud de Brouwer ce44cdb529 coding standards
this is to the new php53-pear-CakePHP_CodeSniffer-0.1.11.
2013-02-15 14:20:03 +00:00
Christophe Vandeplas a1d51d4dfa updated structure of the documentation 2013-02-15 08:20:14 +01:00
Christophe Vandeplas 27c809e5f2 further cleanup 2013-02-14 17:01:49 +01:00
Christophe Vandeplas fd1a985251 updated LICENSE from copyright to AGPL and first cleanup of files 2013-02-14 13:32:48 +01:00
Andras Iklody f754eec840 Minor change to the validation
- Some types didn't have any validation info, defaulting in an incorrect
input - fixed

- re-enabled the sanitization of file names
2013-02-11 17:23:07 +01:00
Andras Iklody e17228490b Minor changes to the validation 2013-02-11 15:56:10 +01:00
Andras Iklody afed0f2046 Changes to link validation and minor fixes
- Links get validated now to filter malicios code

- removed a double edit button in the case of an admin editing himself

- fixed an error with adding new attributes
2013-02-11 11:26:34 +01:00