developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
11
results
Andrew Fletcher
•
Like many devs at the moment, looking for log4j2 on your server... how to do?
First I used the command
find / -name log4j2.xml -type fWhich in turn produced the following results
/opt/solr-8.5.2/server/resources/log4j2.xml
/var/solr/log4j2.xml
Version
Ok, so log4j2 exists on the server the client is using... in Solr. How about determining the version number?
The version here matters as 2.15.0 is good to go. To find the version use
sudo find / -name 'log4j*'
The output of...
Andrew Fletcher
•
I had been running a few Centos 6 servers just past their EOL (30th November...
Andrew Fletcher
•
I need to set the default php-version of a subscription to php7.3. The...
Andrew Fletcher
•
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI...
Andrew Fletcher
•
To add ejabberd and run MYSQL to the server I needed to update the server...
Andrew Fletcher
•
Adding an image via RESTUI can be done in a snap... once you know how! I have spent a good amount of time (days) researching how come my scripts weren't running correctly.
POST:
authentication: basic,
formats: hal_json
URL:
Enable File from domain.com/admin/config/services/rest;
Download file_entity module and enable it; and
Set permission Add and upload new files under file entity.
How to setup your...
Andrew Fletcher
•
The magically descriptive error 401 Forbidden "message": "Access...
Andrew Fletcher
•
If you are like me you probably have searched for clues to and found little......
Andrew Fletcher
•
In Drupal 8.x hiding the subject line is a quick task.
In the admin area of your...
Andrew Fletcher
•
You have been working hard on getting comments being added (POST) through REST...
Andrew Fletcher
•
For others that have spent countless hours getting this to work and are struggling... in particular assigning the correct user to the comment - this is how I achieved the correct outcome.
The outline below is for usage via Postman and DHC (Restlec Client)... once working here then testing done and ready to apply to your app or however you are using this.
Set up
Set accept to hal+json
sample:
POST request
url: http://example.com/entity/comment?_format=hal_json
Authorization Type: Basic {then...