[krita] [Bug 445500] Saving file fails if a backup file exists with brackets in the filename

2022-09-15 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=445500

Halla Rempt  changed:

   What|Removed |Added

  Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
   |hics/krita/commit/f1a3f003b |hics/krita/commit/58a0e7078
   |c9a15b9e95dbc7e05494bcf080e |82969e22b450382a21c4c4344d9
   |c30d|be6f

--- Comment #10 from Halla Rempt  ---
Git commit 58a0e707882969e22b450382a21c4c4344d9be6f by Halla Rempt.
Committed on 15/09/2022 at 09:31.
Pushed by rempt into branch 'krita/5.1'.

Fix creating numbered backups for files with [ and ]

Replace [ and ] with wildcards so files containing them are found i
by QDir.
(cherry picked from commit f24d3a0fa08d473c26ab2adf0892772cfaac2a3b)

M  +10   -3libs/global/KisBackup.cpp

https://invent.kde.org/graphics/krita/commit/58a0e707882969e22b450382a21c4c4344d9be6f

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 445500] Saving file fails if a backup file exists with brackets in the filename

2022-09-15 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=445500

--- Comment #9 from Halla Rempt  ---
Git commit 8d2d60d8af2e5410d5dd7c13477913c7597156d4 by Halla Rempt.
Committed on 15/09/2022 at 09:31.
Pushed by rempt into branch 'krita/5.1'.

Fork KBackup to investigate why numbered backups with [] fail
(cherry picked from commit 7f92164d2f22f28ce511f33d38c0ec8fb88429c6)

M  +1-0libs/global/CMakeLists.txt
A  +99   -0libs/global/KisBackup.cpp [License: LGPL(v2.0)]
A  +29   -0libs/global/KisBackup.h [License: LGPL(v2.0)]
M  +0-1libs/resources/KisFolderStorage.cpp
M  +2-2libs/resources/KisResourceCacheDb.cpp
M  +3-3libs/ui/KisDocument.cpp

https://invent.kde.org/graphics/krita/commit/8d2d60d8af2e5410d5dd7c13477913c7597156d4

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 445500] Saving file fails if a backup file exists with brackets in the filename

2022-09-15 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=445500

--- Comment #8 from Halla Rempt  ---
Git commit 620abbd87ae207f8833af94440dc552352ebbec5 by Halla Rempt.
Committed on 15/09/2022 at 09:30.
Pushed by rempt into branch 'master'.

Fork KBackup to investigate why numbered backups with [] fail
(cherry picked from commit 7f92164d2f22f28ce511f33d38c0ec8fb88429c6)

M  +1-0libs/global/CMakeLists.txt
A  +99   -0libs/global/KisBackup.cpp [License: LGPL(v2.0)]
A  +29   -0libs/global/KisBackup.h [License: LGPL(v2.0)]
M  +0-1libs/resources/KisFolderStorage.cpp
M  +2-2libs/resources/KisResourceCacheDb.cpp
M  +3-3libs/ui/KisDocument.cpp

https://invent.kde.org/graphics/krita/commit/620abbd87ae207f8833af94440dc552352ebbec5

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 445500] Saving file fails if a backup file exists with brackets in the filename

2022-09-15 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=445500

Halla Rempt  changed:

   What|Removed |Added

  Latest Commit||https://invent.kde.org/grap
   ||hics/krita/commit/f1a3f003b
   ||c9a15b9e95dbc7e05494bcf080e
   ||c30d
 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #7 from Halla Rempt  ---
Git commit f1a3f003bc9a15b9e95dbc7e05494bcf080ec30d by Halla Rempt.
Committed on 15/09/2022 at 09:30.
Pushed by rempt into branch 'master'.

Fix creating numbered backups for files with [ and ]

Replace [ and ] with wildcards so files containing them are found i
by QDir.
(cherry picked from commit f24d3a0fa08d473c26ab2adf0892772cfaac2a3b)

M  +10   -3libs/global/KisBackup.cpp

https://invent.kde.org/graphics/krita/commit/f1a3f003bc9a15b9e95dbc7e05494bcf080ec30d

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 445500] Saving file fails if a backup file exists with brackets in the filename

2022-09-15 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=445500

Halla Rempt  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED
   Assignee|krita-bugs-n...@kde.org |ha...@valdyas.org

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 445500] Saving file fails if a backup file exists with brackets in the filename

2022-09-15 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=445500

Halla Rempt  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED

--- Comment #6 from Halla Rempt  ---
Sorry for the late reply -- we're getting inundated with bug reports. I can
confirm the bug. The second backup isn't made.

