Giter Site home page Giter Site logo

directus / v6-archive Goto Github PK

View Code? Open in Web Editor NEW
2.0 5.0 4.0 45.67 MB

Directus 6 Suite — Legacy [EOL]

Home Page: https://directus.io

PHP 36.21% HTML 0.53% JavaScript 47.83% CSS 6.82% Shell 0.17% Dockerfile 0.08% Makefile 0.02% Twig 0.86% Handlebars 3.52% SCSS 3.96%

v6-archive's Introduction

Directus Logo

 

This end-of-life version of Directus has been deprecated and is superseded by the latest version on directus/directus. Learn more about the updates and improvements of our new version at directus.io.

 

Our Core team is quite small and can not maintain legacy versions of Directus. We'll glady review any community pull-requests to this repository, but using this version is highly discouraged.

 


Directus is released under the GPLv3 license. RANGER Studio LLC owns all Directus trademarks and logos on behalf of our project's community. Copyright © 2006-2018, RANGER Studio LLC.

v6-archive's People

Contributors

aeonzh avatar airbenich avatar arboehme avatar benhaynes avatar coolov avatar danhipke avatar freen avatar idelb avatar ilama avatar jasekz avatar javiercf avatar jel-massih avatar jonhershon avatar jwdeitch avatar lasha avatar laszlokorte avatar magbeat avatar martinfojtik avatar maxgsoulcycle avatar mickrip avatar nithinga avatar nstcactus avatar parnas avatar rijkvanzanten avatar sethjgore avatar stevepatter avatar the0neyouseek avatar wedjaa avatar wellingguzman avatar worksdev avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

v6-archive's Issues

Columns sorting drag and drop problems

From directus created by rijkvanzanten : directus/directus#1891

Version Info

  • Directus version and branch: develop 5ce02d371465e8ce07e634453f7319ef6cd4c066
  • Browser: Safari 11.0.1, macOS High Sierra 10.13.1 Beta (17B25c)

Expected Behavior

Dragging the column name changes the order

Actual Behavior

It only orders.. when it wants to? It seems to help if you move the cursor fast.

Schema Dump, Logs, or Screenshots

2017-10-11 13_45_35

Repeatedly disconnected "due to inactivity" randomly after any? action

From directus created by rmNyro : directus/directus#2022

Hi,

Long story short, I came to work today and I had that annoying bug which kicks me almost randomly "due to inactivity". I managed to check the timer but the value is 120 and changing it doesn't do a thing...
Yesterday I did some automated (~130 entry added) import through the api. Worked like a charm, no problem whatsoever.

Today I needed to check something in the interface before testing bigger imports. I didn't do anything else than enter login/pass and connect. Then I instantly got kicked. I can (with a little bit of luck) connect if the redirection takes me to settings apparently (EDIT: the "safe domains" extended after the db reboot). Then when I try to change some permissions or see any tables, I get disconnected instantly or almost instantly after that (EDIT: now I have ~50% to see a category page).

Context

PHP: 7.0.23
Mysql: MariaDB 10.1
Web server: Apache
OS: Debian 8.9

Complementary information

