#(boringmosk) Webget not working

33 messages · Page 1 of 1 (latest)

frail folio
#

I've tried to use webget to download a file to the server.
The "plugins/Denizen/config.yml" is authorising webget, File read and file write
And it still say in the /denizen debug -r that my config.yml is not authorising file write...
Help please.

proud iglooBOT
#

(boringmosk) Webget not working

proud iglooBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

strong mortar
#

why did you close your previous thread

frail folio
#

Because I was thinking it was so simple as modifying my config.yml but it did not work

#

Can you help I cant think of anything... As my config.yml file seem to be allright to accept file write...

#

Also the permissions for the folder is ok

meager olive
covert gazelleBOT
# meager olive !logcheck https://paste.denizenscript.com/View/131807
Server Version

CraftBukkit version 4440-Spigot-e5a64e7-43f66f6 (MC: 1.21.4)

Plugin Version(s)

Citizens: 2.0.37-SNAPSHOT (build 3729) -- (:warning:Outdated build, behind by 27)
Denizen: 1.3.1-SNAPSHOT (build 7137-DEV) -- (:warning:Outdated build, behind by 6)

Checked For

@meager olive

UUID Version

4 (:white_check_mark: Online)

Java Version

22.0.1 :warning: - Only Java versions 21 or 17 are fully supported (or 8 for legacy Minecraft)

meager olive
#

Make sure this isn't already fixed on latest denizen/spigot (or paper)

frail folio
#

Thank's I'll look for that

strong mortar
#

Why would you download directly into your scripts folder

frail folio
#

That's not the why I want to resolve that's the how...

#

It does not work even with the latest build

#

So the webget does not seem to work with the "savefile:" argument

#

./ex webget "url_ofthe_file" savefile:"target_file" Ne fonctionne pas

#

Oups.. I mean "Does not work"

strong mortar
#

There's a config option that prevents you from doing that

#

as the error message states

frail folio
#

Yes but Everything related to fileaccess is set to true in the config.yml.

#

That's the point.

#

I believe the setting's not working in the config.yml

#

File:
# Set 'true' to enable the 'fileread' generic command.
# This setting does not affect YAML or other specific-file-type commands.
Allow read: true
# Set 'true' to enable the 'filewrite' generic command.
# This setting does not affect YAML or other specific-file-type commands.
Allow write: true
# The restricted file path, under plugins/Denizen/, for "fileread" and "filewrite" to be limited to. Set to 'none' to remove the path restriction.
Restrict path: 'none'

#

Anyway I'll try to find what's going wrong. If you have any idea about it , I'll take it. Thank's for trying

strong mortar
#

Those config options have nothing todo with the webget command

strong mortar
#

Denizen has a security option to prevent users from writing into dangerous file paths to prevent users from doing stupid

#

In save locations you can download files

#

If you flip these options carelessly, you're risking that potential malicious files can end up into your system folder

#

so why do you want to save into the /scripts folder?

frail folio
#

That's alright! I understand that denizen cant do it. So, finally I did it in Java in my own plugin and it work fine! Thank's anyway for trying to help.