Krita Version: 5.2.0-prealpha (git bb59f0c), Qt version compiled: 5.12.12,
loaded: 5.12.12. Process ID: 2092492
-- -- -- -- -- -- -- --
15 Sep 2022 09:59:23 +0200: Style: fusion. Available styles: Windows, Fusion
15 Sep 2022 09:59:23 +0200: Database is up to date. Version: 0.0.17, created by
Krita 5.2.0-prealpha, at wo sep. 14 15:49:09 2022
15 Sep 2022 09:59:39 +0200: Created image "Unnamed", 2480 * 3508 pixels, 300
dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc).
Layers: 2
15 Sep 2022 10:00:20 +0200: Saving Document  as
/home/halla/bla/bla_[brackets].kra (mime: application/x-krita). 2480 * 3508
pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No
configuration
15 Sep 2022 10:00:20 +0200: Converting from application/x-krita to
application/x-krita. Location: /home/halla/bla/bla_[brackets].kra. Real
location: /home/halla/bla/bla_[brackets].kra. Batchmode: 0. Configuration: none
15 Sep 2022 10:00:21 +0200: Completed saving /home/halla/bla/bla_[brackets].kra
(mime: application/x-krita). Result: OK. Warning: . Size: 288366
15 Sep 2022 10:00:21 +0200: Saving Completed
15 Sep 2022 10:00:34 +0200: Saving Document /home/halla/bla/bla_[brackets].kra
as /home/halla/bla/bla_[brackets].kra (mime: application/x-krita). 2480 * 3508
pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No
configuration
15 Sep 2022 10:00:34 +0200: Create a simple backup for
/home/halla/bla/bla_[brackets].kra in the same location as the file.
15 Sep 2022 10:00:34 +0200: Converting from application/x-krita to
application/x-krita. Location: /home/halla/bla/bla_[brackets].kra. Real
location: /home/halla/bla/bla_[brackets].kra. Batchmode: 0. Configuration: none
15 Sep 2022 10:00:35 +0200: Completed saving /home/halla/bla/bla_[brackets].kra
(mime: application/x-krita). Result: OK. Warning: . Size: 328983
15 Sep 2022 10:00:35 +0200: Saving Completed
15 Sep 2022 10:00:37 +0200: Saving Document /home/halla/bla/bla_[brackets].kra
as /home/halla/bla/bla_[brackets].kra (mime: application/x-krita). 2480 * 3508
pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No
configuration
15 Sep 2022 10:00:37 +0200: Failed to create a numbered backup for
/home/halla/bla/bla_[brackets].kra.
^C
halla@thinkstations:~/bla$ ls -la
total 616
drwxrwxr-x  2 halla halla   4096 sep 15 10:00  .
drwxr-xr-x 46 halla halla   4096 sep 15 09:07  ..
-rw-rw-r--  1 halla halla 328983 sep 15 10:00 'bla_[brackets].kra'
-rw-rw-r--  1 halla halla 288366 sep 15 10:00 'bla_[brackets].kra.1~'

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 445500] Saving file fails if a backup file exists with brackets in the filename

2021-11-16 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=445500

Bug Janitor Service  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |---
 Status|NEEDSINFO   |REPORTED

--- Comment #5 from Bug Janitor Service  ---
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 445500] Saving file fails if a backup file exists with brackets in the filename

2021-11-16 Thread Franck Rabeson
https://bugs.kde.org/show_bug.cgi?id=445500