I was curious if this was related somehow to the update you made (it was unlikely to be so but it's a test server) so I followed your upgrade guide and here are the commands I ended up using:

cd tmp && rm -rf ./* \
&& tar -xzf ../directus-build-6.4.5-20171218214444.tar.gz \
&& rm -rf ../app/ ../assets/ ../bin/ ../composer.* ../customs/ ../index.php ../installation/ ../login.php ../readme.md ../templates/ ../thumbnail/ ../vendor/ \
&& mv app/ assets/ bin/ composer.* customs/ index.php installation/ login.php readme.md templates/ thumbnail/ vendor/ ../

I did launch php bin/directus db:upgrade after that and got:

db:setup - table 'directus_schema_migrations' already exists. Nothing to do.
db:migrate - UpdateDirectusUsersTokenColumn - Error executing 'query' with:
ALTER TABLE `directus_users` CHANGE `token` `token` varchar(128) NOT NULL

Reason: Duplicate entry '' for key 'directus_users_token_unique'

But it didn't break the site nor did it fix the bug (no change so far, as expected).

I'm absolutely clueless right now. I'll try to investigate further...maybe it's something real dumb...
Tell me what you info need and I'll see if I can collect it.

Privilege Option not working as intended

From directus created by neocafe : directus/directus#1977

Version Info

  • Directus version and branch: Latest Version
  • PHP version: 7.2
  • MySQL version: 5.10
  • Web server: Apache
  • OS name and version: Ubuntu 16.04

Expected Behavior

When setting the privilege to view only, can view the entries but cannot modify any data which includes files also.

Actual Behavior

Not seeing the already uploaded file but can see only an upload option.

Steps to Reproduce

  1. Add a new user group that can only view data
  2. Assign user to a table that has some file(s) in it
  3. try to login as the user and navigate to it.

Schema Dump, Logs, or Screenshots

access
after_login

UPDATE

So, After running some tests I was able to have the files listed instead of getting a file upload button, but still I can remove the image ( won't get updated but still a non-privileged user can see a form )

The problem is that I will have to grant permission to the directus_files table to the user, now the user can view all the files I've uploaded on to the server.

Uncaught TypeError: e.startTracking is not a function when trying to open a M2O field before saving the parent

From directus created by iKonrad : directus/directus#2023

Hi all

Thanks for the amazing library, I'm stoked on how flexible and versatile this tool is.

I'm having an issue with a Many to one relationship here.

Version Info

  • Directus version and branch: 93ceb86
  • PHP version: 7.1.12
  • MySQL version: mysql Ver 14.14 Distrib 5.7.20
  • Web server: Apache
  • OS name and version: Ubuntu 16

Expected Behavior

Actual Behavior

So, let's say we have a User and Addresses tables.

On Addresses, I've added an INT field with a M2O relationship to the User, with an option to Add addresses and Choose from existing dynamically. The problem is when you want to create a new user, add a new address (saves just fine), then go back to the unsaved user and click on the Address again (without saving the user), the JavaScript will fail with the following error:

image

Steps to Reproduce

  1. Create a User table
  2. Create an Addresses table
  3. On Addresses table, create an INT column and set it up as a M2O relationship to user
  4. On User table, create a One-to-many relationship and point to Addresses table. Also, make sure to have Add Button, Choose Button, Remove Button options selected in Interface options.
  5. Now, go to the Users section and open the "New item" menu.
  6. Add a new address item in the menu, save the address to get back to the New user menu.
  7. Now, without hitting the save button for the user, click on the Address that you have just created.

Something worth mentioning:
If, after the step 6, you saved the User item and opened it again, you could access the address property just fine.

Schema Dump, Logs, or Screenshots

No logs available as this is a JS issue.

M2M relationships with no duplicates buggy - multiple records still created

From directus created by jedimonkey : directus/directus#1999

Version Info

  • Directus version and branch: (Or commit hash) 6.4.4
  • PHP version: 7.1.9
  • MySQL version: 5.5
  • Web server: (Ex. Apache, nginx or IIS?) Nginx (running from docker)
  • OS name and version: Docker container

Expected Behavior

When creating a M2M relationship, you create a junction table which tracks the relationships. Enabling 'no duplicates' should mean that no duplicate records are ever created and sorting work.

Actual Behavior

You are still able to add duplicates via the interface, which then in turn saves to the database. However upon editing the record, it only shows you unique junctions. Upon investigating the database, I found multiple joins. This affects sorting as sort values are assigned, but due to the duplicates you may get inconsistent order. And once you have duplicates you also get odd behaviour when removing junction records as you may remove a junction, save and then reedit the page shows the junction like it was never removed (as only a duplicate was removed). If you clear out all duplicates, functionality works as intended.

Steps to Reproduce

  1. Create 2 tables, A, B and Joiner (no status required for Joiner)
  2. Add a column to B, 'title' (text)
  3. Add a 2 columns to Joiner, 'a_ref' (numeric) and 'b_ref' (numeric)
  4. Add a column to A, 'Bs' (many to many, a.id => joiner.a_ref & joiner.b_ref => b.id) See:
    image Ensure that No Duplicates are set. and put 'title' in for the visible/filtering columns and remove ability to add records.
  5. Create 3 test B records (B1, B2, B3)
  6. Create record under A, click 'choose' and add in B1 & B2 & B3. Order to B1, B2, B3 (save)
  7. Re-edit, change order and save (ensure it's working)
  8. Re-edit and ensure order is B1, B2, B3 (click save).
  9. Re-edit and click 'choose' and add in B2, B3. Take note of order but don't change - (mine is B1, B2, B3, B2, B3) - click save
  10. Re-edit and you should see the order of B1, B3, B2. Removing either B2 or B3 (or both) changes order, but still shows that it referenced in the junction.

Creating new User with exsiting users email overrides original user

From directus created by Geo719 : directus/directus#1983

Version Info

Latest Docker Image

Expected Behavior

Creating a new user should be indipendent of any email used.

Actual Behavior

Creating new User with exsiting users email overrides original user

Steps to Reproduce

  1. Have Admin (A) user with email XYZ
  2. Create new (admin) user (B), also with email adress XYZ
  3. User data (A) will be updated with user data (B)

Mandatory Field allowing null values

From directus created by danieljones97 : directus/directus#2034

When setting up a new table, I specified that the first field was mandatory, however when adding my first row to the table using Postman and the API, I could leave the first field blank and the table was still updating with the new row.

Version Info

  • Directus version and branch: 6.4.3
  • PHP version: 5.6.0
  • MySQL version: 5.5.55
  • Web server: Apache 5.5.1
  • OS name and version: macOS Sierra Version 10.12

Expected Behavior

I should receive an error stating that the first field is mandatory

Actual Behavior

The table is updated with the new row and the first field is null.

Steps to Reproduce

  1. Create a new table in directus.
  2. Add a new field and click the star next to the column to state it is required.
  3. Using Postman, hit the API endpoint without passing any data to that first field.

updateFile API does not upload file

From directus created by moeomer : directus/directus#2085

Version Info

Directus Build 6.4.3
File adapter: S3

Expected Behavior

Using updateFile API, one can replace a file using base64 data that is then uploaded using the file adapter.

Current Behavior

updateFile succeeds, albeit only updating file metadata (e.g. tags) and not uploading the file

Steps to reproduce

  1. Call updateFile with base64 data

Unable to view Files as thumbnails when creating item within Directus

From directus created by philleepflorence : directus/directus#1935

Version Info

  • Directus version and branch: 6.4.3
  • PHP version: 7
  • MySQL version: 5.7
  • Web server: Apache
  • OS name and version: CentOS 7

Expected Behavior

When selecting Choose Existing in Single or Multiple Files Interface, one would see thumbnails of files to select.

screen shot 2017-11-01 at 5 40 59 pm

Actual Behavior

When selecting Choose Existing in Single or Multiple Files Interface, one sees rows of files, with no image preview.

screen shot 2017-11-01 at 5 41 12 pm

Steps to Reproduce

  1. Add a single or multiple file input to any table.
  2. Create a new item and try to add image

Schema Dump, Logs, or Screenshots

Table: directus_tables
screen shot 2017-11-01 at 5 46 41 pm

Table: directus_preferences
screen shot 2017-11-01 at 5 48 18 pm

Table: directus_columns
screen shot 2017-11-01 at 5 50 18 pm

Display translated column content in translated table

From directus created by mrleblanc101 : directus/directus#2136

Version Info

  • Directus version: 6.4.0
  • PHP version: 7.1
  • MySQL version: 5.7.21
  • Web server: nginx
  • OS name and version: macOS 10.13.4

If I follow the medium tutorial to setup translation in the official documentation, everything work.
The problem is that my main table only display the number of translation, not the column content in the admin using the default language (the one set in the settings for exemple).
Instead of seeing "Title: Project title" and "Body: Project body..." column, I see "Translation: 2" which is not very usefull since i have no way of knowing which item is which ! The ugly solution i found is having a "title" in my "projects" table and another "title" in my "projects_translation" table too, one which is translated, one which is not.

Schema Dump, Logs, or Screenshots

capture d ecran 2018-04-25 a 14 43 16
capture d ecran 2018-04-25 a 14 43 10

Password Field Salt not generating

From directus created by brianhyper : directus/directus#2059

Version Info

  • Directus version and branch: 6.4.5
  • PHP version: 7.0
  • MySQL version: 5.7
  • Web server: Apache
  • OS name and version: Linux

Expected Behavior

Password field should generate a salt into the salt field or use the one we wrote into the salt field to hash with the password. We should have data into the salt field and if you wrote manually a string into the salt field and we compare the saved hash with the salt+clear_password it's not working because it didn't use any salt be we want one.

Or maybe I have miss something and the doc isn't clear at all...

Actual Behavior

No salt generated or if we enter one in the salt field it didn't use it to hash the password. So if you compare the hashed password with the clear_password it will work without any salt be we want one.

Steps to Reproduce

  1. create a table or use one already existing
  2. add a password field
  3. add a salt field (of type VARCHAR, or TEXT or what ever could hold a salt string because we tried every type and nothing work...)
  4. configure the password field to use the salt field we just created
  5. create a new entry into the new table or use an existing one
  6. try to generate a password and save
  7. go see if the salt field was populated or try to hash the password with the string you wrote into the field it will not work, but if you hash with the password you just generated it will work without salt.

Schema Dump, Logs, or Screenshots

Several actions in WYSIWYG full leads to an error

From directus created by Alekshar : directus/directus#1906

Version Info

  • Directus version and branch: release 6.4.3 zipped
  • OS name and version: Windows 7
  • Browser : Chrome 61

Expected Behavior

As I am trying to use the WYSIWYG full editor, many operations are failing by throwing the same error
"Error: Uncaught TypeError: e.replace is not a function
File: http://localhost:8081/directus/app/directus.min.js?bust=pg7e04e6c0p4sj47i5ol8pa7s7
Line:32"

Underline, define table width or create lists (both dotted and numeric) are affected by this error.

Workflow: Not Saving Per Status

From directus created by benhaynes : directus/directus#1542

Saving Normally:

Working. This saves a table's permissions with NULL under status_id and is the ONLY value for the table/group.

Saving a Workflow:

Not working. Should save table/group values for EACH status option in the statusMapping and the NULL record (for normal/global, see above) should be removed. When viewing the Settings>Groups>Permissions it should have the workflow open by default (pageLoad) so you can see all the privileges.

PHP SDK create user permission issue

From directus created by imknight : directus/directus#2135

Version Info

  • Directus version and branch (Or commit hash):
  • PHP version: 7.2
  • MySQL version: MariaDB 10.2.12
  • Web server: (Ex. Apache, nginx or IIS?) Nginx
  • OS name and version: Mac High Seira

Expected Behavior

trying to use the API create user, it should return a user object when success

Actual Behavior

it return 403 forbidden error.
Client error: POST http://data.test/api/1.1/tables/directus_users/rows resulted in a 403 Forbidden response: { "success":false, "error":{ "message":"[Group #6 User #5] Write (set) access forbidden to table `directus_users

Steps to Reproduce

  1. create user, given access to direct_user.
  2. doing the php sdk call using the user token.
  3. getting the 403 error.

Schema Dump, Logs, or Screenshots

Can't Login After Installation - get 404 Error

From directus created by BenSegni : directus/directus#2144

For security issues, please email [email protected] directly.

Version Info

  • Directus version: 6.4.9
  • PHP version: 5.7
  • Web server: Apache

Expected Behavior

Click login, access GUI

Actual Behavior

Click Login Button - this error:
http:/my_url/projects/calculator/cms/api/1.1/auth/login 404 (Not Found)

I've followed the instructions to installing directus using filezilla, where I am currently testing the success of an application I have built locally. I have tried to deploy the cms several times have been met with the same error. I have the config set up correctly (I think) and am still getting this error.

Friendly Errors

From directus created by benhaynes : directus/directus#1237

All error notifications should be friendly and easy to understand, and then give a detailed/technical error message in console.error.

For example, currently we get this:

Server Error

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/directus/vendor/zendframework/zend-db/src/Sql/Select.php on line 718

But that should be the console error (with any other help info) and the following should be the notification error:

Error
The server is taking too long with this request. If this persists please contact an administrator.

Unable to save table when "Single Item" is checked

From directus created by lorenzone : directus/directus#2149

Hi there, I guess there's a little mistake on table editing when someone tries to create a 'Single Item' table, the table won't update :p

Version Info

  • Directus version and branch (Or commit hash): 6.4.9, master, commit aba7727
  • PHP version: 7.0.29
  • MySQL version: 10.0.35-MariaDB
  • Web server: Apache
  • OS name and version: linux

Expected Behavior

The table should save when I check "Single Item" and click save in the admin settings

Actual Behavior

Returns the following error :

Error
Error: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
File: http://porro.loren.zone/app/modules/tables/views/EditView.js?bust=aba7727c527125d35e1fc97219ef2ea7c7a8098d
Line:233

Steps to Reproduce

  1. As Administrator, go to Admin Settings
  2. Inside Tables & Fields click Manage
  3. Then Select a Table to manage
  4. Check 'Single Item'
  5. Click Save
  6. Error

I tried with and without adding new columns => same result

Schema Dump, Logs, or Screenshots

image

Is there a way to directly change this in the database ? even that quick fix should be okay for me, for the moment.

avoid text-encoding: chunked for small table

From directus created by tiptronic : directus/directus#2061

I have a somewhat large table (not really large, but 1000 rows and 50 columns). The text-content of each row is less than 400 bytes/row.

Now when I query the table I always get a chunked response (and Error 500) - even if I just query 1 row:.

  • table1 contains 6 fields
  • table2 contains 50/40/30/20 (I deleted fields in batches of 10 -> when there are only 10 fields left, it starts working)

http://directus.test/api/1.1/tables/table1/rows -> works
http://directus.test/api/1.1/tables/table2/rows -> chunked
http://directus.test/api/1.1/tables/table2/rows?limit=1 -> chunked

I have to reduce the number of fields to approx 10, to get the response send unchunked.

If I put much more date into one of the fields of table1 - it is still send unchunked (although the request to

http://directus.test/api/1.1/tables/table1/rows

now contains a multiple of the data as the reqsponse from table2...

So I guess, it's not (only) a Apache problem...

Is there anything we can avoid this on directus side?

thanks
andy

Version Info

  • Directus version and branch: (Or commit hash) 6.4.0
  • PHP version: 7.2.1
  • MySQL version: 5.6.38
  • Web server: (Ex. Apache, nginx or IIS?) Apache 2.2
  • OS name and version: macOSX 10.11

Error when adding a user with duplicate email-address in the group-permission pane

From directus created by tiptronic : directus/directus#2066

For security issues, please email [email protected] directly.

To help us resolve your issue more quickly, please use the following template:

For feature requests/voting please use the Directus Request Tool, or come chat with us through getdirectus.com. Accepted feature requests will be added to GitHub Issues for assignment.

Version Info

  • Directus version and branch: (Or commit hash) 6.4.6
  • PHP version: 7.2.1
  • MySQL version: 5.6.38
  • Web server: (Ex. Apache, nginx or IIS?) Apache 2.2
  • OS name and version: MacOS X

Expected Behavior

Actual Behavior

When adding a new user in the (group-permissions) backend manually and adding an already used email-address, I can save this user, but when I try to save the group-permissions-pane, I'm getting an type-error and it shows an

Error
Error: TypeError: undefined is not an object (evaluating 'n.isParentRightPaneOpen')
File: http://directus.test/app/directus.min.js?bust=tesr2rtaufp42qidlfjghtoukj
Line:58

Steps to Reproduce

  1. Go to global settings > group permissions
  2. Add new user and enter an already used email-address
  3. Save user (no error) and then save the group-pane -> error above

Schema Dump, Logs, or Screenshots

Error
Error: TypeError: undefined is not an object (evaluating 'n.isParentRightPaneOpen')
File: http://directus.test/app/directus.min.js?bust=tesr2rtaufp42qidlfjghtoukj
Line:58

Links don't use anchor tag

From directus created by rijkvanzanten : directus/directus#1905

Version Info

  • Directus version: 6.4.x

Problem

All links on the page (navigation, table rows etc) are regular text elements with an onclick handler instead of an anchor element <a>. This problem has been mentioned on the feature request tool as well.

I raise it as an issue here since I don't feel like this is a feature, but a major design flaw in terms of accessibility and usability. No navigational items can be focussed by keyboard users, screenreaders don't know they're actual links and thus read them as regular text, and other keyboard based navigational tools and extensions like Vimmy are rendered useless.

When selecting an item for M2M type that has reference to another table, I would expect to see the related table field in Twig format as defined in column settings, instead it shows just an ID.

From directus created by lokers : directus/directus#2080

Version Info

  • Directus version and branch: 6.4.4
  • PHP version: 7.2.2
  • MySQL version: Ver 14.14 Distrib 5.7.21, for osx10.13 (x86_64)
  • Web server: Apache
  • OS name and version: macOS High Sierra 10.13.2

Expected Behavior

When selecting an item for M2M type that has reference to another table, I would expect to see the related table field in Twig format as defined in column settings, instead it shows just an ID.

Actual Behavior

When I view existing row, I only see {{id}}, then when I click to add new, I see correct format I defined in Twig format, or when I click on existing it swaps again from {{id}} to current defined format. It looks like when the initial pull for fields is made, it doesn't extend the info the same way when new row is added, because then the id becomes extended with Twig format. (Look at the last screenshot)

Steps to Reproduce

  1. Create a table with fields: id, title, subcategory_id
  2. subcategory_id, will be many-to-one type field with interface options as:
  • visible columns: id,title
  • twig column template: {{id}}: {{title}}
  1. Create another table with fields: id, title, profiles
  2. profiles will be many-to-many type field with interface options as:
  • visible columns: id,title,subcategory_id
  • twig column template: {{id}}: {{title}}
  1. Go and try to add new row and watch the m2m field, specifically the subcategory_id column.

Schema Dump, Logs, or Screenshots

screen shot 2018-02-26 at 09 16 03

screen shot 2018-02-26 at 09 16 12

screen shot 2018-02-26 at 09 18 16

screen shot 2018-02-26 at 09 18 35

screen shot 2018-02-26 at 09 21 30

Bookmarks should store table filters

From directus created by jroxendal : directus/directus#2093

Version Info

  • Directus version and branch (Or commit hash):
    directus/directus@62eb6d1
  • PHP version: 5.6.23
  • MySQL version: mysql Ver 15.1 Distrib 10.0.23-MariaDB
  • Web server: (Ex. Apache, nginx or IIS?) Apache
  • OS name and version: some linux server

Expected Behavior

When viewing a table and selecting a filter (over, say, unpublished items that require editing), that filter is not encoded in the location bar. Thus, when creating a bookmark, the filter is not included.

Actual Behavior

The filter seems tied to the table by some other means (session? user account?). It is not bookmarkable.

The behavior I would prefer is that of a Smart Playlist in iTunes or Smart Folder in Finder, which show an ever changing list of items that conform to some constraint (e.g. <tag is 'work' and filetype is 'pdf' and filename contains 'bookkeeping'>). Having filters bookmarkable would bring such functionality to Directus.

Item Listing: item highlighting not working

From directus created by WellingGuzman : directus/directus#1979

Version Info

  • Directus version and branch: 6.4.4

Expected Behavior

When you save a item and should take you back to the listing table and highlight the item row that was recently saved for couple of seconds. (aka flash the row)

Actual Behavior

Doing nothing.

Steps to Reproduce

  1. Go to any table listing
  2. Click on a item
  3. Save that item
  4. Nothing happens

Schema Dump, Logs, or Screenshots

Global Settings: Project URL feature appears not to work

From directus created by andrewliles : directus/directus#2116

Version Info

  • Directus version : 6.4
  • PHP version: as per your Docker image: getdirectus/directus:6.4
  • MySQL version: 5.5
  • Web server: none
  • OS name and version: as per your Docker image: getdirectus/directus:6.4

Expected Behavior

Having set a project URL, when I click on the logo top left of UI, would expect to be taken to that location.

Actual Behavior

UI refreshes to /tables

Steps to Reproduce

  1. Admin Settings
  2. Global Settings
  3. Set field "Project URL" to something like http://www.google.com
  4. Save
  5. Click on logo in top left corner of UI (directus logo, if you have not changed that)
  6. End up on Tables view, rather than http://www.google.com

Schema Dump, Logs, or Screenshots

I can see this JavaScript object in the raw page source:

<script>
  window.directusPath = '/';
  window.directusData = {"cacheBuster":"d0e 
--snip--{"id":3,"collection":"global","name":"project_url","value":"http:\/\/www.google.com"}

By inspecting the built DOM, the customized URL is not showing in what I think would the correct :

<a href="/" class="open-modal" data-modal="welcome-1"><div class="logo help static has-project-logo" data-help="Your Logo --snip--

Error while updating records with relations and group permissions

From directus created by nithinga : directus/directus#1658

Version Info

  • Directus version and branch: version/6.4 - c6fb433
  • PHP version: 7.1
  • MySQL version: 5.7
  • Web server: Apache
  • OS name and version: Docker ( Ubuntu )

Expected Behavior

When adding the record with relations, it should be added properly.

Actual Behavior

When adding the record with relations, it gives the given error in screenshot.

Steps to Reproduce

  1. Make 2 tables, eg: topics and books
  2. Make 2 groups, topic-manager and book-manager. Give permissions like book-manger can enter book details under a topic, but he cannot edit, delete or add topics.
  3. Login as book-manager and try to enter a new book detail. We will get the given screenshot error. This happends due to Directus trying to update all the relational tables, but donnot have permission. :( what is the need of trying to again update all relational tables ?

Logs or Screenshots

screenshot from 2017-07-05 14 48 22

Language Translations

From directus created by benhaynes : directus/directus#1203

Directus now has multilingual support – and we're looking for anyone interested in helping translate our English default language file into other languages. It's as easy as copying that en.json file and changing the values!

PR any translations into this Directory.

🇺🇸 @benhaynes – I can handle this ;) Though I always love help/corrections!
🇫🇷 @christophemarois – you had mentioned helping with French, still interested?
🇪🇸 @wellingguzman – you've got Spanish covered?
🇩🇪 @katywings – German! Bitte...
🇨🇳 @TigerHix & @Gfast2 – Chinese! 谢谢...
🇧🇷 @michaelnagy – Brazilian/Portuguese! Obrigado...
🇮🇹 @aeonzh – Italian! Grazie...
🇳🇱 @rijkvanzanten – Dutch! Dank je...

Sorting behaviour in tables

From directus created by ivansf : directus/directus#2033

For security issues, please email [email protected] directly.

To help us resolve your issue more quickly, please use the following template:

For feature requests/voting please use the Directus Request Tool, or come chat with us through getdirectus.com. Accepted feature requests will be added to GitHub Issues for assignment.

Version Info

  • Directus version and branch: (Or commit hash)
  • PHP version: 7
  • MySQL version: RDS Aurora
  • Web server: Apache
  • OS name and version: Ubuntu Artful

Expected Behavior

Be able to sort tables in the admin panel.
Be able to view dates in the table

Actual Behavior

Sort doesn't seem to be working.
Dates only come up some times when doing command+R refresh. multiple times clicking the column header makes the dates to come up but not sorted.

Steps to Reproduce

  1. Create a table with title and date_updated system field.
  2. Add some records.
  3. Visit the table in the admin panel, try to sort.

Schema Dump, Logs, or Screenshots

Database
screen shot 2018-01-25 at 1 46 28 pm

When initially loaded (command+R)
screen shot 2018-01-25 at 1 46 15 pm

after cycling through clicking the date updated header
screen shot 2018-01-25 at 1 46 20 pm

Validation Fields not enforcing rules

From directus created by danieljones97 : directus/directus#2035

On text fields you can specify validation in the form of a Regular Expression. When I tried to use this feature, the regex I used was not enforced. I set it up to only allow letters a to z, in lower case and exactly two characters. The regex I used for this was [a-z][a-z]
When I used Postman to hit the API endpoint for this table, I passed "abc" to test and no error was returned and the table was updated.

Version Info

  • Directus version and branch: 6.4.3
  • PHP version: 5.6.0
  • MySQL version: 5.5.55
  • Web server: Apache 5.5.1
  • OS name and version: macOS Sierra Version 10.12

Expected Behavior

I should receive an error stating that the data is invalid and my custom Validation Message should be displayed.

Actual Behavior

No error is returned and the table is updated with the new row

Steps to Reproduce

  1. Create a new table in directus.
  2. Add a new field and go to the interface options
  3. Select the "Regex" Validation Type and under Validation String, enter [a-z][a-z]
  4. Using Postman, hit the API endpoint for this new table and pass the first field as "abc"
  5. Notice that there is no error returned and the table is updated with the new row in directus.

Unable to select 'User' in User Interface type after an table import

From directus created by spawnrider : directus/directus#2084

Version Info

  • Directus version and branch: Using Directus Docker 6.4 version
  • PHP version: 7.1.2
  • MySQL version: 5.5
  • Web server: Apache
  • OS name and version: Windows 10

Expected Behavior

I imported an table from another environment.
I want to manage it on Directus.
This table contains a column of type INT(11).
This column was of "User" User interface type on the source environment.
It would be also of "User" type on this environment.

Actual Behavior

On this environment, the type is NUMERIC and cannot be switch back to "User".

Steps to Reproduce

  1. Create a table with "User" field of type "User" on an environment
  2. Copy this table using SQL / PhpMyAdmin to another environment
  3. Manage this table on this new environment.
  4. The "User" field is now of type "NUMERIC" and not "User".

Schema Dump, Logs, or Screenshots

directus_user_issue

http status code 200 on runtimeException

From directus created by dlaprade : directus/directus#1985

Version Info

  • Directus version and branch: 6.4.3
  • PHP version: 7.1.11
  • MySQL version: MariaDB 10.1
  • Web server: Apache
  • OS name and version: Debian Jessie Linux

Expected Behavior

If Directus throws a RuntimeException, a status code of 500 should be thrown.

Actual Behavior

When Directus server ran out of hard drive space, a RuntimeException was thrown with a status code of 200.

Error in response

<br />
<b>Warning</b>:  session_start(): open(/tmp/sess_022a205602f9b58f0a8f5d1bae0f01e2, O_RDWR) failed: No space left on device (28) in <b>/var/www/html/api/core/Directus/Session/Storage/NativeSessionStorage.php</b> on line <b>81</b><br />
<br />
<b>Warning</b>:  session_start(): Failed to read session data: files (path: ) in <b>/var/www/html/api/core/Directus/Session/Storage/NativeSessionStorage.php</b> on line <b>81</b><br />
<br />
<b>Fatal error</b>:  Uncaught RuntimeException: Session start failed in /var/www/html/api/core/Directus/Session/Storage/NativeSessionStorage.php:82
Stack trace:
#0 [internal function]: Directus\Session\Storage\NativeSessionStorage-&gt;start()
#1 /var/www/html/api/core/Directus/Session/Session.php(46): call_user_func_array(Array, Array)
#2 /var/www/html/api/core/Directus/Bootstrap.php(230): Directus\Session\Session-&gt;__call('start', Array)
#3 [internal function]: Directus\Bootstrap::app(NULL)
#4 /var/www/html/api/core/Directus/Bootstrap.php(72): call_user_func('Directus\\Bootst...', NULL)
#5 /var/www/html/api/api.php(47): Directus\Bootstrap::get('app')
#6 {main}
  thrown in <b>/var/www/html/api/core/Directus/Session/Storage/NativeSessionStorage.php</b> on line <b>82</b><br />

Slow API response time

From directus created by mbaljeetsingh : directus/directus#2020

Hey @wellingguzman
Directus has all the features I need for my next project. But there's one more issue related to speed, I have created the same API with directus, cockpit and strapi. Also, added the same data. But, Directus is taking longer than the others to return almost the same amount of data. In that case half the data.

Directus (via Postman)
directus

Strapi (via Postman)
strapi

Cockpit (via Postman)
cockpit

Login server error occured

From directus created by rnnyrk : directus/directus#1282

Version Info

  • Directus version and branch: 6.3.4
  • PHP version: 5.5.9-1ubuntu4.17
  • MySQL version: Ver 14.14 Distrib 5.5.49
  • Web server: Apache(2)
  • OS name and version: macOS El Captain

Expected Behavior

Install Directus as a local installation.
Login using email and password.

Actual Behavior

Install Directus as a local installation.
Getting error when submitting email and password. (I see in the console that there is a 404 error to the api path.)

Steps to Reproduce

  1. Install a fresh installation
  2. Try to log in

Logs or Screenshots

Same as: directus/directus#1239

Issue

My question is very similar to the one above, but I can't seem to fix it with the solution given in that topic. I'd a fresh install, but trying to login keeps returning a "Server error occured". In my root there is a .htaccess and everything else from this file:

<ifModule mod_rewrite.c>
    RewriteEngine On
    # Uncomment this if you are getting routing errors:
    RewriteBase /
</ifModule>

Also /api/.htaccess contains everything from the example file except the change I commented RewriteBase /api out. When I execute a2enmod rewrite it logs that mod_rewrite is allready installed.

I've also tried editing the VirtualHost files. In /etc/apache2/apache2.conf I've configured it as shown below. As said in the documentation I'd add the AllowOverride All, but unfortunately it didn't work.

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

<Directory /var/www/directus/>
        Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
        Require all granted
</Directory>

This topic directus/directus#1038 also suggested to change FollowSymLinks to SymLinksIfOwnerMatch, but this didn't change anything.

In /etc/apache2/sites-available/directus.conf I do have the code as following:

<VirtualHost *:8080>
    ServerName directus.DOMAIN.com
    ServerAlias directus.DOMAIN.com
    DocumentRoot /var/www/directus
    DirectoryIndex index.php
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

After I did some changes I always did run sudo service apache2 restart which logged a [OK] status.

I don't know how to fix anymore.
Someone who can help me out?

WYSIWYG Full does not load on IE11

From directus created by michlschmitt : directus/directus#2031

Version Info

  • Directus version and branch: 6.4.5. bundled version
  • PHP version: PHP 7.0.25
  • MySQL version: 5.5.58
  • Web server: nginx
  • OS name and version: Windows

Expected Behavior

Write an article via WYSIWYG Full Interface.

Actual Behavior

The WYSIWYG Full Editor does not show up on Windows and Internet Explorer 11.

ie-wysiwyg

Steps to Reproduce

  1. Create a table with WYSIWYG Full field
  2. Open the table and insert content if you can see the editor

WYSIWYG Full not working on relational edits

From directus created by peremp : directus/directus#1567

Version Info

  • Directus version and branch: 6.3.9 and 6.4.0

Imagine that we have a table solutions, a table problems, and a table use_cases as junction table.
The table solutions has a M2M field called "related problems".

Steps to Reproduce

  1. Create some random problems.
  2. Create a solution, and in the "related problems" field choose some of the existing problems created on step 1.
  3. Save.
  4. Edit the solution and click on any of the related problems added on step 2.
  5. Edit something on the problem
  6. Click "Save".

Expected Behavior

The problem changes are saved.

Actual Behavior

The changes are not saved.

Also

If the problem table have a "WYSIWYG" editor, it is not loaded when accessing to the problem through the solution edition.

Batch Edit - Stepping out of the page error

From directus created by WellingGuzman : directus/directus#1848

Version Info

  • Directus version and branch: 6.4.3
  • PHP version: 5.6.30
  • MySQL version: 5.6.35
  • Web server: Apache
  • OS name and version: MacOS 10.12.5

Expected Behavior

No error, step out of the page easily

Actual Behavior

When trying to step of the page an error message: topViewInfo is undefined appears.

Steps to Reproduce

  1. Go to any table with M2M
  2. Select two or more items
  3. Click Batch Edit on top of the page
  4. Add couple of M2M items, then step out

Schema Dump, Logs, or Screenshots

Note: I will be adding more info later.

Extensions - Proper way to use router?

From directus created by cj3g10 : directus/directus#2126

Version Info

  • Directus version and branch (Or commit hash): v6.4.9 (Ruby Rabbit)
  • PHP version: 7.2.1
  • MySQL version: 5.6.38
  • Web server: Apache
  • OS name and version: Windows 10

I am creating an extension where there is a button that links to a subpage. I have looked at the example extension, read this tutorial and searched around but I don't really understand what is the proper way to link the next page.

Current my route looks like this (following the example extension as a guide):

routes: {
    "(/)": "home",
    "/export": "exportPage"
}

Using the example extension as a template, in my "home" view, I have a button with link like this:

location.href="#ext/test/export"

which links me to http://127.0.0.1:8888/directus/ext/test#ext/test/export and I also get an error

Uncaught TypeError: Cannot read property 'subroutes' of undefined
    at B.n.checkUrlForSubroute (directus.min.js?bust=raj1r0qlhsgg8e4qcfl2jsmdag:58)
    at d (directus.min.js?bust=raj1r0qlhsgg8e4qcfl2jsmdag:7)
    at Object.trigger (directus.min.js?bust=raj1r0qlhsgg8e4qcfl2jsmdag:7)
    at directus.min.js?bust=raj1r0qlhsgg8e4qcfl2jsmdag:58
    at buttonClick (eval at <anonymous> (directus.min.js?bust=raj1r0qlhsgg8e4qcfl2jsmdag:4), <anonymous>:1:113)
    at HTMLInputElement.onclick (test_extension:1)

What I don't understand about this is in the example extension, the "Page One"/"Page Two" links show http://127.0.0.1:8888/directus/ext/example_extension#ext/example_extension/pageone , but goes to http://127.0.0.1:8888/directus/ext/example_extension/pageone ?

Alternately I could set my link reference to

location.href="test/export"

and this works, however navigating to another page afterwards will cause an pop up dialog to appear with the message "You don't have permission to view that page or it doesn't exist". I noticed that, for example if I navigate to the example extension, the link becomes
http://127.0.0.1:8888/directus/ext/test/ext/example_extension .

Unable to delete users

From directus created by ksraghavendra : directus/directus#2104

For security issues, please email [email protected] directly.

To help us resolve your issue more quickly, please use the following template:

For feature requests/voting please use the Directus Request Tool, or come chat with us through getdirectus.com. Accepted feature requests will be added to GitHub Issues for assignment.

Version Info

  • Directus version and branch (Or commit hash): latest
  • PHP version: 7.1.13
  • MySQL version:
  • Web server: (Ex. Apache, nginx or IIS?) Apache
  • OS name and version: Debian 4.9.65

Expected Behavior

Upon deleting users, the user should be removed.

Actual Behavior

Deleting users, removes the user but on refreshing the users page, they appear again.

Schema Dump, Logs, or Screenshots

Support for IDN emails?

From directus created by maxia : directus/directus#2122

I noticed that when a user has an email with a IDN domain (e.g. info@dömäin.com -> [email protected]) the login will not work.

I'm currently using a workaround that converts the email to punycode on login and entered the punycode email for the user.

Version Info

  • Directus version and branch (Or commit hash):
  • PHP version: PHP 7.0.28-0ubuntu0.16.04.1
  • MySQL version: 5.7.21-0ubuntu0.16.04.1
  • Web server: nginx/1.12.1
  • OS name and version: Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-116-generic x86_64)

Steps to Reproduce

  1. Enter a email like info@dömäin.com for a user
  2. Try to login

Group is not set when you disable a user

From directus created by spawnrider : directus/directus#2083

Version Info

  • Directus version and branch: Using Directus Docker 6.4 version
  • PHP version: 7.1.2
  • MySQL version: 5.5
  • Web server: Apache
  • OS name and version: Windows 10

Expected Behavior

Disable an specific user by :

  • Select "Inactive" value
  • Click "Save" button
  • Return to the previous screen (user list or group screen) without any issue

Actual Behavior

When you click on the save button, an error occures :

There seems to be a problem...
Users (XX)
Group: This field is required

Steps to Reproduce

Disable an specific user by :

  1. Select "Inactive" value
  2. Click "Save" button

See issue in live:
issue_directus

Error when opening a table

From directus created by ksraghavendra : directus/directus#2133

Version Info

  • Directus version and branch (Or commit hash): latest
  • PHP version: 7.1.3
  • MySQL version:
  • Web server: (Ex. Apache, nginx or IIS?) Apache
  • OS name and version: Debian 4.9.65

Actual Behavior

Error when opening one of the tables. On clicking the red error popup, the page is stuck on "Loading data". Unable to add records to the table because of this issue.

Error
Error: Uncaught Error: Parse error on line 1:
{{name} - {id}}
------^
Expecting 'CLOSE', 'CLOSE_UNESCAPED', 'STRING', 'INTEGER', 'BOOLEAN', 'ID', 'DATA', 'SEP', got 'INVALID'
File: http://35.200.188.39/directus/directus/assets/js/libs/handlebars.js?bust=aba7727c527125d35e1fc97219ef2ea7c7a8098d
Line:306

Schema Dump, Logs, or Screenshots

errir

Color interface default not working

From directus created by treechime : directus/directus#2121

For security issues, please email [email protected] directly.

To help us resolve your issue more quickly, please use the following template:

For feature requests/voting please use the Directus Request Tool, or come chat with us through getdirectus.com. Accepted feature requests will be added to GitHub Issues for assignment.

Version Info

  • Directus version and branch (Or commit hash): 6.4.9
  • PHP version: 5.6.33
  • MySQL version: 5.5.56-MariaDB
  • Web server: (Ex. Apache, nginx or IIS?) Apache
  • OS name and version:

Expected Behavior

Color interface with default value will display default value when creating a new entry.

Actual Behavior

Color interface doesn't display default value. Default value is entered into the database upon entry being saved unless user has accidentally "cleared" the field (from empty to empty?), in which case the value is empty in the database.

Steps to Reproduce

  1. Create color column using color interface
  2. Add default value to color interface
  3. Create new entry with color column - field is blank

Schema Dump, Logs, or Screenshots

Settings:
image

New entry:
image

New entry when empty field is "cleared" by clicking the x on the color preview:
image

Entry in database when one field has been cleared and the other untouched:
image

Large Video File Preupload Fails

From directus created by mdbarr73 : directus/directus#2128

When dragging/selecting large video files(211MB test file) to upload to files, Directus throws a javascript error in Firefox: "allocation size overflow". Error occurs on /app/helpers/file.js:48:11

Version Info

  • Directus version and branch (Or commit hash): 6.4.7
  • PHP version: 7.1
  • MySQL version: Aurora MySQL 5.6.10a
  • Web server: (Ex. Apache, nginx or IIS?) Apache
  • OS name and version: Docker Directus

Expected Behavior

File preloads in the browser and shows the thumbnail on the upload page.

Actual Behavior

JS error "allocation size overflow" occurs.

Steps to Reproduce

  1. Go to Files>Upload
  2. Choose > Select large video file (tested w/ 211MB)
  3. Wait, error will appear in lower right corner.

Schema Dump, Logs, or Screenshots

image

Translation alias not behaving properly

From directus created by Vlasterx : directus/directus#1940

Version Info

  • Directus version and branch: master branch (6.11.2017.)
  • PHP version: PHP 7.1.11-1+ubuntu16.04.1+deb.sury.org+1 (cli)
  • MySQL version: 5.7.20-0ubuntu0.16.04.1 - (Ubuntu)
  • Web server: (Ex. Apache, nginx or IIS?) Apache/2.4.29 (Ubuntu)
  • OS name and version: Ubuntu server 16.04.3 LTS

Expected Behavior

Based on this tutorial.

I have 3 tables in this setup:

languages articles_translation articles
code [primary key, varchar] id [primary key, int] id [primary key, int]
code_short [varchar] language_code [varchar] translation_id [translation alias]
name [varchar] article_id [int] reference_name [varchar]
sort title [varchar] date_created [datetime]
status content [wysiwyg full] sort
status status

Languages table is filled with 2 different language data.
translation_id from table articles is set as translation alias, as in provided tutorial.
When new article is created, I expect 2 rows to be filled in articles_translation for each language where language_code is filled with code values from languages table.

Actual Behavior

Three rows are created in articles_translation table. First insert has language_code in numerical value 0. If system status is set, it also unexpectedly influence how rows are created.

Steps to Reproduce

  1. Create tables from Directus as described in Expected Behavior
  2. In table articles create new record
  3. Check articles_translation for results

Schema Dump, Logs, or Screenshots

Provided in Expected Behavior

O2M Fails silently when wrong datatype is used for related table

From directus created by rijkvanzanten : directus/directus#2006

Version Info

  • Directus version and branch: 6.4.5 release

Behavior

When the "wrong" datatype is used for the related primary key field, the O2M doesn't display the selected values. They are saved however.

For example in this table structure:

Table A

column interface datatype
id primary_key INT
relation one-to-many ALIAS

Table B

column interface datatype
title text_input VARCHAR
table_a_id text_input VARCHAR

The selected items won't be displayed in the interface. For some reason, this is caused by the fact that table_a_id is set to a VARCHAR type, instead of matching the INT of the id it is going to store.

Schema Dump, Logs, or Screenshots

one-to-many-dump.sql.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.