--- Comment #4 from Franck Rabeson  ---
(In reply to Halla Rempt from comment #2)
> I've tested this in the latest nightly build, on Windows and Linux, with the
> filename bla[].kra, and I cannot reproduce the issue. Can you please attach
> the system information contents of Help->Report Bug to this bug?

I've set up Krita so it keeps 5 backups of each file in the same folder as the
original file, with .bak as the extension.

I just reproduced the bug on my machine. Here's the log:

Krita

 Version: 5.1.0-prealpha (git 4807d9c)
 Languages: en_US, en, en_US, en, en_US, en, en_US, en, fr_FR, fr, en_US, en
 Hidpi: false

Qt

  Version (compiled): 5.12.11
  Version (loaded): 5.12.11

OS Information

  Build ABI: x86_64-little_endian-llp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: winnt
  Kernel Version: 10.0.19043
  Pretty Productname: Windows 10 (10.0)
  Product Type: windows
  Product Version: 10

OpenGL Info

  Vendor:  "Google Inc." 
  Renderer:  "ANGLE (Radeon RX 580 Series Direct3D11 vs_5_0 ps_5_0)" 
  Version:  "OpenGL ES 3.0 (ANGLE 2.1.0.57ea533f79a7)" 
  Shading language:  "OpenGL ES GLSL ES 3.00 (ANGLE 2.1.0.57ea533f79a7)" 
  Requested format:  QSurfaceFormat(version 3.0, options
QFlags(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8,
stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer,
swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
  Current format:  QSurfaceFormat(version 3.0, options
QFlags(), depthBufferSize 24, redBufferSize 8,
greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8,
samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0,
colorSpace QSurfaceFormat::DefaultColorSpace, profile 
QSurfaceFormat::NoProfile) 
 Version: 3.0
 Supports deprecated functions false 
 is OpenGL ES: true 
  supportsBufferMapping: true 
  supportsBufferInvalidation: false 
  Extensions: 
 "GL_EXT_read_format_bgra" 
 "GL_OES_compressed_ETC1_RGB8_texture" 
 "GL_OES_rgb8_rgba8" 
 "GL_CHROMIUM_copy_compressed_texture" 
 "GL_OES_element_index_uint" 
 "GL_CHROMIUM_bind_uniform_location" 
 "GL_OES_EGL_image_external" 
 "GL_EXT_texture_filter_anisotropic" 
 "GL_ANGLE_client_arrays" 
 "GL_ANGLE_framebuffer_blit" 
 "GL_EXT_draw_buffers" 
 "GL_EXT_map_buffer_range" 
 "GL_CHROMIUM_sync_query" 
 "GL_ANGLE_pack_reverse_row_order" 
 "GL_EXT_texture_storage" 
 "GL_EXT_frag_depth" 
 "GL_EXT_color_buffer_half_float" 
 "GL_KHR_debug" 
 "GL_EXT_robustness" 
 "GL_EXT_texture_compression_s3tc_srgb" 
 "GL_ANGLE_translated_shader_source" 
 "GL_CHROMIUM_color_buffer_float_rgb" 
 "GL_CHROMIUM_copy_texture" 
 "GL_EXT_shader_texture_lod" 
 "GL_OES_texture_half_float" 
 "GL_NV_pack_subimage" 
 "GL_EXT_texture_rg" 
 "GL_OES_get_program_binary" 
 "GL_EXT_discard_framebuffer" 
 "GL_OES_texture_float" 
 "GL_NV_EGL_stream_consumer_external" 
 "GL_EXT_occlusion_query_boolean" 
 "GL_ANGLE_instanced_arrays" 
 "GL_EXT_texture_norm16" 
 "GL_ANGLE_request_extension" 
 "GL_ANGLE_texture_compression_dxt5" 
 "" 
 "GL_EXT_blend_minmax" 
 "GL_OES_vertex_array_object" 
 "GL_ANGLE_texture_usage" 
 "GL_CHROMIUM_color_buffer_float_rgba" 
 "GL_ANGLE_depth_texture" 
 "GL_ANGLE_texture_compression_dxt3" 
 "GL_ANGLE_framebuffer_multisample" 
 "GL_CHROMIUM_bind_generates_resource" 
 "GL_EXT_texture_compression_dxt1" 
 "GL_ANGLE_robust_client_memory" 
 "GL_NV_pixel_buffer_object" 
 "GL_EXT_texture_format_BGRA" 
 "GL_ANGLE_program_cache_control" 
 "GL_EXT_color_buffer_float" 
 "GL_OES_packed_depth_stencil" 
 "GL_ANGLE_lossy_etc_decode" 
 "GL_EXT_unpack_subimage" 
 "GL_OES_mapbuffer" 
 "GL_EXT_debug_marker" 
 "GL_OES_standard_derivatives" 
 "GL_OES_EGL_image" 
 "GL_ANGLE_multiview" 
 "GL_NV_fence" 
 "GL_OES_texture_float_linear" 
 "GL_OES_depth32" 
 "GL_OES_texture_half_float_linear" 
 "GL_OES_surfaceless_context" 
 "GL_OES_texture_npot" 
 "GL_OES_EGL_image_external_essl3" 
 "GL_EXT_disjoint_timer_query" 
 "GL_EXT_sRGB" 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsAngleD3D11: true 
  isQtPreferAngle: true 

useBufferInvalidation (config option): false


Hardware Information

  GPU Acceleration: auto
  Memory: 24510 Mb
  Number of Cores: 4
  Swap Location: C:/Users/Franck P. Rabeson/AppData/Local/Temp

Current Settings

  Current Swap Location: C:/Users/Franck P. Rabeson/AppData/Local/Temp
  Current Swap Location writable: true
  Undo Enabled: true
  Undo Stack Limit: 30
  Use OpenGL: true
  Use OpenGL Texture Buffer: true
  Disable Vector Optimizations: false
  Disable AVX Optimizations: false
  Canvas State: OPENGL_SUCCES

[krita] [Bug 445500] Saving file fails if a backup file exists with brackets in the filename

2021-11-16 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=445500

--- Comment #3 from sh_zam  ---
This looks similar to the encoding issues we had on Android. I wonder if the
file manager by any chance returns an encoded path?

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 445500] Saving file fails if a backup file exists with brackets in the filename

2021-11-16 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=445500

Halla Rempt  changed:

   What|Removed |Added

 Status|REPORTED|NEEDSINFO
 Resolution|--- |WAITINGFORINFO
 CC||ha...@valdyas.org

--- Comment #2 from Halla Rempt  ---
I've tested this in the latest nightly build, on Windows and Linux, with the
filename bla[].kra, and I cannot reproduce the issue. Can you please attach the
system information contents of Help->Report Bug to this bug?

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 445500] Saving file fails if a backup file exists with brackets in the filename

2021-11-14 Thread Franck Rabeson
https://bugs.kde.org/show_bug.cgi?id=445500

--- Comment #1 from Franck Rabeson  ---
Tested in: git d2f29d7

-- 
You are receiving this mail because:
You are watching all bug changes.